Fujitsu MB90335 Series Hardware Manual page 129

16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 3 INTERRUPT
3.11 Program Example of Interrupt Processing
LOOP:
;----------Interrupt Program------------------------------------------------------------
WARI
CODE
----------Vector Settings-------------------------------------------------------------------
VECT
VECT
108
MOV
DCTL,#64H
MOV
DCTH,#00H
MOV
I:ICR00,#00001000B
MOV
I:ELVR,#00000001B
MOV
I:EIRR,#00H
MOV
I:ENIR,#01H
MOV
ILM,#07H
OR
CCR,#40H
:
BRA
LOOP
CLRB
ER0
:
user processing
:
RETI
ENDS
CSEG
ABS=0FFH
ORG
0FFB4H
DSL
WARI
ORG
0FFDCH
DSL
START
DB
00H
ENDS
END
START
FUJITSU MICROELECTRONICS LIMITED
MB90335 Series
; Sets transfer byte count (100 bytes)
2
2
; EI
OS ch.0, EI
OS enable, interrupt level 0 (highest)
; Make INT0 "H" level request
; Clears interrupt cause for INT0.
; Enables INT0 interrupt.
; Sets ILM in PS to level 7
; Sets I flag of CCR in PS to enable interrupts.
; Infinite loop
; Interrupt/DTP request flag clear
; confirmation of the cause of the EI
; Processes data in buffer, resetting EI
; The vector is set in interruption #18(12
; Reset vector setting
; Single-chip mode setting
2
OS completion
2
OS etc.
).
H
CM44-10137-6E

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lxMb90v330aMb90f337Mb90337

Table of Contents