KEA128 Single-shot timer example

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

KEA128 Single-shot timer example

1,762件の閲覧回数
ebafco
Contributor I

Hi,

I'm trying to create a single-shot timer using the flex-timer module and overflow interrupt. Does anyone know if there is an example somewhere that demonstrates this?

/ Erik

ラベル(1)
タグ(2)
0 件の賞賛
返信
2 返答(返信)

1,544件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Please refer the Lab2_Blinky_FTM_KEA128 in FRDM-KEA Quick start package(REV 8).

(C:\Quick Start Package v8\Code Project Examples and Sample Drivers (Evaluation Grade Only)\FRDM-KEAZ128\Code Project Examples for FRDM-KEAZ128\Code Project Examples for FRDM-KEAZ128\Lab2_Blinky_FTM_KEA128)

But you may need to stop the counter in FTM interrupt.

Lab2_Blinky_FTM_KEA128.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,542件の閲覧回数
mjbcswitzerland
Specialist V

Hi Erik

You can find FlexTimer and PIT single-shot references in the Open Source uTasker project for KEA128 (including timer simulation in Visual Studio).
http://www.utasker.com/docs/uTasker/uTaskerHWTimers.PDF

Attached are two binaries for FRDM and TRK board that show a single shot timer interrupt (FlexTimer) toggling an LED (red on FRDM, second blue one on TRK). Each time it fires it increases the time by 100us and repeats so that the toggling gets slower the longer it runs for.

There is a command line interface on the OpenSDA VCOM at 115200 Baud - in the I/O menu there are commands to read memory so you can view the timer setup if required.

Regards

Mark

pastedImage_1.png

Kinetis: http://www.utasker.com/kinetis.html
Kinetis KEA128:
- http://www.utasker.com/kinetis/TRK-KEA128.html
- http://www.utasker.com/kinetis/FRDM-KEAZ128Q80.html
S32 Design Studio: http://www.utasker.com/kinetis/compilers.html#S32

Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis
Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M

For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : http://www.utasker.com/support.html

0 件の賞賛
返信