CY545 Stepper System Controller
www.ControlChips.com
© 2002 Cybernetic Micro Systems
Chapter 12 - External Memory Support
44
The read or write is broken into two steps. First the lower address byte is generated on the data
bus. This value is latched into the other 74LS373, using the ALE signal. Then the actual data
transfer occurs. For a write, the CY545 generates the write data on the data bus, along with a
write strobe, WR. For a read, the data bus is floated, and a read strobe is generated, using RD,
so the memory can now drive the bus.
When the memory transfer is over, the XMEM_SEL signal goes high again, de-selecting the
external memory. This allows the lower address byte and RD and WR strobes to be used with
other hardware as well, without interference from the memory. Only the memory uses the upper
address byte.
As a special feature, the CY545 performs a verify Read after writing to the memory. This
function is provided in support of EEPROM memories, that require a long time to perform a write
operation, and cannot perform another random write or read while the first one is in progress.
Many of these memories support Data/ polling, in which at least one bit of data is inverted while
the memory is busy writing the byte. When a read is performed, the data read does not match
the data written until the write operation is complete. This change in data values indicates when
the memory is ready for the next operation.
The CY545 performs the verify Read repeatedly until the data matches the value written, or a
time out occurs. For RAMs, the match will occur immediately, so the CY545 simply continues at
that point. For an EEPROM, the match will occur after the EEPROM write is finished, and the
CY545 waits during this time before going on to the next function.
You should be aware of this time period delay when using EEPROM, because it is possible to
send serial characters to the CY545 faster than the EEPROM can accept them, when running
the serial interface at higher baud rates. It is best to have a time delay between each character
in this case, or else use the CTS signal to hold off the communications until the CY545 is ready.
Note that the parallel interface takes care of this time delay on its own, since the CY545 will stay
busy while it is writing the character to the memory.
“Auto-Start” Feature for Stand Alone Operation
Another special feature of the CY545 is the use of the external memory to automatically run a
command sequence at power-up, or whenever the CY545 is reset.