After searching for examples in setting PWM duty cycle in CCS forum, I decide to write this to seek for help.
Currently, I am using PIC18F2331 with 16Mhz crystal.
Can someone advise me on how to write the code for output a PWM on RB0/PWM0 pin with 50% dutycycle with any frequency??
Really appreciate that someone will help me.
Thanks very much.
Guest Guest
2331/2431 EPWM example
Posted: Wed Dec 29, 2004 5:50 am
This setup is a snip from working code. Don't forget to set up the TRIS register for the PWM output you're using.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum