You are on page 1of 1

void main()

{
T2CON = 32114;
TMR2=0;
PR=65.535;
TRISDBIT.TRISD0=0;
OC1CON=6
int D=1
while(true)
{
if (D==1)
{
OC1RS=65.535; 100%
D=2;
}
if(D==2)
{
OC1RS=32.767; 50%
D=1;
}
}

You might also like