9 port c (pc0, pc1, pc3, pc5, and pc6) – Toshiba H1 SERIES TLCS-900 User Manual

Page 68

Advertising
background image

TMP92CM22

2007-02-16

92CM22-66

3.5.9

Port C (PC0, PC1, PC3, PC5, and PC6)

Port C is 5-bit general-purpose I/O port. Each bit can be set individually for input or

output. Resetting sets port C to input port.

In addition to functioning as a general-purpose I/O port, port C can also function as a

input/output pin (TA0IN, TA1OUT, TA3OUT, and TB0OUT0) and external interrupt pin
(INT0 to INT3).

These settings operate by programming “1” to the corresponding bit of PCCR and PCFC.
Resetting resets the PCCR and PCFC to “0”, and sets all bits to input port.

(1) PC0 (TA0IN)

In addition to function as I/O port, port PC0 can also function as input pin TA0IN of

timer channel 0.

Note: Can not read the output latch data when output mode.

Figure 3.5.18 Port C (PC0)

Internal data bus

Direction control

(on bit basis)

Reset

PCCR write

PC read

PC0 (TA0IN)

PC write

S

Output latch

S

B

Selector

A

Function control

(on bit basis)

PCFC write

TA0IN

Advertising
This manual is related to the following products: