Category: Electronics
Posted by singularengineer Posted on January 19, 2015 5 Comments on dsPIC/PIC24 PWM (using XC16 and MPLAB X)
Posted in Electronics
Tagged dsPIC PWM, dsPIC tutorial, dspic/pic24 timer tutorial, outputcompare, outputcompare.h
Pulse Width Modulation (PWM) in dsPIC/PIC24 works from output compare section (OC). OC is simply a comparator. One input is from a timer and another from OC register where we set the value. The timer is used to set the…