Variable frequency signal generation on Kinetis KL25

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Variable frequency signal generation on Kinetis KL25

1,128件の閲覧回数
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 返答(返信)

730件の閲覧回数
Monica
Senior Contributor III

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

Regards!

0 件の賞賛
返信

730件の閲覧回数
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


730件の閲覧回数
quevedo
Contributor V

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

0 件の賞賛
返信

730件の閲覧回数
Petr_H
NXP Employee
NXP Employee

You should use the TimerUnit_LDD component.

best regards

Petr Hradsky

Processor Expert Support Team

0 件の賞賛
返信