KEA128 Single-shot timer example

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

KEA128 Single-shot timer example

1,765 次查看
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,547 次查看
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,545 次查看
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 项奖励
回复