Controlling LED intensity

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Controlling LED intensity

777 次查看
Ayaz
Contributor IV

Hello,

I would like to use pwm signle (OPWMB mode) to control a blue, red, and green LED color at a frequency of 1.5Hz via emios_pwm.
Without adjusting the global prescaler, how can I scale the emios_mcl to produce 1.5 Hz?
What options are there?
What is the lowest emios_mcl frequency that we can achieve both with and without modifying the global prescaler's value?

0 项奖励
回复
1 回复

765 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

For example, the eMIOSn_Chx's clock source is 48MHz and with default prescaler(1).

The timer width is 16 bits which means the max counter value is 65535.

The the lowest frequency is 48MHz / (65535 * 1S) ≈ 732.433Hz.

0 项奖励
回复