II-42
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (Output Ports)
Register R13 control for pin R13 has been selected by mask
option.
First, the immediate value "0010B" is output to the output
ports R00–R03.
The value of RAM, OUTB is output to output ports R10–R13.
Figure 5.4.1 indicates the correspondence of write data and
output ports.
(1) Writing and reading to output ports
Example of using
output ports
Specifications
R12 register
R13 register
R11 register
R10 register
R02 register
R03 register
R01 register
R00 register
R13
R12
R11
R10
R03: Becomes low output
R02: Becomes low output
R01: Becomes high output
R00: Becomes low output
0
1
0
0
D0
D1
D2
D3
RAM, OUTB
Immediate value
Fig. 5.4.1
Correspondence
of write data and
output ports
Then, the status of the (outputting) pins of output ports
R00–R03 is read into B register, and the status of the pins of
output ports R10–R13 is read into RAM, DTB.
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: ......