I want to use the capacitive slider to change the duty cycle of a GPIO port, and set the frequency to 1kHz. How do I find out the operations and syntax needed to make this happen? I am using Keil uVision5. Thanks.
Hi Wes Latuch II,
NXP website also have an example for your reference, please download the FRDM-KL25 sample code from this link:
Please refer to FRDM_KL25ZDemo from folder:kl25_sc_rev10\klxx-sc-baremetal\build\iar\FRDM_KL25ZDemo
This is the IAR project, you can copy the source file to the MDK project.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi
See http://www.utasker.com/kinetis/FRDM-KL25Z.html (at the bottom) where there is an application that allows changing the color of an LED (PWM output) by using the TSI slider.
The application can be built with uVision (or KDS, CW, IAR, Atollic, Green Hills, etc.).
Various documents, videos and guides on the documentation page, as well as KL25 simulation for fastest project completion.
Regards
Mark