GPIO PWM low voltage not at ground

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPIO PWM low voltage not at ground

Jump to solution
1,374 Views
fredericksoo
Contributor II

hello,

I'm using PWM to drive a circuit off of PTD16 and am observing a low voltage of 440mV, instead of 0V (GND) as I might expect.  The high voltage is 5V.  This happens for 0% through 100% duty cycle.

I am using pin PTD16 (connected to the GREEN_LED feature on the S32K144 development board).  It doesn't seem to matter if I put a pull down resistor (internal or external) in place.  There is no documentation on what the GPIO low voltage out should be.  

Is this known behavior?  If so is there a way to reference to GND instead of 440mV?  Does it depend on which pin or drive strength is being used? My application needs PWM that can go from 0V to 5V.

best,

Fred

0 Kudos
1 Solution
1,195 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

This is due to the LED.

Reroute the PWM channel to another pin.

Regards,

Daniel

View solution in original post

2 Replies
1,195 Views
fredericksoo
Contributor II

Yes, that worked.  Forgot that when pulling low, LED is still connected and causing current to flow.  The circuit is Vdd->LED->current-limiting resistor (Rc)->pin->R->GND so a voltage divider is formed between Rc and R.  

With LED forward voltage of ~3V, Rc of 220ohms and Vdd = 5V, if I see 440mV at my measurement point, R ~ 64ohms.  This is close to what I actually measure.  Will use this as the value in my circuit.

Thanks! 

0 Kudos
1,196 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

This is due to the LED.

Reroute the PWM channel to another pin.

Regards,

Daniel