PIC12F675 Timer0 As Counter

Category: PIC12F675

Designer: RANA MUHAMMAD ADNAN KHALIL

Notes

This circuit is simulated in Proteus 7.10, while code is written in MPLAB X IDE using XC8 compiler. This program is for very beginners. 1. Timer 0 is used as an 8-bit counter in interrupt configuration. 2. The input pulse for counting is given at pin 5 (GP2) of PIC12F675. 3. At each interrupt or each input pulse GP5 pin is toggled (LED blinking at this pin) in code. 4. The input frequency is 10Hz and output frequency is 5Hz. 5. You can download these files for further amendment in this project. Application: 1. This circuit can be used as frequency divider. 2. This circuit can be used to count the digital pulses. Note: More advance circuit and simulation of frequency divider will come soon.

Back to all circuits