Ing.Ing. ZbynZbyněěk Burek Burešš, Ph.D., Ph.D. zbynekzbynek..buresbures@@unobunob..czcz Mgr. VojtMgr. Vojtěěchch KrmKrmííččekek vojtec@vojtec@icsics..munimuni..czcz PIC12F629 / 675 Timers PIC12FPIC12F629 / 675629 / 675 TimersTimers PackagePackage Block diagrams of pinsBlock diagrams of pins Timer0Timer0 -- featuresfeatures 8 bit timer / counter,8 bit timer / counter, readable and writable,readable and writable, programmable 8 bitprogrammable 8 bit prescalerprescaler,, internal or external clock,internal or external clock, interrupt on overflow frominterrupt on overflow from 0xff0xff --> 0x00.> 0x00. Timer0Timer0 -- block diagramblock diagram RegistersRegisters ­­ Timer0Timer0 Registers Timer0 (cont.)Registers Timer0 (cont.) Registers summaryRegisters summary Timer1Timer1 -- featuresfeatures 16 bit timer / counter,16 bit timer / counter, readable and writable,readable and writable, programmable 2 bitprogrammable 2 bit prescalerprescaler,, internal or external clock,internal or external clock, synchronous and asynchronous operations,synchronous and asynchronous operations, optional external enable bitoptional external enable bit wake up after overflow,wake up after overflow, interrupt on overflow frominterrupt on overflow from 0xffff0xffff --> 0x0000> 0x0000 Timer1Timer1 -- block diagramblock diagram Registers Timer1Registers Timer1 Registers Timer1 (cont.)Registers Timer1 (cont.)