Hello,
I would like to generate a square wave using a FRDM board (Kinetis KL25). However, the LDD timing components only allow me to generate fixed frequencies, i.e., I have to define a fixed frequency in the component properties. There are no options for list of values or frequency interval. Is there any working component for KL25 that allows me to generate a square wave where I can change its frequency with a function?
Thanks in advance
Antonio, was this answer helpful? Please let us know how is the project going.
Regards!
Hello,
you can use SetPeriodTicks or SelectInputFrequency methods to change the frequency at run-time.
best regards
Vojtech Filip
Processor Expert Support Team
What component should I use to generate the square wave with the SetPeriodTicks and SelectInputFrequency methods?
You should use the TimerUnit_LDD component.
best regards
Petr Hradsky
Processor Expert Support Team