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
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
The practice oscilloscope pictures, see next page.
Refrences:
Pictures from: http://www.microchip.com/stellent/idcpl ... e=en546902
Enhanced PWM
Moderator: Benj
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
Re: Enhanced PWM
Please find some oscilloscope pictures:
- Attachments
-
- 3. The sum of both PWM, which clearly shows a dead time of 0.8 usec, as programmed in the Flowcode
- 0.8 usec PWM delay.jpg (78.52 KiB) Viewed 2878 times