PIC16F84A and multiplexed 7-Segment display with shift register – CCS C

7-Segment with multiplexing and shift register

A serial-in parallel-out shift register (74HC164, 74HC595, CD4094…..) can be added to a 7-segment display. The adding of the shift register minimizes the number of pins used by the 7-segment display. This topic shows how to make a 4-digit digital counter with multiplexing and 74HC164 shift register using PIC16F84A and CCS PIC C compiler.

Interfacing PIC16F84A with multiplexed 7-Segment display and shift register circuit:
Example circuit schematic is shown below where a common anode 7-segment display and 74HC164N shift register are used.
Other shift registers such as 74HC595 and CD4094 can be used in this project.
The button connected to RB2 used to increment the displayed number.
PIC16F84A with 7-segment multiplexing and shift register
The PIC16F84A must be supplied with 5V between pins VDD (#14) and VSS (#5).

Interfacing PIC16F84A with multiplexed 7-Segment display and shift register CCS C code:

Digital counter using PIC16F84A microcontroller and CCS C compiler video:
The following video shows this project in hardware circuit.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.