Howto count clock ticks on a MC13213 SRB or on a NCB board

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

Howto count clock ticks on a MC13213 SRB or on a NCB board

1,363件の閲覧回数
Topoestivo
Contributor I
Hi,
I'm a newbie about MC13213...

I've a question for you:

how can I read the value of HCS08 mcu clock ticks since it started?

I thought it was possible tu use the clock() function in time.h library, but it returns a value of 0...

I'm writing C code on CodeWarrior, is it possible to use this function clock() or some one other?

Bye Bye, Andrea.

P.S. sorry for my crap english.
ラベル(1)
0 件の賞賛
返信
1 返信

601件の閲覧回数
peg
Senior Contributor IV
Hi,
 
The S08 does not have any hardware to support this directly.
So you would need an OS that does or do it yourself.
You could extend the timer register yourself by using the overflow (bit or interrupt)
Or you could use the register specified in your Codewarrior thread and extend that yourself.
 
0 件の賞賛
返信