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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
937 Views
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 Kudos
1 Solution
918 Views
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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
894 Views
vishaldahiwal
Contributor II

Thanks for the information.

0 Kudos
919 Views
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 Kudos