|
for(;;)
{
pwmout++;
//
do // //
{ // //
CLRWDT(); // //
} // //
while(TMR2IF==0); // //
// // //
PIR1 = 0; //------------------------------------------//
//
CCPR1L= (pwmout>>1) & 0x7F;
CCP1CON = 0xCF;
//
if ( pwmout & 0x01)
CCP1X = 1;
}
E-mail: info@telesys.ru