S1C6S3N2 TECHNICAL SOFTWARE
EPSON
II-71
CHAPTER 5: PERIPHERAL CIRCUITS (Input Ports)
(1) Reading to input ports
This program reads the input port (K00–K03) data to RAM,
YINB.
Address
Data bits
D3
D2
D1
D0
● ▲
● ▲
H
K03
K02
K01
K00
Then it reads the input port (K10) data to the A register.
A register
D3
D2
D1
D0
0
EIK10
DFK10
K10
YINB
EQU
● ▲
● ▲
H
;
;
;
LD
X,73H
;
LD
Y,YINB
;
LD
MY,MX
;
;
LD
X,77H
;
LD
A,MX
;
AND
A,0001B
;
When input ports are changed from high to low by pull-
down resistor, the fall of the waveform is delayed on account
of the time constant of the pull-down resistance and input
gate capacitance.
Buffer address of K00–K03 input data
Store K00–K03 data in RAM, YINB
Load K10 data to A register (D0)
Reset all bits except D0 to "0"
Example of using
input ports
Specifications
Program
Note
Table 5.7.2
Correspondence of input ports
(K00–K03) and store memory
Fig. 5.7.1
Correspondence of input port
(K10) and A register
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......