I'm using a pic to drive a load using PWM that is controlled by a pot.
- When load is an LED + res it works fine. As I turn the pot the led goes from off to full in a smooth continuous way.
To drive larger loads I have two max5062A's driving 4 power mosfets in an hbridge configuration.
- The Hbridge seems to work fine. ATM I have 3 of the mosfets hardwired and one in control. (basically HL and LR are off, LL is always on, and HR is under control(call it main mosfet)). That is, if I hook the same LED up to the output and turn on and off the "main mosfet" then the led turns on and off.
When I drive the main mosfet directly(through the MAX5062 of course) using the PWM output I get strange results as it sorta works(but at a much lower rate as I can see it blink at times and seems somewhat random) and as I turn the pot it gets brighter then darker.
So combining the two things that seem to work individually are not working together. Now the PWM output is 0 and 5V and the input to the hbridge needs to be Vdd/2 which min is 4V if Vdd is set to 8V(absolute min voltage to power) and max is about 12V Vdd.
So I'm not sure if its cause I'm driving the MAX5062 with such a low voltage or what? I figure that if I set the voltage of the MAX at 8V it gives me about 1V but its best I can do without some level translation.
I'm mainly wondering about two things: Can the results that I'm seeing be due to the voltage issue and is there an easy way to translate from the 5V to the rail of the other supply? (The pic is suppose to have OC outputs configurable but I'm still looking into that.) I'm looking for something that I can rig up quickly for testing.
Could I, for example, raise the ground of the pic by a volt or 2 to shift it up above ground using some diodes so that it gives me a little more headroom? (Or would that still not be enough)?
e.g., if Vdd is 8V and Vcc(pic voltage) is 5V but ground is 2V then it gives me 1.5V for off and 6.5V which is a bit better? (assuming ~two diodes)
Thanks, Jon