Epson E0C6001 Technical Manual page 107

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

E0C6001 TECHNICAL SOFTWARE
Fig. 3.4.2
Control of I/O port (input)
II-26
• Loading P00–P03 output data into A register
Label
Mnemonic/operand
LD
Y,0FCH
OR
MY,0001B
LD
Y,0F6H
LD
A,MY
As shown in Figure 3.4.2, the four instruction steps above
load the data of the I/O ports into the A register.
D3
D2
P03
P02
A register
Data can be loaded from the I/O port into the B register or
MX instead of the A register.
Comment
;
Set the address of input/output
;
port control register
;
Set as output port
;
Set the address of port
A register ← P00–P03
;
D1
D0
P01
P00
Data register
Data register
Data register
Data register
P00
P01
P02
P03

Advertisement

Table of Contents
loading

Table of Contents