RT10XX low frequency PWM with external clock #51006
-
Hello, Regarding NXP forum information [1], the external PWM clock can reach the half of IPG clock which is 75MHz which would be fair enough for me. To use it there is a necessity to configure an XBAR peripheral that allows feeding the PWM clock from that but unfortunately, there is no example or information on how to use it properly. [1] I would like to apologize for the delay. We are overloaded on the request these days. I really really appreciate that you were so patient. I've created a topic in the Zephyr discord NXP channel but I was told to create a new discussion here so I would be appreciated for any hints. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @bbilas , The details below are from the included readme. I hope this helps you configure the hardware for your use-case. Best regards OverviewThis example demonstrates driving a FlexPWM output at a very low frequency of 10Hz, Toolchain supported
Hardware requirements
Board settings
Prepare the Demo
|
Beta Was this translation helpful? Give feedback.
-
I've commented too many lines that's why it didn't work well. Sorry for the noise! |
Beta Was this translation helpful? Give feedback.
-
FYI: I have successfully integrated that with the existing PWM driver in my downstream project where a 1-1kHz PWM frequencies range was required. Many thanks, @DerekSnell. |
Beta Was this translation helpful? Give feedback.
Hi @bbilas ,
Attached is a simple example project to help you evkbmimxrt1060_qtmr_xbar_flexpwm_v2.zip. As discussed, this is an MCUXpresso SDK-based project, using MCUXpresso IDE.
The details below are from the included readme. I hope this helps you configure the hardware for your use-case. Best regards
Overview
This example demonstrates driving a FlexPWM output at a very low frequency of 10Hz,
using the EXT_CLK source driven by a QTMR PWM output, connected through the XBAR.
Toolchain supported
Hardware requirements
Board settings
Remove J4, disconnects JTAG_T…