Fujitsu MB90895 Series Hardware Manual page 292

16 bit, controller manual
Table of Contents

Advertisement

CHAPTER 8 16-bit reload timer
;---------Interrupt program---------------------------------
WARI:
CODE
;---------Vector setting------------------------------------
VECT
VECT
I Program Example in Event Counter Mode
G
Processing specification
• An interrupt is generated when rising edges of the pulse input to the external event input pin are counted
10000 times by the 16-bit reload timer/counter.
• Operation is performed in the one-shot mode.
• The rising edge is selected for the external trigger input.
2
• EI
OS is not used.
G
Coding example
ICR03
EQU
TMCSR0 EQU
TMR0
EQU
TMRLR0 EQU
DDR2
EQU
UF0
EQU
CNTE0
EQU
TRG0
EQU
;---------Main program-----------------------------------
CODE
;
AND
MOV
274
CLR
I:UF0
User processing
RETI
ENDS
CSEG ABS=0FFH
ORG
00FFB8H
DSL
WARI
ORG
00FFDCH
DSL
START
DB
00H
ENDS
END
START
0000B3H
000066H
003900H
003900H
000012H
TMCSR0:2
TMCSR0:1
TMCSR0:0
CSEG
:
CCR,#0BFH
I:ICR03,#00H
;Clear interrupt request flag
;Recovery from interrupt
;Setting vector to interrupt #17
;Reset vector setting
;Setting to single chip mode
;For 16-bit reload timer
;Interrupt control register
;Timer control status register
;16-bit timer register
;16-bit reload register
;Port data register
;Interrupt request flag bit
;Counter operating enable bit
;Software trigger bit
;Stack pointer (sp),already initialized
;Interrupt disabled
;Interrupt level 0 (strongesut)

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lx

Table of Contents