SN8P2501D
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD Page 80 Version 1.5
8.3.9 TC0 TIMER OPERATION EXPLAME
TC0 TIMER CONFIGURATION:
; Set TC0 rate and auto-reload function.
; Set TC0C and TC0R register for TC0 Interval time.
; TC0C must be equal to TC0R.
; Enable TC0 timer and interrupt function.
; Enable TC0 interrupt function.
TC0 EVENT COUNTER CONFIGURATION:
; Set TC0 auto-reload function.
; Enable TC0 event counter.
; Set TC0 clock source from external input pin (P0.0).
; Set TC0C and TC0R register for TC0 Interval time.
; TC0C must be equal to TC0R.
; Enable TC0 timer and interrupt function.
; Enable TC0 interrupt function.