Timer Link for MSCAN on GZ16

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

Timer Link for MSCAN on GZ16

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

328 Views
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 Kudos
Reply