Fujitsu MB90460 Series Hardware Manual page 274

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

;-------Main program------------------------------------------------------------------------------------------------
CODE
START:
;
:
AND
MOV
MOV
CLRB
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
CSEG
CCR,#0BFH
I:ICR09,#00H
I:DDR1,#00H
I:CNTE
I:TMRD,#2710H
I:TMCSR,#0000110010001011B
ILM,#07H
CCR,#40H
A,#00H
A,#01H
LOOP
I:UF
ABS=0FFH
0FF84H
WARI
0FFDCH
START
00H
START
CHAPTER 12 16-BIT RELOAD TIMER
;Assumes that stack pointer (SP) has already been
initialized
;Interrupt disable
;Interrupt level 0 (strongest)
;Sets P15/INT5/TIN0 pin to input
;Temporary stopping of counter
;Sets reload value to 10,000
;Counter operation, external event input, rising
;Disables external output
;Selects single-shot mode and enables interrupts
;Clears interrupt flag, starts counter
;Sets ILM in PS to level 7
;Interrupt enable
;Endless loop
;
;
;Clears interrupt request flag
;Returns from interrupt
;Sets vector for interrupt #30 (1EH)
;Sets reset vector
;Sets single-chip mode
255

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents