English
Language : 

TMP86PS64FG Datasheet, PDF (66/210 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
5. I/O Ports
TMP86PS64FG
5.1 Port P0 (P07 to P00)
Port P0 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 P0 input/output control register (P0CR).
During reset, the P0CR is initialized to “0”, which configures port P0 as an input. The P0 output latches are also ini-
tialized to “0”.
STOP
OUTEN
P0CRi
Data input
Data output
DQ
P0i
Output latch
Note 1: i = 7 to 0
Note 2: STOP: bit 7 in SYSCR1, OUTEN: bit 4 in SYSCR1
Figure 5-2 Port P0
P0DR
7
6
5
4
3
2
1
0
(0000H)
P07
P06
P05
P04
P03
P02
P01
P00 (Initial value: 0000 0000)
P0CR
(0008H)
7
P0CR7
6
P0CR6
5
P0CR5
4
P0CR4
3
P0CR3
2
P0CR2
1
P0CR1
0
P0CR0 (Initial value: 0000 0000)
I/O control for port P0
0: Input mode
P0CR
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 56