4 port p3 (p35 to p30), Toshiba – Toshiba TMP87CP24AF User Manual
Page 57
Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

TOSHIBA
TMP87CM24A/P24A
2.2.4 Port P3 (P35 to P30)
Port P3 is an
6
-bit input/output port. When used as an input port, the output latch should be set to "1
The output latches are initialized to "1" during reset.
When a read instruction is executed for port P3, bit 7 and bit
6
read in as indefinite.
Example 1: Output the immediate data 2A
h
to the P3 port.
LD (P3),2AH
; P3^2A
h
Example 2: Inverts the output of the upper 3bits (P35 to P34) of the P3 port.
XOR (P3),
110000B
; P35toP34^-^toP34
CM P/MCM P/TEST/others
P3
(0003
h
)
R/W
7
6
5
4
3
2
1
0
; -
-
P35
P34
P33
P32
P31
P30
(Initial value:
**11 1111)
Figure 2-6. Port P3
3
-
24-57
2002
-
10-03