FUJITSU F2MC-8L F202RA User Manual
Page 217
Advertising

201
CHAPTER 8 8/16-BIT CAPTURE TIMER/COUNTER
MOV
TCR2,#00000010B
; Outputs a square wave (TO) from the P34 pin.
MOV
TCR0,#10101011B
; Allows timer 0 interrupt request output, clears the
counter, and starts the timer.
SETI
; Enables the CPU interrupt.
:
;------------------------Interrupt program----------------------------------------------------------------------------
WARI
CLRB
TIF0
; Clears the interrupt request flag.
PUSHW
A
XCHW
A,T
PUSHW
A
:
User processing
POPW
A
XCHW
A,T
POPW
A
RETI
ENDS
; --------------------------------------------------------------------------------------------------------------------
END
Advertising
This manual is related to the following products: