English
Language : 

TMP86FS28FG Datasheet, PDF (81/272 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
TMP86FS28FG
5.9 Port P8 (P80 to P87)
Port P8 is an 8-bit input/output port that can also be used for LCD segment output.
A reset initializes the output latch (P8DR) to “1”, the Pch control (P8OUTCR) to “0”, and the LCD output control
register (P8LCR) to “0”.
To use a pin in Port P8 as an input port, set P8DR to “1” and then set the corresponding bit in P8LCR and
P8OUTCR to “0”.
To use a pin in Port P8 as an LCD segment output, set the corresponding bit in P8LCR to “1”.
The output circuit of Port P8 can be set either as sink open-drain output (“0”) or CMOS output (“1”) individually
for each bit in P8OUTCR.
Port P8 has a separate data input register. The output latch state can be read from the P8DR register, and the pin
state can be read from the P8PRD register.
Table 5-11 Register Programming for Port P8 (P80 to P87)
Function
Port input
Port “0” output
Port “1” output
LCD segment output
P8DR
“1”
“0”
“1”
*
Port Input
P8OUTCR
“0”
Set as
appropriate.
*
Note: An asterisk (*) indicates that either “1” or “0” can be set.
STOP
OUTEN
P8OUTCRi
P8OUTCRi input
P8LCRi input
P8LCRi
Data input (P8PRD)
Output latch read (P8DR)
Data output (P8DR)
LCD data output
DQ
DQ
DQ
Output latch
Figure 5-10 Port P8
P8LCR
“0”
“0”
“0”
“1”
P8i
Note) i = 7~0
Page 69