English
Language : 

TMP88CS34NG Datasheet, PDF (45/215 Pages) Toshiba Semiconductor – CMOS 8-Bit Microcontroller
TMP88CS34/CP34
When reading an I/O port except programmable I/O ports, whether the pin input data or the
output latch contents are read depends on the instructions, as shown below:
(1) Instructions that read the output latch contents
1. XCH r, (src)
2. SET/CLR/CPL (src).b
3. SET/CLR/CPL (pp).g
4. LD (src).b, CF
5. LD (pp).b, CF
6. ADD/ADDC/SUB/SUBB/AND/OR/XOR (src), n
7. (src) side of ADD/ADDC/SUB/SUBB/AND/OR/XOR (src), (HL)
(2) Instructions that read the pin input data
1. Instructions other than the above (1)
2. (HL) side of ADD/ADDC/SUB/SUBB/AND/OR/XOR (src), (HL)
2.2.1
Port P2 (P20)
Port P2 is a 1bit input/output port. It is also used as an external interrupt input, and a
STOP mode release signal input. When used as an input port, or a secondary function pin,
the output latch should be set to “1”. During reset, the output latch is initialized to “1”.
It is recommended that pin P20 should be used as an external interrupt input, a STOP
mode release signal input, or an input port. If used as an output port, the interrupt latch is
set on the falling edge of the P20 output pulse.
When a read instruction for port P2 is executed, bits 7 to 1 in P2 are read in as undefined
data.
SET/CLR/CPL/others
Data input
Data input
Control input
STOP
OUTEN
Output latch
DQ
P20 ( INT5 / STOP )
76543210
P2
P20
(00002H)
INT5
STOP
Note: *: Don’t care
Figure 2.2.2 Port P2
(Initial value: **** ***1)
88CS34-45
2007-09-12