2x 74HC595 via SPI interface, driving 8x 7-segment display

Use this section to discuss your embedded Flowcode projects.
Post Reply
andeug
Posts: 54
http://meble-kuchenne.info.pl
Joined: Thu Jan 07, 2021 1:42 pm
Location: Stockholm (SE)
Has thanked: 16 times
Been thanked: 2 times

Flowcode v11 2x 74HC595 via SPI interface, driving 8x 7-segment display

Post by andeug »

Hi,


I am looking to replicate the design below on 8x 7-segment displays, and for this purpose, I will need 2x 74HC595 via the SPI interface.
4-Digit-7-Segment-LED-Display-Module-Circuit.png
4-Digit-7-Segment-LED-Display-Module-Circuit.png (35.4 KiB) Viewed 47 times
Can someone please let me know, through an example, how I can multiplex those 8 digits on an Arduino Nano 328?
Is it possible to do it only via SPI, or will I need a common anode/cathode for each digit?


Thank you,
Andreas
FC11 Professional + ARD + ARM license + Matrix TSL E-blocks2 boards
Mikroe Click boards + Click Shield for ST Nucleo-32 + Clicker 4 for ST STM32F407VG

mnfisher
Valued Contributor
Posts: 1831
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 153 times
Been thanked: 867 times

Re: 2x 74HC595 via SPI interface, driving 8x 7-segment display

Post by mnfisher »

The 74HC595 devices are daisy-chained - so writing values will 'push' the data to the second chip... So you just need to write sufficient data for both devices before latching the data. I haven't used this - but the MAX7219 works in a very similar manner.
Martin

Post Reply