Epson S1C6S3N2 Technical Manual page 219

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

(3) Setting differential register and interrupt mask register
Specifications
Table 5.7.3
Setting of interrupt
generation conditions
Program
;
;
;
S1C6S3N2 TECHNICAL SOFTWARE
This program sets the mask registers and differential regis-
ters of K00–K03 and K10 as shown in the table below.
Port
K10
Mask Register
1
Generation
Enabled
of Interrupt
Differential
0
Generation
Rising
edge
Conditions
Interrupt
K1
interrupt
Generated
DI
LD
X,74H
LDPX
MX,1101B
LD
MX,0111B
LD
X,77H
LD
MX,0100B
EI
EPSON
CHAPTER 5: PERIPHERAL CIRCUITS (Input Ports)
K03
K02
0
1
Disabled
Enabled
1
1
Change from
Don't care
High input
status
K0 interrupt
;
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
K01
K00
1
1
Enabled
Enabled
0
1
Change from
Change from
Low input
High input
status
status
II-73

Advertisement

Table of Contents
loading

Table of Contents