PWM generation

Moderators: odroid, mdrjr

PWM generation

Unread postby Liore » Tue Jan 09, 2018 7:12 pm

Hello,
Where can I see an example of how to generate a 300Hz PWM with the USBIO
python or C is the best.

Thanks
Liore
 
Posts: 7
Joined: Mon May 29, 2017 1:06 am
languages_spoken: english
ODROIDs: XU4

Re: PWM generation

Unread postby odroid » Wed Jan 10, 2018 9:50 am

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
User avatar
odroid
Site Admin
 
Posts: 29067
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to USB IO

Who is online

Users browsing this forum: No registered users and 1 guest