0
点赞
收藏
分享

微信扫一扫

高通平台PWM calculation

残北 2022-12-07 阅读 95


PWM duty cycle =A/B, where:
 A = PWM value in decimal
 B = 2^ (PWM_SIZE)
 PWM frequency = (master clock frequency )/ (B*C*D) , where:
 Master clock frequency = 1.024 kHz, 32.764 kHz, 19.2 MHz, or off
 C = Divide ratio (1, 3, 5, or 6)
 D = 2M (M = 0 through 7)
 When PWM APIs are used, the PWM driver calculates and configures the
master clock, divides ratio, M, and resolution to best fit the requested
period.
 Use PWM frequency > 100 Hz to avoid flickering.
 Use a slow PWM frequency to see blinking.

举报

相关推荐

0 条评论