Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
PR2 = 255; //Timer2 Period Register - Period of PWM (MAX 255)
CCP1CON = 0b00111100; //<5:4> DC LSBs, <3:2> PWM Mode
T2CON = 0b00000100; //<2> enables Timer2, <1:0> prescaler = 1
CCPR1L = sinedc[dctrans];