10 port d (pd0 to pd3) – Toshiba H1 SERIES TLCS-900 User Manual

Page 72

Advertising
background image

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 addr

ess 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

Advertising
This manual is related to the following products: