<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CAN Timestamp in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/CAN-Timestamp/m-p/891854#M3071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Please have a look over this. Is it still an issue ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jun 2019 07:21:43 GMT</pubDate>
    <dc:creator>Daniel_Popa</dc:creator>
    <dc:date>2019-06-19T07:21:43Z</dc:date>
    <item>
      <title>CAN Timestamp</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/CAN-Timestamp/m-p/891853#M3070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a function that will check when the last CAN message was received, and if it has not been received within x amount of time an action will be take. My question is how do I get the current time, to be able to see the difference between the CAN Timestamp and current time? Also is this timestamp in seconds?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 17:27:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/CAN-Timestamp/m-p/891853#M3070</guid>
      <dc:creator>fernando_barrio</dc:creator>
      <dc:date>2019-04-10T17:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Timestamp</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/CAN-Timestamp/m-p/891854#M3071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Please have a look over this. Is it still an issue ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2019 07:21:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/CAN-Timestamp/m-p/891854#M3071</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2019-06-19T07:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Timestamp</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/CAN-Timestamp/m-p/891855#M3072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/fernando.barrios@uwaterloo.ca"&gt;fernando.barrios@uwaterloo.ca&lt;/A&gt;‌, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dumitru-daniel.popa"&gt;dumitru-daniel.popa&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delayed answer on this topic, I missed it; I think it was answered &lt;A _jive_internal="true" href="https://community.nxp.com/thread/502561#comment-1152690"&gt;here&amp;nbsp;&lt;/A&gt;. To answer the question, here is the output of the CAN block:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88325i4A9F78CB482F758D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This timestamp is part of the MB structure (2B long), and is a value that the free running timer returns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88326iB708D7E54F4819D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TIMER_SRC bit (from CAN_CTRL2) is negated, thus the free running timer is clocked by the CAN bit-clock (the one that defines the baud rate on the CAN bus). This timer increments by one after each bit (received/transmitted); when there is no message on the bus, it counts using the programmed baud rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find out more details in the reference manual, in FlexCAN -&amp;gt; Functional description -&amp;gt; CAN protocol related features -&amp;gt; Timestamp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2019 08:58:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/CAN-Timestamp/m-p/891855#M3072</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-06-19T08:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Timestamp</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/CAN-Timestamp/m-p/891856#M3073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you did answer it on my other post, this explanation is helpful though I really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 02:52:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/CAN-Timestamp/m-p/891856#M3073</guid>
      <dc:creator>fernando_barrio</dc:creator>
      <dc:date>2019-06-20T02:52:58Z</dc:date>
    </item>
  </channel>
</rss>

