Kobi Kricheli

Delay function and more

Discussion created by Kobi Kricheli on Mar 15, 2006
Latest reply on Mar 16, 2006 by bigmac
Hello ppl,

I have HC12 ucontroller on a MC68HC912 board and I need a little help here.

1st, i'd like to know what is the CPU speed, as 8MHz nor 16MHz is not what i'm getting from my tests.

2nd, how many cycles is one for (;:smileywink: loop, or how much time will take one loop on my controller.

3rd and last, does anyone have a code for a delay function that will recieve the time and will create a useconds accuracy (1us, 4us, etc.) delay?
I preffer using the timer.