AnsweredAssumed Answered

56F807 PWM problem

Question asked by Feng Wang on Apr 8, 2006
Latest reply on Jun 16, 2020 by ebiz_ws_prod
I need software control pwm output, and each channel works indepently. PWM frequence is 20k. But the pwmval couldn't be loaded, the pwm outputs always 3.3 V no matter how I change pwmval. The initial code as the following:
   PWMA_PMFCTL=0x0055;        //fault protection
   PWMA_PMCCR|=0x0010;  //所有pwmvalx通道同时访问 
   PWMA_PMDCFG=0x100E;    //0100 0000 0000 1110   edge aligned
   PWMA_PWMCM=4000;           //PWM周期20KHZ
    PWMA_PMCTL|=2;  //enable pwm  
I do these on 56F807EVM.
Help will be really appreciated!