Example Of Using Output Ports - Epson S1C6S3N2 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

CHAPTER 5: PERIPHERAL CIRCUITS (Output Ports)
Example of using
output ports
(1) Writing and reading to output ports
Specifications
Fig. 5.4.1
Correspondence
of write data and
output ports
II-42
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.
RAM, OUTB
Immediate value
D3
D2
D1
D0
0
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.
0
1
0
R13 register
R12 register
R11 register
R10 register
R03 register
R02 register
R01 register
R00 register
EPSON
R13
R12
R11
R10
R03: Becomes low output
R02: Becomes low output
R01: Becomes high output
R00: Becomes low output
S1C6S3N2 TECHNICAL SOFTWARE

Advertisement

Table of Contents
loading

Table of Contents