Re: C Program to test ROM



"R.Satish" wrote:
>
> hi, i need C program to check :EEPROM(BIOS on
> PC),RAM(SD/DDR),Keyboard,UART and report they ok or not

Assuming you are running in a processor mode with access to all the
devices, a EEPROM can be checked to nominally work (write a byte and
read back) or you can do a more comprehensive test to write every
byte, which I would normally not do if it was the BIOS chip. Side
issue: why would BIOS be in EEPROM? If you want to verify fixed data
without testing the write capability, you probably should use a CRC
calculation on the memory.

RAMs are usually tested by writing specific test patterns and reading
back to verify. Different patterns are good for testing different
failure modes. Make sure that you test for address decoding errors,
in which an address bit might be stuck high or low, mapping two
different addresses to the same memory location. There should be
several sources of RAM test on the web.

A keyboard and UART cannot be fully tested without having something on
the other end.

A keyboard would need to have every key pressed to fully test. To
determine whether a keyboard is simply connected, you can send it a
command and examine the response. See google for keyboard
communication if you are using a PC-compatible keyboard.

For a UART you can write and read back registers. Some have a
built-in digital loopback mode that lets you test many of the internal
features. For further checking you can use an external loopback, or,
better yet, an active device to read and write the serial data and
control lines.
The method used depends on how thorough of a test you need. Get a
data sheet for the UART you want to test.

Note: these are tests that are not easy to do running under an
operating system with memory protection, except at the system level.

Thad
.



Relevant Pages

  • Re: Can someone fill me in...?
    ... tied by the folks from HP who wanted to "dumb down" the calculator. ... you lost the entire memory of the calculator trying to change batteries, ... RAM but you could add memory cards of either 32 or 128Kbytes. ... The colour scheme on the keyboard was ...
    (comp.sys.hp48)
  • Re: Can someone fill me in...?
    ... it would really quickly tell you that it had run out of memory. ... One of the cards could be merged with main memory to give unheard of amounts of working RAM. ... The colour scheme on the keyboard was changed from nice clear orange and something on the SX to green and purple on the GX. ... The HP49G was the first model to drop the Saturn CPU (a custom design from HP that had been in use for decades) and use an ARM to emulate it. ...
    (comp.sys.hp48)
  • Re: Can someone fill me in...?
    ... you lost the entire memory of the calculator trying to change batteries, ... RAM but you could add memory cards of either 32 or 128Kbytes. ... The colour scheme on the keyboard was ...
    (comp.sys.hp48)
  • Re: PIC, Keyboard, and USART
    ... At this point I just want to get the keyboard codes into the pic and I just want to run this by you guys to make sure I'm on the right track. ... Basically you'd have to switch off the UART and put the pins into output mode for the handshakes etc, then switch back to UART again to receive or transmit. ... Just add the pull-up resistors, data line to UART RX, clock input not strictly necessary - until you want to transmit. ...
    (sci.electronics.basics)
  • Re: parts needed?
    ... the keyboard? ... Fixer wrote: ... Do I need memory sticks in? ... to be sure that I know what the capacitors look like ...
    (alt.sys.pc-clone.dell)