5 Device Commands and Addressing
The AT93C56B/AT93C66B is accessed via a simple and versatile three-wire serial communication interface. Device operation is controlled by seven instructions issued by the Host processor. A valid instruction starts with a rising edge of CS and consists of a Start bit (SB), followed by the appropriate opcode and the desired memory address location.
Instruction | SB | Opcode | Address | Data | Comments | ||
---|---|---|---|---|---|---|---|
X8(1) | X16(1) | X8 | X16 | ||||
READ | 1 | 10 | A8‑A0 | A7‑A0 | Reads data stored in memory at specified address. | ||
EWEN | 1 | 00 | 11XXXXXXX | 11XXXXXX | Write Enable must precede all programming modes. | ||
ERASE | 1 | 11 | A8‑A0 | A7‑A0 | Erases memory location AN‑A0. | ||
WRITE | 1 | 01 | A8‑A0 | A7‑A0 | D7‑D0 | D15‑D0 | Writes memory location AN‑A0. |
ERAL | 1 | 00 | 10XXXXXXX | 10XXXXXX | Erases all memory locations. Valid only at VCC3. See Table 4-2. | ||
WRAL | 1 | 00 | 01XXXXXXX | 01XXXXXX | D7‑D0 | D15‑D0 | Writes all memory locations. Valid only at VCC3. See Table 4-2. |
EWDS | 1 | 00 | 00XXXXXXX | 00XXXXXX | Disables all programming instructions. |
Note:
- The ‘
X
’ in the address field represents a “don’t care” bit and must be sent to the device.
I/O | AT93C56B (2 Kbits) | AT93C66B (4 Kbits) | ||
---|---|---|---|---|
x8 | x16 | x8 | x16 | |
AN | A8(1) | A7(2) | A8 | A7 |
DN | D7 | D15 | D7 | D15 |
Note:
- A8 is a “don’t care” value, but the extra clock is required.
- A7 is a “don’t care” value, but the extra clock is required.