English
Language : 

TMP86FS64FG Datasheet, PDF (71/252 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
TMP86FS64FG
5.2 Port P1 (P17 to P10)
Port P1 is an 8-bit input/output port, which can be configured individually as an input or an output under software
control. Input/output mode is specified by the corresponding bit in the port P1 input/output control register (P1CR).
During reset, the P1CR is initialized to “0”, which configures port P1 as an input mode. The P1 output latches are
also initialized to “0”.
It is also used as INT0, INT1, INT2/TC1, TC2, DVO and PPG. When used as secondary function pin, the input pins
(INT0, INT1, INT2, TC1,TC2) should be set to the input mode and the output pins (DVO, PPG) should be set to the
output mode beforehand the output latch should be set to “1”.
STOP
OUTEN
P1CRi
Data input
Data output
DQ
P1i
Control output
Output latch
Control input
Note 1: i = 7 to 0
Note 2: STOP: bit 7 in SYSCR1, OUTEN: bit 4 in SYSCR1
Figure 5-3 Port P1
7
6
5
4
3
2
1
0
P1DR
P17
P16
P15
P14
P13
P12
P11
P10
(0001H)
TC2
PPG
DVO
INT2
INT1
INT0 (Initial value: 0000 0000)
TC1
P1CR
(0009H)
7
P1CR7
6
P1CR6
5
P1CR5
4
P1CR4
3
P1CR3
2
P1CR2
1
P1CR1
0
P1CR0 (Initial value: 0000 0000)
I/O control for port P1
0: Input mode
P1CR
R/W
(specified for each bit)
1: Output mode
Note: When used as an input mode, read-modify-write instructions such as bit manipulate instructions cannot be used. Read-
modify-write instruction writes the all data of 8-bit after read and modified. Because a bit setting input mode reads data of
terminal, the output latch is changed by these instructions.
Page 59