S1C6S3N2 TECHNICAL SOFTWARE
EPSON
II-83
CHAPTER 5: PERIPHERAL CIRCUITS (I/O Ports)
P00–P03, P10–P13
: I/O port data (07DH, 0FDH)
I/O port data can be read and output data can be set
through these ports.
• When writing data
When "1" is written:
High level
When "0" is written:
Low level
Port data can be written also in input mode.
• When reading data out
When "1" is read out:
High level
When "0" is read out:
Low level
The terminal voltage level of the I/O port is read out. When
the I/O port is in the input mode the voltage level being
input to the port terminal can be read out; in output mode
the output voltage level can be read.
Further, the built-in pull-down resistance goes ON during
read-out, so that the I/O port terminal is pulled down.
(1) Reading to I/O ports (P00–P03, P10–P13), when OSC1 running
When the CPU clock is OSC1, this routine sets I/O ports
(P00–P03) to input mode, and reads the input data to A
register.
A register
D3
D2
D1
D0
P03
P02
P01
P00
Example of program
for I/O ports
Specifications
Fig. 5.8.1
Correspondence of I/O ports
(input) and A register
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......