Hi,
I am working on building a digital clock that uses an STM32 Nucleo and a TPIC6B595 (instead of a 74HC595), with MOSFETs driving each digit.
The display is a Vishay TDCR1050M, common anode, for which I am enclosing its datasheet below:
I am using this particular display because it has a digit for degrees Celsius (L3), a column (L1 + L2) for blinking seconds, plus DP for an active alarm. Also, the display and such setup have fewer pins, as it is optimized for a multiplexed setup.
How do I use this kind of display in Flowcode 11, when the default component for a 7-segment display already contains 74HC595 shift registers for each digit, rather than a single shift register (TPIC6B595) for all the digits, and multiplexing for each digit? I do not know how to use multiplexing - can someone please show me via a Flowcode file how it should be done?
Thank you,
Andreas
1x 74HC595/TPIC6B595 via SPI interface, driving multiplexed 4x 7-segment display
-
andeug
- Posts: 68
- http://meble-kuchenne.info.pl
- Joined: Thu Jan 07, 2021 1:42 pm
- Location: Stockholm (SE)
- Has thanked: 21 times
- Been thanked: 2 times
1x 74HC595/TPIC6B595 via SPI interface, driving multiplexed 4x 7-segment display
FC11 Professional + ARD + ARM license + Matrix TSL E-blocks2 boards
Mikroe Click boards + Click Shield for ST Nucleo-32 + Clicker 4 for ST STM32F407VG
Mikroe Click boards + Click Shield for ST Nucleo-32 + Clicker 4 for ST STM32F407VG
-
mnfisher
- Valued Contributor
- Posts: 1856
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 154 times
- Been thanked: 877 times
Re: 1x 74HC595/TPIC6B595 via SPI interface, driving multiplexed 4x 7-segment display
Multiplexing - you need to 'turn on' the individual segments for some of the time - rapidly switching between the different digits by connecting the common (anode or cathode)
Have a look at https://www.flowcode.co.uk/forums/viewt ... g&start=10
Martin
Have a look at https://www.flowcode.co.uk/forums/viewt ... g&start=10
Martin
-
andeug
- Posts: 68
- Joined: Thu Jan 07, 2021 1:42 pm
- Location: Stockholm (SE)
- Has thanked: 21 times
- Been thanked: 2 times
Re: 1x 74HC595/TPIC6B595 via SPI interface, driving multiplexed 4x 7-segment display
Does anyone know how to create a schematic of the display for my clock project in Flowcode?
There is no component for the common anode display setup I am using.
There is no component for the common anode display setup I am using.
FC11 Professional + ARD + ARM license + Matrix TSL E-blocks2 boards
Mikroe Click boards + Click Shield for ST Nucleo-32 + Clicker 4 for ST STM32F407VG
Mikroe Click boards + Click Shield for ST Nucleo-32 + Clicker 4 for ST STM32F407VG
-
chipfryer27
- Valued Contributor
- Posts: 1933
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 422 times
- Been thanked: 644 times
Re: 1x 74HC595/TPIC6B595 via SPI interface, driving multiplexed 4x 7-segment display
Hi
Not sure I understand your question as you seem to already have a schematic diagram showing all connections.
If you mean do we know offhand the internal components of the display module and how they are connected, probably not. However some manufacturers including Vishay often provide a schematic as part of their datasheet, so check there.
Regards
Not sure I understand your question as you seem to already have a schematic diagram showing all connections.
If you mean do we know offhand the internal components of the display module and how they are connected, probably not. However some manufacturers including Vishay often provide a schematic as part of their datasheet, so check there.
Regards
-
andeug
- Posts: 68
- Joined: Thu Jan 07, 2021 1:42 pm
- Location: Stockholm (SE)
- Has thanked: 21 times
- Been thanked: 2 times
Re: 1x 74HC595/TPIC6B595 via SPI interface, driving multiplexed 4x 7-segment display
My question is how do I work with this display schematic in Flowcode. Unfortunately there is no display component that represents this schematic, and maybe there is a workaround which I can use…
FC11 Professional + ARD + ARM license + Matrix TSL E-blocks2 boards
Mikroe Click boards + Click Shield for ST Nucleo-32 + Clicker 4 for ST STM32F407VG
Mikroe Click boards + Click Shield for ST Nucleo-32 + Clicker 4 for ST STM32F407VG
-
chipfryer27
- Valued Contributor
- Posts: 1933
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 422 times
- Been thanked: 644 times
Re: 1x 74HC595/TPIC6B595 via SPI interface, driving multiplexed 4x 7-segment display
Hi
In other posts you mentioned about the 6595 and I questioned the need for such, as you will only ever be drawing a fraction of it's capability. Any of the existing shift-registers (e.g. 8574) that are supported would be able to handle your requirement with ease.
From the other posts you mention that you intend to use the 1050 due to it's extra "segments" L1 - L3, and I informed that you would either need to allocate two or three extra pins to control these segements independently (only two if L1 and L2 are on at same time), or if pins are unavailable allocate another 8-bit register purely for these segments. I see you have commoned L1 & L2 and are using dedicated pins.
Again in a previous posts I outlined the "rough steps" to displaying https://www.flowcode.co.uk/forums/viewt ... 009#p23009
Although not having your shift-register to test with you could most likely use any of the following to clock out data:-
1) SPI Master components with RCLK connected to CS. Examples of using such in WiKi.
2) I2C with you manually controlling RCLK. Examples of using such in WiKi
3) Simply create your own routine looping to send 8-bits, using Output icons to control pin status and appropriate delays.
Again as per previous post have CA1 - 4 On/Off based on a timer (e.g. 20mS but I have no idea of value to use).
Send your bits for digit-1
Enable CA1
Manually set L1 - L3
Delay (go do something else)
Repeat for digits 2 - 4
Regards
In other posts you mentioned about the 6595 and I questioned the need for such, as you will only ever be drawing a fraction of it's capability. Any of the existing shift-registers (e.g. 8574) that are supported would be able to handle your requirement with ease.
From the other posts you mention that you intend to use the 1050 due to it's extra "segments" L1 - L3, and I informed that you would either need to allocate two or three extra pins to control these segements independently (only two if L1 and L2 are on at same time), or if pins are unavailable allocate another 8-bit register purely for these segments. I see you have commoned L1 & L2 and are using dedicated pins.
Again in a previous posts I outlined the "rough steps" to displaying https://www.flowcode.co.uk/forums/viewt ... 009#p23009
Although not having your shift-register to test with you could most likely use any of the following to clock out data:-
1) SPI Master components with RCLK connected to CS. Examples of using such in WiKi.
2) I2C with you manually controlling RCLK. Examples of using such in WiKi
3) Simply create your own routine looping to send 8-bits, using Output icons to control pin status and appropriate delays.
Again as per previous post have CA1 - 4 On/Off based on a timer (e.g. 20mS but I have no idea of value to use).
Send your bits for digit-1
Enable CA1
Manually set L1 - L3
Delay (go do something else)
Repeat for digits 2 - 4
Regards