This PIC Microcontroller project shows an Up Counter using Timer0. To simulate this circuit, initially activate Mixed Mode simulator from the Schematic Editor window. Simulation can be performed by selecting Run Transient analysis (Oscillograph) from Simulation menu.
The circuit contains a PIC Microcontroller, Binary to 7- Segment Decoder/Driver and
7-Segment LED Display.
In this circuit PortB is set as Output Port. Counter mode is selected by setting the TOCS bit in the Option Register. Timer0 counts according to the Prescaler bits (PS2, PS1, and PS0) set in the Option Register