Fujitsu MB90460 Series Hardware Manual page 553

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 18 DTP/EXTERNAL INTERRUPT CIRCUIT
LOOP:
;-------Interrupt program-------------------------------------------------------------------------------------------
WARI:
;
;
;
CODE
;-------Vector setting------------------------------------------------------------------------------------------------------
VECT
VECT
END
534
MOV
BAPL,#00H
MOV
BAPM,#06H
MOV
BAPH,#00H
MOV
ISCS,#12H
MOV
IOAL,#00H
MOV
IOAH,#00H
MOV
DCTL,#0AH
MOV
DCTH,#00H
CLRB
I:EN0
MOV
I:ELVRL,#00000001B;Selects H level for INT0
CLRB
I:ER0
SETB
I:EN0
MOV
ILM,#07H
OR
CCR,#40H
MOV
A,#00H
MOV
A,#01H
BRA
LOOP
CLRB
I:ER0
:
;
User processing
:
RETI
ENDS
CSEG
ABS=0FFH
ORG
0FFACH
DSL
WARI
ORG
0FFDCH
DSL
START
DB
00H
ENDS
STAR
2
;Enables EI
OS. Channel 0
;Sets the address of the output data
;
;
;Byte transfer. I/O address fixed. Buffer address
+ 1. Transfer from memory to I/O
;Specifies port 0 (PDR0) as the transfer destination
;address pointer
;Number of transfers: 10
;
;Disables INT0 using ENIR
;Clears the cause of INT0 using EIRR
;Enables INT0 using ENIR
;Sets ILM in PS to level 7
;Enables interrupts
;Endless loop
;
;
;Clears the interrupt request flag
;Switches the channel and changes the transfer
address, if required
;Specifies processing again, such as the termination
2
of EI
OS. To terminate the processing, interrupts
must be disabled
;Returns from the interrupt
;Sets vector for interrupt #20 (14H)
;Sets reset vector
;Sets single-chip mode

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents