Toshiba TMP92CM22FG TLCS-900/H1 Series Manual page 72

Toshiba original cmos 32-bit microcontroller
Table of Contents

Advertisement

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.
Reset
Direction control
Function control
INT4, TB1IN0
INT5, TB1IN1
Note: Can not read the output latch data when output mode.
(on bit basis)
PDCR write
(on bit basis)
PDFC write
S
Output latch
PD write
Selector
PD read
Figure 3.5.22 Port D (PD0 and PD1)
92CM22-70
S
B
A
TMP92CM22
PD0 (INT4, TB1IN0)
PD1 (INT5, TB1IN1)
2007-02-16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tlcs-900/h1 series

Table of Contents