MicroWire Interface
3.3.2
Write Cycle
108
Serial Interfaces
3) Wait for the CSRB bit of CSR to be reset.
4) Set the following fields of the control and status register (CSR):
NB_BITS_RD: 16 (decimal)
J
NB_BITS_WR: 11 (decimal)
J
INDEX: 00
J
CS_CMD: 1
J
START: 1
J
5) Wait until CSRB = 0 and RDRB = 1 (status bits of CSR).
6) Read the content of receive data register (RDR).
7) To continue reading data external component, the EEPROM, go to step
8. Else go to step 9.
8) Set the following fields of the control and status register (CSR):
NB_BITS_RD: 16 (decimal)
J
NB_BITS_WR: 0 (decimal)
J
INDEX: 00
J
CS_CMD: 1
J
START: 1
J
Go to step 5.
J
9) Set the following fields of the control and status register (CSR):
INDEX: 00
-
CS_CMD: 0
J
START: 0
J
1) Set the following fields of the control and status register (CSR):
NB_BITS_RD: 0
J
NB_BITS_WR: 0
J
INDEX: 00
J
CS_CMD: 1
J
START: 0
J
SPRU760B