English
Language : 

TMP86FS64FG Datasheet, PDF (82/252 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
5. I/O Ports
TMP86FS64FG
5.10 Port P9 (P97 to P90)
Port P9 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 P9 input/output control register (P9CR).
During reset, the P9CR is initialized to “0”, which configures port P9 as an input. The P9 output latches are also ini-
tialized to “0”.
STOP
OUTEN
P9CRi
Data input
Data output
DQ
P9i
Output latch
Note 1: i = 7 to 0
Note 2: STOP: bit 7 in SYSCR1, OUTEN: bit 4 in SYSCR1
Figure 5-11 Port P9
P9DR
7
6
5
4
3
2
1
0
(0FB1H)
P97
P96
P95
P94
P93
P92
P91
P90 (Initial value: 0000 0000)
P9CR
(0FB3H)
7
P9CR7
6
P9CR6
5
P9CR5
4
P9CR4
3
P9CR3
2
P9CR2
1
P9CR1
0
P9CR0 (Initial value: 0000 0000)
I/O control for port P9
0: Input mode
P9CR
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 70