delay functions

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

delay functions

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

1,029件の閲覧回数
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 件の賞賛
返信

1,029件の閲覧回数
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 件の賞賛
返信