Texas Instruments TMS320C6201 Reference Manual page 405

Tms320c6000 series peripherals
Hide thumbs Also See for TMS320C6201:
Table of Contents

Advertisement

11.8 McBSP Pins as General-Purpose I/O
Table 11–22. Configuration of Pins as General Purpose I/O
General-Purpose
Pin
I/O Enabled When...
CLKX
XRST = 0
XIOEN = 1
FSX
XRST = 0
XIOEN = 1
DX
XRST = 0
XIOEN = 1
CLKR
RRST = 0
RIOEN = 1
FSR
RRST = 0
RIOEN = 1
DR
RRST = 0
RIOEN = 1
CLKS
RRST = XRST = 0
RIOEN = XIOEN = 1
Two conditions allow the serial port pins (CLKX, FSX, DX, CLKR, FSR, DR,
and CLKS) to be used as general-purpose I/O rather than serial port pins:
The related portion (transmitter or receiver) of the serial port is in reset:
(R/X)RST = 0 in the SPCR
General-purpose I/O is enabled for the related portion of the serial port:
(R/X)IOEN = 1 in the PCR
Figure 11–3 shows the PCR bits that configure each of the McBSP pins as
general-purpose inputs or outputs. Table 11–22 shows how this is achieved.
In the case of FS(R/X), FS(R/X)M = 0 configures the pin as an input and
FS(R/X)M = 1 configures that pin as an output. When configured as an output,
the value driven on FS(R/X) is the value stored in FS(R/X)P. If configured as
an input, the FS(R/X)P becomes a read-only bit that reflects the status of that
signal. CLK(R/X)M and CLK(R/X)P work similarly for CLK(R/X). When the
transmitter is selected as general-purpose I/O, the value of the DX_STAT bit
in the PCR is driven onto DX. DR is always an input, and its value is held in
the DR_STAT bit in the PCR. To configure CLKS as a general-purpose input,
both the transmitter and receiver have to be in the reset state and (R/X)IOEN
has to be set to 1, because (R/X)IOEN is always an input to the McBSP and
it affects both transmit and receive operations.
Selected as
Output When...
CLKXM = 1
FSXM = 1
Always
CLKRM = 1
FSRM = 1
Never
Never
McBSP Pins as General-Purpose I/O
Output Value
Selected as
Driven From
Input When ...
CLKXP
CLKXM = 0
FSXP
FSXM = 0
DX_STAT
Never
CLKRP
CLKRM = 0
FSRP
FSRM = 0
N/A
Always
N/A
Always
Multichannel Buffered Serial Ports
Input Value
Readable on
CLKXP
FSXP
N/A
CLKRP
FSRP
DR_STAT
CLKS_STAT
11-87

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320c6701Tms320c6711Tms320c6211Tms320c6202

Table of Contents