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.
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.
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.
Retrieving data ...