Example Of Protocol Using The Autotransmit Mode - Texas Instruments OMAP5910 Reference Manual

Dual-core processor microwire interface
Hide thumbs Also See for OMAP5910:
Table of Contents

Advertisement

MicroWire Interface
1.5

Example of Protocol Using the Autotransmit Mode

22
MicroWire Interface
5) Wait for the CSRB bit of the control and status register (CSR) to be reset.
6) Load the transmit data register (TDR) with:
D7d3...D0d3 D7d4...D0d4 D7d3...D0d3: Data for digit 3
J
D7d4...D0d4: Data for digit 4
J
7) Set the following fields of the control and status register (CSR):
NB_BITS_RD: 0
J
NB_BITS_WR: 16 (decimal)
J
INDEX: 01
J
CS_CMD: 1
J
START: 1
J
8) Wait for the CSRB bit of the control and status register (CSR) to be reset.
9) Load the transmit data register (TDR) with:
D7...D0 x x x x x x x x x: Don't care
J
D7...D0: Data for the special segment and control function
J
10) Set the following fields of the control and status register (CSR):
NB_BITS_RD: 0
J
NB_BITS_WR: 8 (decimal)
J
INDEX: 01
J
CS_CMD: 1
J
START: 1
J
11) Wait for CSRB to go low, which indicates the CSR is ready to receive new
data. It is advised to read the bit before and after every write access to the
CSR to check the status.
12) Set the following fields of the control and status register (CSR):
INDEX: 01
J
CS_CMD: 0
J
START: 0
J
The autotransmit mode is controlled by the setup register 5 (SR5). The
following example configures the MicroWire for a read access on the CS0 with
the serial clock out inverted, the CS autotoggle enabled, the DMA request
disabled, and the interrupt enabled:
SPRU686

Advertisement

Table of Contents
loading

Table of Contents