NE64 TIMER

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

NE64 TIMER

2,810件の閲覧回数
Carlos20
Contributor I
i would like information about programming this timer with precision. It seems I can only write the TCNT register in the special mode(using the BDM cable for debugging). I´ll be very gratefull for any help about that. Carlos  would like information about programming this timer with precision. It seems I can only write the TCNT register in the special mode(using the BDM cable for debugging).
 
I´ll be very gratefull for any help about that.
 
Carlos
ラベル(1)
0 件の賞賛
2 返答(返信)

420件の閲覧回数
DrSeuss
Contributor I

Not sure what you mean by precision. But are you aware that timer channel 7 can be used to reset the main counter?

You can set the output compare function of channel 7 to say 0x1234, when this event occurs the main counter will be reset to 0x0000. Effectively, reducing the main count to 0x1234. This can be very useful for creating decimal counts instead of the binary counts of the counter.

Set the TCRE bit in the TSCR2 register to enable this function.

also see:

http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&message.id=1032

 

Message Edited by DrSeuss on 05-24-2006 09:03 PM

0 件の賞賛

420件の閲覧回数
imajeff
Contributor III
Seems the info is in "MC9S12NE64V1.pdf". 6.4.2 talks about "Output Compare" which lets you tell it at what value of TCNT the timer will trigger.
0 件の賞賛