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 */
PIC micro-controller emergency vehicle lights LED simulation Name: Emergency vehicle lights simulation Description: A simulation of the lighting system mounted on Emergency vehicle lights using PIC 12F675 8-pin 8 bit microcontroller 4 Leds are attached to PIC. The PIC cycles thru various lighting patterns based on input from a push button which is read by means of hardware interrupt on GP2. * IDE: MPLAB X v4.2 * Compiler: xc8 Contact me for source code and schematic.