Author Topic: Multiplexed 7-segment display voltage spikes  (Read 877 times)

0 Members and 2 Guests are viewing this topic.

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1364
  • Country: us
Multiplexed 7-segment display voltage spikes
« on: February 06, 2026, 02:06:00 am »
I have two 4-digit common cathode 7-segment displays connected to an old Microchip PIC.  Since I couldn't measure LED current with a multimeter because of the multiplex speed, I hooked up the scope only to be surprised by these voltage spikes.  Is this typical for switching LEDs so fast?  Is there any concern?

1st image: between the 220 ohm resistor and the LED segment
2nd image: same, but zoomed in
3rd image: between the PIC pin and the 220 ohm resistor
4th image: same, but zoomed in
 

Online uer166

  • Super Contributor
  • ***
  • Posts: 1265
  • Country: us
Re: Multiplexed 7-segment display voltage spikes
« Reply #1 on: February 06, 2026, 02:11:05 am »
There's no spike: it looks like you enable the anode first, then after 1us you enable the cathode. During that time the pin is at 5V since the cathode isn't sinking current yet.
 
The following users thanked this post: MikeK

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1364
  • Country: us
Re: Multiplexed 7-segment display voltage spikes
« Reply #2 on: February 06, 2026, 02:15:18 am »
Each update is:

1. Turn off all cathodes (set high).
2. Set new segment (anode).
3. Turn on the cathode for the new segment.
« Last Edit: February 06, 2026, 02:26:39 am by MikeK »
 

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1364
  • Country: us
Re: Multiplexed 7-segment display voltage spikes
« Reply #3 on: February 06, 2026, 02:28:05 am »
Okay, I have to rethink and try other code.  That was a good (and fast) catch.
 

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1364
  • Country: us
Re: Multiplexed 7-segment display voltage spikes
« Reply #4 on: February 06, 2026, 02:42:10 am »
Yeah, that was it.  Thanks.  I guess it's not a big deal either way, but I changed it to turn off the anode before setting the cathode.
 

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 9057
  • Country: ca
Re: Multiplexed 7-segment display voltage spikes
« Reply #5 on: February 06, 2026, 03:56:44 am »
It's good you checked this because the overlap can add extra noise to the system power as well you get can visible ghosting or smearing between the digits.
 
It's because the segment and digit drivers take time to turn off. After doing that, you need to have a delay time of a few usec before turning them back on.
Switching speed between the seg/digit drivers varies depending on the circuit design but leave a little extra time.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf