Generate a tone

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,758件の閲覧回数
Nadia
Contributor III

Good afternoon,

I am quite new in this development environment, I work with a test board LPC54628.

 

My goal is to be able to generate a tone on a certain frequency, and I can't find the way to do it, I've read some comments that talk about the use of FMT, but my board doesn't have that.

If someone could help me I would appreciate it, I can't find any library I could use in this development environment either.

Thank you very much, sorry for the inconvenience

1 解決策
1,687件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

 

To generate a signal in such frequency I suggest you to use the GPIO and a timer. You configure a timer that interrupts the MCU then toggle the GPIO each 100ms in order to generate the 5Hz signal.

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.

Best regards,

Omar

元の投稿で解決策を見る

3 返答(返信)
1,726件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

 

I suggest you use the SCTimer, this module is similar to the FTM. You can find information about this module on the LPC546 user manual. Also, you can find examples at the SDK.

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.

Best regards,

Omar

1,723件の閲覧回数
Nadia
Contributor III

Hello Omar, thank you very much for your answer, now I have another problem, I am not able to generate a signal at 5 Hz, just let me generate a signal from 1000 Hz upwards, would you know how to generate a signal at 5 Hz?

0 件の賞賛
返信
1,688件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

 

To generate a signal in such frequency I suggest you to use the GPIO and a timer. You configure a timer that interrupts the MCU then toggle the GPIO each 100ms in order to generate the 5Hz signal.

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.

Best regards,

Omar