Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Timer 0 can be used for counting. It can count from 0 to 255 (8 bits) and it has an input pin for external pulses. TMR0 can also count using Fosc/4 pulses (the main PIC oscillator divided by 4). The inputs can be divided by a prescaler (shared with Watchdog Timer, but you can use the prescaler for TMR0 or WDT only once at time).
Timer 1 can also be used for counting. It can count from 0 to 65535 (16 bits) and it has an input pin for external pulses or to implement an additional low frequency oscillator (up to 200kHz xtal). The Fosc/4 option is available too. You can divide these signals by an prescaler (not the same of TMR0). TMR1 is also used in the Capture and Compare modules.
Timer 2 (8 bits) is less versatile because it does not have an external input, but only the Fosc/4 option. It has a prescaler for the counting pulses and is used mainly for the PWM module as a time base generator.
You can set interrupts when the timers get overflow and use them simultaneously (notice that using CCP modules, you won´t have them available for other purposes).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.