TMP91C824
91C824-72
2008-02-20
3.5.8
Port C (PC0 to PC5)
Port C0 to C5 are 6-bit general-purpose I/O ports. Each bit can be set individually for
input or output. Resetting sets PC0 to PC5 to be an input ports. It also sets all bits of the
output latch register to 1.
In addition to functioning as general-purpose I/O port pins, PC0 to PC5 can also
function as the I/O for serial channels 0 and 1. A pin can be enabled for I/O by writing 1 to
the corresponding bit of the port C function register (PCFC).
Resetting resets all bits of the registers PCCR and PCFC to 0 and sets all pins to be
input ports .
(1)
Port C0, C3 (TXD0/TXD1)
As well as functioning as I/O port pins, port C0 and C3 can also function as serial
channel TXD output pins. In case of use TXD0/TXD1, it is possible to logical invert by
setting the register PC<PC0, 3>.
And port C0 to C3 have a programmable open-drain function which can be
controlled by the register PCODE<ODEPC0, 3>.
Figure 3.5.19 Port C0 and C3
PCODE<ODEPC0, 3>
Open-drain
set possible
Selector
A
B
S
Selector
A
B
S
PC0 (TXD0)
PC3 (TXD1)
TXD0, TXD1
PC read
Ditection control
(on bit basis)
PCCR write
Function control
(on bit basis)
PCFC write
S
Output latch
PC write
Reset
Int
erna
l dat
a
bus
Logical invert