This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TCAN4551-Q1: timestamp in the header of the FIFO

Part Number: TCAN4551-Q1

Tool/software:

I have a question about the timestamp of TCAN4551-Q1.

According to the software user's guide, there is a 16-bit timestamp in the header of the FIFO.

What is the format of this timestamp?

What kind of time data does it contain?

  • Hello Nomura,

    I would refer you to the "Timestamp Generation" section (3.2) of the M_CAN User's Manual (Link) for more detailed information.  The M_CAN timestamp counter is a 16-bit wraparound counter can be configured to be clocked by a multiple of CAN bit times, or by an external clock. 

    The M_CAN controller considers the CAN Bit Time counter the "internal" counter and the "external" counter uses the high-speed clock provided on the OSC1/2 pins with some prescalar applied through register 0x0804. 

    The M_CAN Timestamp registers are 0x1020 and 0x1024.  If the CAN bit time "internal" counter method is used, then register 0x0804 can be ignored.  Register 0x0804 is only used when the divided down clock "external" method is used.

    As far as format it concerned, it is just a 16-bit counter value that the MCU can monitor.  When the counter wraps around, the Time Stamp Wraparound interrupt bit will be set to inform the MCU that the counter value has wrapped around.  When used, some method by the MCU to keep track and count the wraparound interrupt may be required.

    Regards,

    Jonathan

  • Hi Jonathan,

    I'm sorry for the delayed reply.
    Your explanation helped me understand.

    Regards,

    Nomura