Timer Link for MSCAN on GZ16

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

Timer Link for MSCAN on GZ16

1,833 次查看
PaulPorter
Contributor I
Hi

Has anyone had any trouble with the Timer link for the MSCAN module on the GZ16.

I am setting up Timer 2 Channel 0 as an input capture timer and setting the TLNKEN bit in CMCR0. I have checked that it is definatly set using debug later on in my code. The capture registers remain at 0 even though I am receiving valid CAN packets.

The Timer is still receiving its signal from the port pin instead of the MSCAN module. If I wiggle the port pin the timer will capture, but no captures take place on Reception of a CAN packet.

Is there sometihng I am missing?
I know the Timer is running and Capture mode is enabled but I cannot get it to capture on MSCAN reception instead of port pin rising edge.
Does anything else need to be done besides setting TLNKEN in CMCR0?

Any advice would be greatly appreicated
Regards
Paul
标签 (1)
0 项奖励
回复
1 回复

609 次查看
RockyRoad
Contributor III

Paul -

I know that this is a late response, but a colleague just saw this post and recognized the problem.

There is a mistake in the documentation. The Timer Link is actually associated with Timer 1, Channel 0.

- Rocky

0 项奖励
回复