Timers of s12xdp512

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

Timers of s12xdp512

1,478件の閲覧回数
vinay
Contributor I
hi,
 
i am using a startes kit of s12xdp512. i want to know that when i am using a free running counter as measuring my incoming pulses after first pulse measuring the i reset TCNT, but it cant running again after resetting.plz help mi in this regurd
thanks
vinay.
ラベル(1)
0 件の賞賛
返信
1 返信

722件の閲覧回数
Lundin
Senior Contributor IV
You can only write to TCNT in special modes, and only for debug purposes.

That's not how it is intended to work for functional purposes though, and it will not work in normal single chip mode. Instead, you set up one of the timer registers TC0-TC7 with the value of TCNT+delay. And you can hardware trigger them at the edge of the pulse too, if you want.
0 件の賞賛
返信