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

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

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

跳至解决方案
1,474 次查看
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,455 次查看
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,431 次查看
vishaldahiwal
Contributor II

Thanks for the information.

0 项奖励
回复
1,456 次查看
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 项奖励
回复