II-44
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (Output Ports)
(2) Operation of output ports by separate bits
This routine uses the read-out capability of the output port
control registers, to control output for separate bits with the
memory arithmetic instructions.
First, "1" is written to registers R00 and R03 by the OR
instruction, and then "0" is written to register R01 by the
AND instruction.
The result of the output to ports R00–R03 is shown in
Figure 5.4.2.
Make R00 and R03 outputs high
Make R01 output low
LD
X,7BH
;
OR
MX,1001B
;
AND
MX,1101B
;
Specifications
Program
No change
Set to "1"
Set to "0"
Set to "1"
R03: Becomes high output
R02: No change
R01: Becomes low output
R00: Becomes high output
R00
R01
R02
R03
I/O memory
Fig. 5.4.2
Output result
Summary of Contents for S1C6S3N2
Page 4: ......
Page 6: ......
Page 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Page 8: ......
Page 141: ...Software Software S1C6S3N2 II Technical Software ...
Page 142: ......
Page 146: ......