delay functions

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

delay functions

1,638 次查看
burusj
Contributor I

hi,

 

are there any ready made libraries that contains delay or time functions? I am using HCS08Q family. I need functions that cause delay e.g 1s.

 

Thanks

Damian

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

974 次查看
bigmac
Specialist III

Hello Damian, and welcome to the forum.

 

A number of different delay functions for various length delays were previously posted https://community.freescale.com/message/53264#53264.  The final one may be of most interest for a 1 second delay, and assumes that a periodic interrupt occurs for maybe TPM overflow, TPM channel output compare, or RTC module.  Perhaps a periodic interrupt every 1 ms or 10 ms could be utilised.

 

Regards,

Mac

 

0 项奖励
回复

974 次查看
CrasyCat
Specialist III

Hello

 

Did you consider creating a project for HCS08Q microcontroller and enabling Processor expert.

Then you can add a TimerInt Bean and set the period to 1 s.

 

You can then look at the code generated by Processor Expert.

 

CrasyCat

0 项奖励
回复