Page 34 - DEC40053 Ebook_Timer
P. 34

Example


















              Show the process time delay generated by Timer0 if

              value TMR0H:TMR0L = 0xFFF2 and no prescaler.







                Timer0  value  will  increment  from  0xFFF2  until

                highest value (0xFFFF) before it overflows and roll

                over to 0x0000. TMR0IF will not raise (TMR0IF = 0)

                until Timer0 overflows and roll over (TMR0IF = 1).

















































                                                          -26-
   29   30   31   32   33   34   35   36   37   38   39