 
- UID
- 342092
- 性别
- 男
|
我编写的十六位PWM的程序有问题,请帮我看一下。void Motor_init(void){
PWMCTL = 0X90;
PWMPOL = 0X02;
PWMCAE = 0x00;
PWMCLK = 0X00;
PWMPRCLK = 0X33;
PWMSCLB = 0X00;
PWMPER01 = 10000;
PWMDTY01 = 100;
PWMPER67 = 30000;
PWMDTY67 = 4500;
PWME = 0X82;
}
这个程序完成的是pwm的通道01,67通道分别产生10ms,和3.3ms周期的脉冲,但是我从波形看不对,请帮我看看,我用的是双16位! |
|