SN8P2501D
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD Page 58 Version 1.5
Note: In RTC mode, don’t reset T0C in interrupt service routine.
Example: T0 interrupt service routine with RTC function.
; Push routine to save ACC and PFLAG to buffers.
; T0IRQ = 0, exit interrupt vector
; T0 interrupt service routine
; Pop routine to load ACC and PFLAG from buffers.
Note: We strongly recommend to clear T0IRQ must be used b0bclr or bclr instructions.