AnsweredAssumed Answered

56F807 PWM problem

Question asked by Feng Wang on Apr 8, 2006
Latest reply on Apr 26, 2006 by Feng Wang
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_PMCTL=0x0000;
   PWMA_PMFCTL=0x0055;        //fault protection
   PWMA_PMDISMAP1=0;
   PWMA_PMDISMAP2=0;
   PWMA_PMOUT=0x0000;
   PWMA_PMCCR=0x8000; 
   PWMA_PMCCR|=0x0010;  //所有pwmvalx通道同时访问 
   PWMA_PMDCFG=0x100E;    //0100 0000 0000 1110   edge aligned
   PWMA_PMDEADTM=5;
    PWMA_PWMVAL0=1000;
   PWMA_PWMVAL1=1000;
   PWMA_PWMVAL2=1000;
   PWMA_PWMVAL3=1000;
   PWMA_PWMVAL4=1000;
   PWMA_PWMVAL5=1000;
   PWMA_PWMCM=4000;           //PWM周期20KHZ
    PWMA_PMCTL|=2;  //enable pwm  
I do these on 56F807EVM.
Help will be really appreciated!

Outcomes