delay functions

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

delay functions

937 Views
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

Labels (1)
0 Kudos
2 Replies

273 Views
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 Kudos

273 Views
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 Kudos