Page 1 of 1

PWM generation

Unread postPosted: Tue Jan 09, 2018 7:12 pm
by Liore
Hello,
Where can I see an example of how to generate a 300Hz PWM with the USBIO
python or C is the best.

Thanks

Re: PWM generation

Unread postPosted: Wed Jan 10, 2018 9:50 am
by odroid
Try to modify this example.
https://github.com/hardkernel/Odroid-US ... sfr_pwm.py

You have to read PIC18F45K50 datasheet to find a proper timer configuration for 300Hz.
http://www.microchip.com/wwwproducts/en/en558861