Hi, i need to produce a simple PWM signal using FTM and I need to glow the RGB LED when the PWM is high and turn the LED off when it is low. so, I generated the PWM but I am unable to sinc t with the RGB LED. can you please help me.I need to do this as soon as possible and I am using freedom k22 board. Thanks in advance
Hi sriram marisetty ,
Please refer to the FRDM-K22 sdk code, the official FTM code already connect the FTM PWM pin to the RGB LED.
You can download the code from this link:
https://mcuxpresso.nxp.com/en/select
Then refer to this code:
SDK_2.5.0_FRDM-K22F\boards\frdmk22f\driver_examples\ftm\simple_pwm\iar
The PWM pin is PTA1, it is FTM0_CH6, it connect to RED_LED.
Wish it helps you!
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------