大师:
我是刚学的,请教下在一般的PWM和中断PWM这两个例程中为什么计算频率的公式会不一样。
PWM frequency = Fpwm/((PWMPH,PWMPL) + 1) <Fpwm = Fsys/PWM_CLOCK_DIV>
19. = (16MHz/8)/(0x7CF + 1)
20. = 1KHz (1ms)
21.***********************************************************************/
PWM frequency = Fpwm/((PWMPH,PWMPL) + 1) <Fpwm = Fsys/PWM_CLOCK_DIV>
120. = (22.1184MHz/8)/(0x3FF + 1)
121. = 2.7KHz
|