Timers of s12xdp512

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

Timers of s12xdp512

996 Views
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.
Labels (1)
0 Kudos
1 Reply

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