II-76
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (Input Ports)
DI
;
LD
X,74H
;
LDPX
MX,0000B
;
LD
MX,1111B
;
EI
;
;
;
YINB
EQU
●
●
H
;
;
;
IK0:
LD
X,73H
;
LD
Y,YINB
;
LD
MY,MX
;
LD
A,0H
;
;
CP
MY,0001B
;
JP
Z,K00
;
JP
C,DSER
;
;
;
CP
MY,0010B
;
JP
Z,K01
;
CP
MY,0100B
;
JP
Z,K02
;
CP
MY,1000B
;
JP
Z,K03
;
;
JP
IK0MLT
;
;
Disable interrupts
Set differential registers of K00–K03
to "0000"
Enable K00–K03 interrupt
Enable interrupts
Read data buffer address
Store K00–K03 data in RAM, YK0B
Preparation:
If only K00 is high input
then
execute K00 input processing "K00", and return to "INIK"
If not high input pin
then
execute the error display processing "DSER",
and return to "INIK"
If only K01 is high input
then
execute K01 input processing "K01", and return to "INIK"
If only K02 is high input
then
execute K02 input processing "K02", and return to "INIK"
If only K03 is high input
then
execute K03 input processing "K03", and return to "INIK"
Multiple key entry: Execute multiple key entry processing "IK0MLT", and
return to "INIK"
This routine assumes that processing routines "K00"–"K03",
"IK0MLT" and "DSER" have been prepared separately.
Program
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......