Fujitsu MB90460 Series Hardware Manual page 372

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

AND
MOV
MOVW
MOVW
MOVW
MOVW
MOV
OR
LOOP:
MOV
MOV
BRA
;-------Interrupt program--------------------------------------------------------------------------------------------
WARI:
CLRB
;
:
;
User processing
;
:
RETI
CODE
ENDS
;-------Vector setting------------------------------------------------------------------------------------------------
VECT
CSEG
ORG
DSL
ORG
DSL
DB
VECT
ENDS
END
CCR,#0BFH
;Interrupt disable
I:ICR00,#00H
;Interrupt level 0 (strongest)
I:TCCS,#0000H
;Enables 16-bit free-run timer
;Sets up-count mode
I:OCCP0,#0BFFFH
;Set output compare register 0
I:OCCP1,#07FFFH
;Set output compare register 1
I:OCS01,#0C1FH
;Enables output compare output
;Enables compare match interrupt 0
;Clears interrupt flag and enable output compare
ILM,#07H
;Sets ILM in PS to level 7
CCR,#40H
; Interrupt enable
A,#00H
;Endless loop
A,#01H
;
LOOP
;
I:IOP
;Clears interrupt request flag
;Returns from interrupt
ABS=0FFH
0FFCCH
;Sets vector for interrupt #12 (0CH)
WARI
0FFDCH
;Sets reset vector
START
00H
;Sets single-chip mode
START
CHAPTER 14 MULTI-FUNCTIONAL TIMER
353

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents