SN8F2250B Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
8.3.4 T1 TIMER OPERATION SEQUENCE
T1 timer operation sequence of setup T1 timer is as following.
)
Stop T1 timer counting, disable T1 interrupt function and clear T1 interrupt request flag.
B0BCLR
B0BCLR
B0BCLR
FT1ENB
FT1IEN
FT1IRQ
; T1 timer.
; T1 interrupt function is disabled.
; T1 interrupt request flag is cleared.
)
)
Set T1 timer rate.
MOV
A, #0xxx0000b
T1M,A
;The T1 rate control bits exist in bit4~bit6 of T1M. The
; value is from x000xxxxb~x111xxxxb.
; T1 timer is disabled.
B0MOV
Set T1 interrupt interval time.
MOV
A,#0E5H
B0MOV
MOV
B0MOV
T1C_L,A
A,#48H
T1C_H,A
; Set T1C_L value.
; Set T1C_H value.
)
)
Set T1 timer function mode.
B0BSET
FT1IEN
; Enable T1 interrupt function.
; Enable T1 timer.
Enable T1 timer.
B0BSET
FT1ENB
SONiX TECHNOLOGY CO., LTD
Page 81
Version 1.1