Search found 1 match

by Raza55
Tue Feb 03, 2015 10:48 am
Forum: Projects
Topic: PIC18F452 and L298
Replies: 6
Views: 8614

Re: PIC18F452 and L298

That's correct. Making sure they add to 50 keeps the proper ratio for setting the PWM frequency. If you look closer in the code, the speed_pos and speed_neg values are put into delay functions. This is what creates the high spots and low spots and for how long in the PWM signal.
____________
Usman

Go to advanced search