
Using the McBSP Pins for GPIO
General-Purpose I/O on the McBSP Pins
9-2
SPRU592E
9.1 Using the McBSP Pins for GPIO
1 summarizes how to use the McBSP pins as general-purpose I/O
(GPIO) pins. All of the bits mentioned in the table except XRST and RRST are
in the pin control register. XRST and RRST are in the serial port control
registers.
To use
receiver pins CLKR, FSR, and DR
as general purpose I/O pins rather
than as serial port pins, you must set two conditions:
-
The receiver of the serial port is in reset (RRST = 0 in SPCR1).
-
General-purpose I/O is enabled for the serial port receiver (RIOEN = 1 in
PCR).
The CLKR and FSR pins can be individually configured as either input or
output pins with the CLKRM and FSRM bits, respectively. The DR pin can only
be an input pin. Table 9
1 shows which bits in PCR are used to read from/write
to these pins.
For the
transmitter pins CLKX, FSX, and DX
, you must meet two similar
conditions:
-
The transmitter of the serial port is in reset (XRST = 0 in SPCR2).
-
General-purpose I/O is enabled for the serial port transmitter (XIOEN = 1
in PCR).
The CLKX and FSX pins can be individually configured as input or output pins
with the CLKXM and FSXM bits, respectively. The DX pin can only be an output
pin. Table 9
1 shows which bits in PCR are used to read from/write to these
pins.
For the
CLKS pin
, all of the reset and I/O enable conditions must be met:
-
Both the receiver and transmitter of the serial port are in reset (RRST = 0
and XRST = 0).
-
General-purpose I/O is enabled for both the receiver and the transmitter
(RIOEN = 1 and XIOEN = 1).
The CLKS pin can only be an input pin. To read the status of the signal on the
CLKS pin, read the CLKSSTAT bit in PCR. Not all C55x devices have a
CLKS pin; check the device-specific data manual.
Содержание TMS320VC5509
Страница 5: ...vi This page is intentionally left blank ...
Страница 43: ...McBSP Operation 2 20 SPRU592E This page is intentionally left blank ...
Страница 105: ...SPI Operation Using the Clock Stop Mode 6 16 SPRU592E This page is intentionally left blank ...
Страница 187: ...Transmitter Configuration 8 40 SPRU592E This page is intentionally left blank ...
Страница 191: ...General Purpose I O on the McBSP Pins 9 4 SPRU592E This page is intentionally left blank ...
Страница 201: ...Emulation Power and Reset Considerations 10 10 SPRU592E ...
Страница 207: ...Data Packing Examples 11 6 SPRU592E This page is intentionally left blank ...
Страница 273: ...McBSP Register Worksheet 13 14 SPRU592E This page is intentionally left blank ...