Hello I want to generate a PWM for my application. I am using PIC16F1939, MicroC and PICkit 2 to burn the program.
Here's my code-
void interrupt()
{
if (TMR2IF_bit == 1)
{
CCPR1L = 100;
TMR2IF_bit = 0;
}
}
void main()
{
C1ON_bit = 0;
C2ON_bit = 0; //...