Toshiba TLCS-900 Computer Hardware User Manual


 
TMP92CM22
2007-02-16
92CM22-70
3.5.10 Port D (PD0 to PD3)
Port D is 4-bit general-purpose I/O port. Each bit can be set individually for input or
output. Resetting sets port D to input port.
In addition to functioning as a general-purpose I/O port, port D can also function as an
input pin (INT4 and INT5)/output pin (TB0IN, TB1OUT, TB3OUT, and TB1OUT1).
These settings operate by programming “1” to the corresponding bit of PDCR and PDFC.
Resetting resets the PDCR and PDFC to “0”, and sets all bits to input port.
(1) PD0 (INT4, TB1IN0), PD1 (INT5, TB1IN1)
In addition to function as I/O port, port PD0 and PD1 can also function as external
interrupt input pins INT4, INT5, timer channel input pins TB1IN0 and TB1IN1.
Note: Can not read the output latch data when output mode.
Figure 3.5.22 Port D (PD0 and PD1)
Internal address bus
Direction control
(on bit basis)
Reset
PDCR write
PD write
PD read
PD0 (INT4, TB1IN0)
PD1 (INT5, TB1IN1)
Function control
(on bit basis)
PDFC write
S
Output latch
S
B
Selector
A
INT4, TB1IN0
INT5, TB1IN1