Fujitsu F2MC-8L Series Hardware Manual page 217

8-bit microcontroller
Hide thumbs Also See for F2MC-8L Series:
Table of Contents

Advertisement

CHAPTER 7 8/16-BIT TIMER/COUNTER
MOV
MOV
MOV
MOV
MOV
SETI
:
;-----Interrupt processing routine-------------------------------------------------------------------------------------------------------------------
WARI
CLRB
PUSHW
XCHW
PUSHW
:
User processing
:
POPW
XCHW
POPW
RETI
ENDS
;------------------------------------------------------------------------------------------------------------------------------------------------------------
END
190
T2CR, #00000010B
T2CR, #00011000B
T1DR, #28H
T1CR, #00111000B
T1CR, #11111001B
T1IF
A
A,T
A
A
A,T
A
; Clear timer 2 interrupt request flag,
; disable interrupt request output, set other than 16-bit mode,
; and stop operation
; Clear timer 1 interrupt request flag, set square wave initial value
; "L", select 512 tinst, and stop operation.
; Set value (interval time) to which counter value is compared.
; Output "L" level to square wave output pin (TO).
; Enable timer 1 interrupt request output, clear counter,
; and activate timer.
; Enable for CPU interrupts.
; Clear interrupt request flag.

Advertisement

Table of Contents
loading

Table of Contents