CHAPTER 3: PERIPHERAL CIRCUITS (Output Port)
II-17
• Loading B register data into R00, R01
Label
Mnemonic/operand
Comment
LD
Y,0F3H
;
Set address of port
LD
MY,B
;
R00, R01
←
B register
As shown in Figure 3.2.1, the two instruction steps above
load the data of the B register into the output ports.
Examples of output
port control
program
D3
D2
D1
D0
Data register
R00
Data register
R01
B register
"0" when being read
"0" when being read
Fig. 3.2.1
Control of the output port
The output data can be taken from the A register, MX, or
immediate data instead of the B register.