I'm new to Arduino and need some help testing a 2111 RAM. I'm suspecting that it has bad sectors in it and figured that the best way to find out would be to write an Arduino program. This chip has 8 address lines, four input/output lines, a chip enable, a read write line, and an output enable. Here is the datasheet:
Unfortunately, I'm not familiar with the Arduino language. If anyone could help me get this scetch or main file together, I would appreciate it. Here's what I have so far in psuedo code:
/**Program to test 2111 ancient CRAM IC 256 x 4 Program steps through all addresses and writes 1 **then 0. After data is written, analog in ports read data from memory and print
**to terminal in nice columns. If error is 0 > .5v or if 1 < 4.0v flag data with highlight, bold, or **underline.
**/
Includes??
Activate Port Digital 0-7 for address stepping
Activate digital port 8-10 for read/write, Chip select, and output disable.
Activate analog in port 0-3 for inputs
// output enable
n = 256
// high test
enable write pin
for ( i = 0; i <= n; i++ )
address value = n
write = 0x0F to inputs
enable read pin
for ( i = 0; i <= n; i++ )
address value = n
// read outputs
float voltage = sensorValue * (5.0 / 1023.0);
printf( "output values for high write:" sensorvalue1, sensorvalue2, sensorvalue3, sensorvalue4 )
// low test
enable write pin
for ( i = 0; i <= n; i++ )
address value = n
write = 0x00 to inputs
enable read pin
for ( i = 0; i <= n; i++ )
address value = n
// read outputs
float voltage = sensorValue * (5.0 / 1023.0);
printf( "output values for low write:" sensorvalue1, sensorvalue2, sensorvalue3, sensorvalue4 )
return = 0;
2111.pdf (201 KB)