English
Language : 

TMP86C407NG Datasheet, PDF (59/152 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
TMP86C407NG
5.2 P1 (P12 to P10) Port
The P1 port is a 3-bit input/output port that can be specified for input or output bitwise. The P1 Port Input/output
Control Register (P1CR) is used to specify this port for input or output. When reset, the P1CR register is initialized
to 0, with the P1 port set for input mode. The P1 port output latch is initialized to 0.
The P1 port is shared with external interrupt input and divider output. When using the P1 port as function pin, set
its input pins for input mode. For the output pins, first set their output latches to 1 before setting the pins for output
mode.
Note that the P11 pin is an external interrupt input. (When used as an output port, its interrupt latch is set at the ris-
ing or falling edge.) The P10 pin can be used as an input/output port or an external interrupt input by selecting its
function with the External Interrupt Control Register (INT0EN). When reset, the P10 pin is chosen to be an input
port.
Control input
OUTEN
STOP
P1CRi
P1CRi input
Data input (P1DR)
DQ
Output latch
Data output (P1DR)
Control output
DQ
Output latch
Figure 5-3 P1 Port
P1i
Note: i = 2 to 0
P1DR
7
6
5
4
3
2
1
0
(0001H)
R/W
P12
P11
P10
(Initial value: **** *0000)
DVO
INT1
INT0
P1CR
7
6
5
4
3
2
1
0
(0009H)
(Initial value: **** *000)
Controls P1 port input/output 0: Input mode
P1CR
R/W
(specified bitwise)
1: Output mode
Page 49