Question: Familarise yourself with 74HC595 shift register and devise a method of using this device to implement an 8-bit output port using only 3 GPIO pins.

Familarise yourself with 74HC595 shift register and devise a method of using this device to implement an 8-bit output port using only 3 GPIO pins. The port created should be used to drive 8 individual LEDs to produce a bar graph display. Draw a suitable schematic diagram for the circuit and be prepared to construct it during the lab. Note that you are provided with a suitable resistor array to reduce the wiring complexity of the circuit Write the routines required to drive the bar graph. They should have the following signature Initialise the bargraph system void initialiseBarGraph(void); Displays a value on a 8-LED bar graph * eparam level the level to display i.e. number of active LEDs (e.3) void barGraph(int level); Write a suitable mainline to demonstrate the operation of the bar-graph display eg.a simple light chaser The code writen should have appropriate internal dooumentation Circuit Diagram
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
