MicroWire Interface
7-41
MPU Public Peripherals
7.4.3.2
Write Cycle
1) Set the following fields of the control and status register (CSR):
J
NB_BITS_RD: 0
J
NB_BITS_WR: 0
J
INDEX: 00
J
CS_CMD: 1
J
START: 0
2) Load the transmit data register (TDR) with:
J
1 0 1 A7 A6 A5 A4 A3 A2 A1 A0 x x x x x x: Don’t care
J
A7 ... A0: Address of the selected memory register
3) Wait for the CSRB bit of the control and status register (CSR) to be reset.
4) Set the following fields of the control and status register (CSR):
J
NB_BITS_RD: 0
J
NB_BITS_WR: 11 (decimal)
J
INDEX: 00
J
CS_CMD: 1
J
START: 1
5) Wait for the CSRB bit of the control and status register (CSR) to be reset.
6) Load the transmit data register (TDR) with:
J
D15 D14 ... D0
J
D15 ... D0: Data
7) Set the following fields of the control and status register (CSR):
J
NB_BITS_RD: 0
J
NB_BITS_WR: 16 (decimal)
J
INDEX: 00
J
CS_CMD 1
J
START: 1
8) Wait for the CSRB bit of CSR to be reset.
9) Set the following fields of the control and status register (CSR):
J
INDEX: 00
J
CS_CMD: 0
J
START: 0