![Toshiba TLCS-900 Family Data Book Download Page 164](http://html.mh-extra.com/html/toshiba/tlcs-900-family/tlcs-900-family_data-book_425998164.webp)
TMP92CZ26A
92CZ26A-161
3.7.18 Port R (R0 to R3)
Port R0 to R3 are 4-bit general-purpose I/O ports. Each bit can be set individually for
input or output. Resetting sets port R0 to R3 to input port and output latch to “0”. In
addition to functioning as general-purpose I/O port pins, PR0 to PR3 can also function as
SPI controller pin (SPCLK,
SPCS
, SPDO and SPDI).
Above setting is used the control register PRCR and function register PRFC.
Figure 3.7.49 Port R0
Selector
A
B
S
PR0(SPDI)
PR read
Direction
control
(on bit basis)
PRCR write
Function
control
(on bit basis)
PRFC write
R
Output latch
PR write
Reset
SPDI input
Internal dat
a
bus