
39
μ
PD64A, 65
Data Sheet U14380EJ2V0DS00
9.5 Input/Output Instructions
IN A, P0n
IN A, P1n
<1> Instruction code
<2> Cycle count
<3> Function
:
1 1 1 1 P
4
1 1 P
2
P
1
P
0
: 1
: (A)
←
(Pmn)
CY
←
0
m = 0, 1
n = 0, 1, 3, 4
The port Pmn data is loaded (read) onto the accumulator.
OUT P0n, A
OUT P1n, A
<1> Instruction code
<2> Cycle count
<3> Function
The accumulator contents are transferred to port Pmn to be latched.
:
0 0 1 0 P
4
1 1 P
2
P
1
P
0
: 1
: (Pmn)
←
(A)
m = 0, 1
n = 0, 1, 3, 4
ANL A, P0n
ANL A, P1n
<1> Instruction code
<2> Cycle count
<3> Function
:
1 1 0 1 P
4
1 1 P
2
P
1
P
0
: 1
: (A)
←
(A)
CY
←
A
3
Pmn
∨
(Pmn)
m = 0, 1
n = 0, 1, 3, 4
The accumulator contents and the port Pmn contents are ANDed and the results are entered in the
accumulator.
ORL A, P0n
ORL A, P1n
<1> Instruction code
<2> Cycle count
<3> Function
:
1 1 1 0 P
4
1 1 P
2
P
1
P
0
: 1
: (A)
←
(A)
∨
(Pmn)
CY
←
0
m = 0, 1
n = 0, 1, 3, 4
The accumulator contents and the port Pmn contents are ORed and the results are entered in the
accumulator.
XRL A, P0n
XRL A, P1n
<1> Instruction code
<2> Cycle count
<3> Function
:
1 0 1 0 P
4
1 1 P
2
P
1
P
0
: 1
: (A)
←
(A)
∨
(Pmn)
CY
←
A
3
Pmn
m = 0, 1
n = 0, 1, 3, 4
The accumulator contents and the port Pmn contents are exclusive-ORed and the results are entered
in the accumulator.