IMXRT1064 PWM : How to drive PWM1 channels with different frequencies.

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

IMXRT1064 PWM : How to drive PWM1 channels with different frequencies.

ソリューションへジャンプ
1,476件の閲覧回数
vishaldahiwal
Contributor II

Hello,

I am using I.MXRT1064 prototype board where GPIO_SD_B0_00 (i.e. PWM1, A, 0) is connected to LCD for controlling the brightness and GPIO_SD_B0_01 (i.e. PWM1, B, 0) to control the buzzer. Both are PWM1 channels A and B respectively.

I need to drive these two channel separately with different frequencies. e.g. 2730Hz for Buzzer and 120Hz for LCD.

I can set different duty cycles for each of these channels but could not find any register to assign different frequencies to these channels.

As per peripheral view shown below, I can set only one frequency for both of these channels.

vishaldahiwal_0-1599472673243.png

Is there any way by which I can set different frequencies for Channel A and Channel B?

0 件の賞賛
返信
1 解決策
1,457件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
Under the same submodule, I'm afraid that PWM_A and PWM_B can't output a pair of PWMs whose frequency is different.

TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,433件の閲覧回数
vishaldahiwal
Contributor II

Thanks for the information.

0 件の賞賛
返信
1,458件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
Under the same submodule, I'm afraid that PWM_A and PWM_B can't output a pair of PWMs whose frequency is different.

TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信