tmp86c809ng TOSHIBA Semiconductor CORPORATION, tmp86c809ng Datasheet - Page 60

no-image

tmp86c809ng

Manufacturer Part Number
tmp86c809ng
Description
8 Bit Microcontroller Tlcs-870/c Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
5.3 P2 (P22 to P20) Port
5.3 P2 (P22 to P20) Port
Read only
(000DH)
(0002H)
P2PRD
frequency resonator connecting pin. When using this port as an input port or function pin, set the output latch to 1.
The output latch is initialized to 1 when reset. When operating in dual-clock mode, connect a low-frequency resona-
tor (32.768 kHz) to the P21 (XTIN) and P22 (XTOUT) pins. When operating in single-clock mode, the P21 and P22
pins can be used as ordinary input/output ports. We recommend using the P20 pin for external interrupt input or
STOP canceling signal input or as an input port. (When used as an output port, the interrupt latch is set by a falling
edge.)
inspect the pin status, read the P2PRD register. When the P2DR or P2PRD read instruction is executed for the P2
port, the values read from bits 7 to 3 are indeterminate.
P2DR
R/W
The P2 port is a 3-bit input/output port shared with external interrupt input, STOP canceling signal input, and low-
The P2 port has independent data input registers. To inspect the output latch status, read the P2DR register. To
Note: The P20 pin is shared with the
Data input (P20PRD)
Data input (P21PRD)
Data input (P22PRD)
OUTEN status.
Data input (P20)
Data input (P21)
Data input (P22)
7
7
Control input
Data output
Data output
Data output
ST P
UTEN
XTEN
6
6
fs
5
5
utput latch
utput latch
utput latch
D
D
D
STOP
4
4
Q
Q
Q
pin, so that when in STOP mode, its output goes to a High-Z state regardless of the
Figure 5-4 P2 Port
3
3
Page 50
XTOUT
P22
P22
2
2
XTIN
P21
P21
1
1
sc. enable
STOP
P20
INT5
P20
0
0
(Initial value: **** *111)
P20 (INT5, ST P)
P21 (XTIN)
P22 (XT UT)
TMP86C809NG

Related parts for tmp86c809ng