TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P231611-6++ PROGRAMMING TIP — Using the Basic Timer1. To read the basic timer count register (BCNT):BITS EMBSMB 15BCNTR LD EA,BCNTLD YZ,EALD EA,BCNTCPSE EA,YZJR BCNTR2. When stop mode is released by an interrupt, set the oscillation stabilization interval to 31.3 ms at 4.19 MHz:BITS EMBSMB 15LD A,#0BHLD BMOD,A ; Wait time is 31.3 msNOPSTOP ; Get into stop for power-down modeNOPNOPNOPNORMALOPERATING MODE STOP MODE IDLE MODE(31.3 ms)CPUOPERATIONSTOPINSTRUCTIONSTOP MODE ISRELEASED BYINTERRUPTNORMALOPERATING MODE3. To set the basic timer interrupt interval time to 1.95 ms (at 4.19 MHz):BITS EMBSMB 15LD A,#0FHLD BMOD,AEIBITS IEB ; Basic timer interrupt enable flag is set to "1"4. Clear BCNT and the IRQB flag and restart the basic timer:BITS EMBSMB 15BITS BMOD.3