S1C6S3N2 TECHNICAL SOFTWARE
EPSON
II-73
CHAPTER 5: PERIPHERAL CIRCUITS (Input Ports)
(3) Setting differential register and interrupt mask register
This program sets the mask registers and differential regis-
ters of K00–K03 and K10 as shown in the table below.
DI
;
;
LD
X,74H
;
LDPX
MX,1101B
;
LD
MX,0111B
;
;
LD
X,77H
;
LD
MX,0100B
;
;
EI
;
Disable interrupts
Set the differential registers of K00–K03
to "1101", Set the interrupt mask registers of
K00–K03 to "0111"
Enable interrupt at the rising edge of K10
Enable interrupt
Program
Specifications
Table 5.7.3
Setting of interrupt
generation conditions
K10
Port
K03
K02
K01
K00
1
0
1
1
1
Mask Register
Generation
of Interrupt
0
1
1
0
1
Differential
Rising
edge
Don't care
Change from
High input
status
Change from
Low input
status
Change from
High input
status
Generation
Conditions
K1
interrupt
K0 interrupt
Interrupt
Generated
Enabled
Disabled
Enabled
Enabled
Enabled
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......