Variable frequency signal generation on Kinetis KL25

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

Variable frequency signal generation on Kinetis KL25

1,096 Views
quevedo
Contributor V

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

Labels (1)
0 Kudos
Reply
4 Replies

698 Views
Monica
Senior Contributor III

Antonio, was this answer helpful? Please let us know how is the project going.

Regards!

0 Kudos
Reply

698 Views
vfilip
NXP Employee
NXP Employee

Hello,

you can use SetPeriodTicks or SelectInputFrequency methods to change the frequency at run-time.

best regards

Vojtech Filip

Processor Expert Support Team


698 Views
quevedo
Contributor V

What component should I use to generate the square wave with the SetPeriodTicks and SelectInputFrequency methods?

0 Kudos
Reply

698 Views
Petr_H
NXP Employee
NXP Employee

You should use the TimerUnit_LDD component.

best regards

Petr Hradsky

Processor Expert Support Team

0 Kudos
Reply