Page 1 of 1

Enhanced PWM

Posted: Mon Nov 07, 2011 8:48 pm
by Jan Lichtenbelt
Please find a very simple example program with enhanced PWM.
Used is a 16F1825 at 19.6...MHz.

The mode is half bridge drive with 2 outputs P2A and P2B, see picture below
half bridge drive.jpg
half bridge drive.jpg (19.06 KiB) Viewed 2882 times
The 2 complementary outputs can be used for half bridge (motor) drive.

Driver rise time can be faster than falling time which will result in short current between V+ and ground. To prevent this the rise pulse must be delayed, see picture below
half bridge delay time.jpg
half bridge delay time.jpg (14.37 KiB) Viewed 2882 times
The practice oscilloscope pictures, see next page.

Refrences:
Pictures from: http://www.microchip.com/stellent/idcpl ... e=en546902

Re: Enhanced PWM

Posted: Mon Nov 07, 2011 8:51 pm
by Jan Lichtenbelt
Please find some oscilloscope pictures:
1. Both PWM's above each other
1. Both PWM's above each other
P2A and P2B above each other.jpg (75.08 KiB) Viewed 2881 times
2. Both PWM's at the same level
2. Both PWM's at the same level
P2A and P2B at same level.jpg (75.97 KiB) Viewed 2881 times