EEVblog Electronics Community Forum

Electronics => Projects, Designs, and Technical Stuff => Topic started by: Electr0nicus on September 04, 2013, 10:36:12 am

Title: Problem with high side switching p- channel MOSFET for a multiplexed LED Display
Post by: Electr0nicus on September 04, 2013, 10:36:12 am
For a current project I've designed a multiplexed LED Display Board. The prototype you can see on the picture below.  :)
(http://farm6.staticflickr.com/5514/9672186202_57469404d3_c.jpg)

Everything works just fine. But there is a thing that bothers me and that's the switch off of the highside P-Channel Mosfets. They switch on sharp an clean, but switch off really weird. Although the Gate voltage is the same as the voltage at the source of the MOSFET, it doesn't switch off as expected. The voltage on the Drain of the MOSFET pretty much declines like a capacitor beeing discharged.  :wtf:

Here is the scope- image (note that the waveform is -2.12V offset and display is blank)

(http://farm4.staticflickr.com/3689/9668955569_1cf8b7cdbf_o.png)

The gate waveform is really clean (note that the waveform is -2.12V offset and display is blank):

(http://farm8.staticflickr.com/7364/9668955479_cc0fefd0c8_o.png)

Now if I switch on all segments on the display (display test) and then measure the drain of the MOSFET the waveform looks even ugglier.

(http://farm3.staticflickr.com/2838/9672261974_89501ae565_o.png)

Short description of my hardware Setup:



Has anyone a idea what causes that weird behavior of the MOSFETs maybe the STP16CP05 devices play some role?
Title: Re: Problem with high side switching p- channel MOSFET for a multiplexed LED Display
Post by: KJDS on September 04, 2013, 12:07:25 pm
Can you share the schematic of the LED driver?
Title: Re: Problem with high side switching p- channel MOSFET for a multiplexed LED Display
Post by: Electr0nicus on September 04, 2013, 12:59:59 pm
Can you share the schematic of the LED driver?

Sure I can (click on image to enlarge):

(http://farm4.staticflickr.com/3782/9669574667_d7956f6141_t.jpg) (http://farm4.staticflickr.com/3782/9669574667_dcdebb6454_k.jpg)
Note that the RCK pin of the 74HC595 shift registers is connected to GND in the schematic, which is of course wrong. I have connected it to SCK on the prototype board, and was too lazy to update the schematic.

The LED constant current drivers (STP16CP05) and the shift registers to select the active digit (74HC595) are all daisy chained onto one SPI bus. The display then is driven as follows:
Title: Re: Problem with high side switching p- channel MOSFET for a multiplexed LED Display
Post by: komet on September 04, 2013, 01:06:44 pm
As you mention everything actually works fine, I think you're measuring bullshit caused by everything going high-impedance. What happens if you connect a resistor (e.g. 100k) between the anode and ground?
Title: Re: Problem with high side switching p- channel MOSFET for a multiplexed LED Display
Post by: Electr0nicus on September 04, 2013, 01:28:06 pm
You have nailed it!

That was exactly the case! I added a 10k Resistor directly from the drain to GND, and the waveform looks as expected. Nevertheless I have some EMI issues. Pretty much because of the high impulse currents in a multiplexed LED display design. But I think with a decoupling cap near every MOSFET, I should get that problem under control. Because when you look on the oscilloscope image now, you can see spikes everytime a new display- digit is switched on and the other one switched off.

(http://farm6.staticflickr.com/5495/9669896115_3f85b44345_o.png)

But anyway thanks a lot komet  :-+ and greetings to my neighboring county! Sometimes it only needs someone unprejudiced to solve a problem  ;D
Title: Re: Problem with high side switching p- channel MOSFET for a multiplexed LED Display
Post by: free_electron on September 04, 2013, 03:21:08 pm
your power rail cant handle the high pulse currents. local capacitor per display driver (both the top and bottom drivers)
i'd throw in a bunch of ceramic 10uf caps. they have very low esr and will feed you all the current you need ( 100nf won;t cope it as those current spikes are large in amuxed display... they'd be empty on no time)
Title: Re: Problem with high side switching p- channel MOSFET for a multiplexed LED Display
Post by: Electr0nicus on September 04, 2013, 04:07:16 pm
your power rail cant handle the high pulse currents. local capacitor per display driver (both the top and bottom drivers)
i'd throw in a bunch of ceramic 10uf caps. they have very low esr and will feed you all the current you need ( 100nf won;t cope it as those current spikes are large in amuxed display... they'd be empty on no time)

Do you mean the STP16CP05s with "bottom drivers"? If so, they don't need extra decoupling caps. Because they have only have a digital supply. So I only have to put a 10µF ceramics close to the sources of the highside switching P-channel MOSFETs.
Title: Re: Problem with high side switching p- channel MOSFET for a multiplexed LED Display
Post by: Niklas on September 06, 2013, 06:37:15 am
Where have you connected the probe's grounding clip? High frequency signal content and high current can cause false readings if you have enough inductance and resistance between the local GND and the clip's GND. The local GND is the one at the circuit you measure on.