// PWM Damped Oscillation, #21


void main()

{

CMCON0 = 0x07; // Shut off comp's

TRISIO = 0b11111011; // GPIO2 -> output (PWM pin CCP1)

PWM1_Init(20000);

PWM1_Set_Duty(50); // 50 /255 -> 1/5

PWM1_Start();

while(1)

{

}

}