Texas Instruments TMS320C2XX User Manual
Page 16

Contents
xvii
Contents
9
Synchronous Serial Port
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Describes the operation and control of the TMS320C2xx on-chip synchronous serial port.
9.1
Overview of the Synchronous Serial Port
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.2
Components and Basic Operation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.2.1
Signals
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.2.2
FIFO Buffers and Registers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.2.3
Interrupts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.2.4
Basic Operation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.3
Controlling and Resetting the Port
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.3.1
Selecting a Mode of Operation (Bit 1 of the SSPCR)
. . . . . . . . . . . . . . . . . . . .
9.3.2
Selecting Transmit Clock Source and Transmit Frame Sync Source
(Bits 2 and 3 of the SSPCR)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.3.3
Resetting the Synchronous Serial Port (Bits 4 and 5 of the SSPCR)
9.3.4
Using Transmit and Receive Interrupts (Bits 8–11 of the SSPCR)
9.4
Managing the Contents of the FIFO Buffers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.5
Transmitter Operation
9.5.1
Burst Mode Transmission With Internal Frame Sync
(FSM = 1, TXM = 1)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.5.2
Burst Mode Transmission With External Frame Sync
(FSM = 1, TXM = 0)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.5.3
Continuous Mode Transmission With Internal Frame Sync
(FSM = 0, TXM = 1)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.5.4
Continuous Mode Transmission with External Frame Sync
(FSM=0, TXM=0)
9.6
Receiver Operation
9.6.1
Burst Mode Reception
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.6.2
Continuous Mode Reception
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.7
Troubleshooting
9.7.1
Test Bits
9.7.2
Burst Mode Error Conditions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.7.3
Continuous Mode Error Conditions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10 Asynchronous Serial Port
Describes the operation and control of the TMS320C2xx on-chip asynchronous serial port.
10.1
Overview of the Asynchronous Serial Port
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.2
Components and Basic Operation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.2.1 Signals
10.2.2 Baud-Rate Generator
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.2.3 Registers
10.2.4 Interrupts
10.2.5 Basic Operation