谁能帮忙解释一下这段程序了!做什么用的啊?
while (update ==1)
{
for(DutyFine =1; DutyFine <256 ;DutyFine ++)
{
// Example, write to the HRPWM extension of CMPA
PWM_setCmpAHr(myPwm1, DutyFine << 8);
PWM_setCmpAHr(myPwm2, DutyFine << 8);
// Example, 16-bit write to CMPAHR
PWM_setCmpAHr(myPwm3, DutyFine << 8);
PWM_setCmpAHr(myPwm4, DutyFine << 8);
for (i=0;i<10000;i++){ // Dummy delay between MEP changes
}
} |