NE64 TIMER

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

NE64 TIMER

2,826 次查看
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 回复数

436 次查看
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 项奖励

436 次查看
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 项奖励