Variable frequency signal generation on Kinetis KL25

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Variable frequency signal generation on Kinetis KL25

1,131 次查看
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

标签 (1)
0 项奖励
回复
4 回复数

733 次查看
Monica
Senior Contributor III

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

Regards!

0 项奖励
回复

733 次查看
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


733 次查看
quevedo
Contributor V

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

0 项奖励
回复

733 次查看
Petr_H
NXP Employee
NXP Employee

You should use the TimerUnit_LDD component.

best regards

Petr Hradsky

Processor Expert Support Team

0 项奖励
回复