Fujitsu F2MC-16LX Hardware Manual page 114

Mb90470 series 16-bit microcontroller
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 3 INTERRUPT
LOOP
;---------------Interrupt program------------------------------------------------
WARI
CODE
;---------------Vector processing------------------------------------------------
VECT
VECT
98
MOV
I:ICR00,#00001000B ;EI
MOV
I:ELVR, #00000001B ;Requests that INT0 be made H level.
MOV
I:EIRR, #00H
MOV
I:ENIR, #01H
MOV
ILM, #07H
OR
CCR, #040H
:
BRA
LOOP
CLRB
ER0
:
User
processing
:
RETI
ENDS
CSEG
ABS=0FFH
ORG
0FFD0H
DSL
WARI
ORG
0FFDCH
DSL
START
DB
00H
ENDS
END
START
2
2
OS channel 0, EI
OS enable, interrupt level 0
;(highest priority)
;Clears the INT0 interrupt cause.
;Enables INT0 interrupts.
;Sets the ILM in the PS to level 7.
;Sets the I flag of the CCR in the PS and
;enables interrupts.
;Infinite loop
;Clears interrupt/DTP request flag.
2
;Checks EI
OS termination factor,
;processes data in buffer, sets EI
;Sets vector for interrupt #11 (0BH).
;Sets reset vector.
;Sets single-chip mode.
2
OS again.

Advertisement

Table of Contents
loading

Table of Contents