Controlling LED intensity

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Controlling LED intensity

184件の閲覧回数
Ayaz
Contributor III

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 返信

172件の閲覧回数
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 件の賞賛
返信