This project shows the application of PIC microcontroller as an up/down counter, designed to count from 0 to FF and vice versa. To simulate circuit in this project, initially activate Mixed Mode simulator from the Schematic Editor window. Simulation can be performed by selecting Run Transient analysis from Simulation menu.
This circuit uses a PIC Microcontroller, Binary to Seven Segment Decoder/Driver, Seven Segment LED Display. In this circuit, Port A of PIC Microcontroller is assigned as the Input Port while Port B is assigned as Output Port. Port A is used for selecting whether the counter works as Up Counter or as Down Counter. When the LSB of Port A is high then the circuit works as an Up Counter else as Down Counter. Binary to Seven Segment Decoder decodes the data from Port B to 7-segment format, which are displayed in 7-segment displays. The count sequence appears at the LED display in 7-segment form.