EasyManua.ls Logo

ST ST10F276E - Page 123

ST ST10F276E
564 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DocID13284 Rev 2 123/564
UM0404 Interrupt and trap functions
XIR1SET (EB22h) XBUS Reset Value: 0000h
XIR1CLR (EB24h) XBUS Reset Value: 0000h
To enable the interrupt in the interrupt controller, the Interrupt Control Register XP1IC has to
be initialized. The associated interrupt vector is called XP1INT located at address 104h (trap
number 41h).
XP1IC (F18Eh / C7h) ESFR Reset Value: - - 00h
Note: Refer to Section 5.1.3: Interrupt control registers on page 100 for an explanation of the
control fields.
XIR2SEL (EB30h) XBUS Reset Value: 0000h
1514131211109876543210
IESET[7:0] FLSET[7:0]
WWWWWWWWWWWWWWWW
Bit Function
FLSET.x
Interrupt Flag x SET (x=7...0)
Writing a ‘1’ will set the corresponding bit x in XIR1SEL register.
Writing a ‘0’ has no effect.
IESET.x
Interrupt Enable x SET (x=7...0)
Writing a ‘1’ will set the corresponding bit x in XIR1SEL register.
Writing a ‘0’ has no effect.
1514131211109876543210
IECLR[7:0] FLCLR[7:0]
WWWWWWWWWWWWWWWW
Bit Function
FLCLR.x
Interrupt Flag x CLEAR (x=7...0)
Writing a ‘1’ will clear the corresponding bit x in XIR1SEL register.
Writing a ‘0’ has no effect.
IECLR.x
Interrupt Enable x CLEAR (x=7...0)
Writing a ‘1’ will clear the corresponding bit x in XIR1SEL register.
Writing a ‘0’ has no effect.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
--------XP1IRXP1IE ILVL GLVL
RW RW RW RW
1514131211109876543210
IE.7 IE.6 IE.5 IE.4 IE.3 IE.2 IE.1 IE.0 FL.7 FL.6 FL.5 FL.4 FL.3 FL.2 FL.1 FL.0
RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW

Table of Contents

Related product manuals