0-255 decimal 8-bit binary counter LED array with 74HC595 Serial Shift Register with PIC 12F675
8 LEDS are attached to pins QA-QH of 74HC595. Data in the form of an 8-bit binary counter from 0 to 256 is outputted to shift register and display on array and then looped. thus implementing an 8-bit binary counter with just 3 outputs of PIC.
A push button is attached to GPIO 3 pin which is held high by a pull up resistor , when button is pressed it goes logic low. This button is checked by sw on startup if activated it switches are LEDS on constantly so unit can be used as a lamp.
/* * Function: PIC12F675 8-bit binary counter, LED Array and shift register * Created on 31 August 2018, 19:34 * IDE: MPLAB X v5.05 * Compiler: xc8 v2.0 */