<?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 MPC5748 CAN FD in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5748-CAN-FD/m-p/657883#M7124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hello all!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I'm running into a timing issue while configuring the CAN FD on MPC5748G micro. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I’m using 40MHz F40 clock as CAN oscillator clock (&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;fCANCLK&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;). And my arbitration bit rate is set at 500K, and the data bit rate is set to be twice as that =1000K. The PSEG and DIV settings for arbitration and data are as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122790i4BDA8D7ADD0180A1/image-size/large?v=v2&amp;amp;px=999" title="175479_175479.png" alt="175479_175479.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12960iD7A01CDF77725925/image-size/large?v=v2&amp;amp;px=999" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122791iCACB49528CD923AC/image-size/large?v=v2&amp;amp;px=999" title="175480_175480.png" alt="175480_175480.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13003i5ED92ED2DBD12F23/image-size/large?v=v2&amp;amp;px=999" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The arbitration phase turns out to be ok. However, the data rate in the data phase is slightly imperfect. The data is supposed to be 1000ns/bit, however, on my scope it’s showing ~960ns/bit. Here’s the screenshot (yellow and blue are CAN high and low, red is CANH – CANL, I’m sending data 0b1010101….). This is causing the Canalyzer not being able to receive data correctly. Does anyone&amp;nbsp;have any idea what’s happening and how to make the timing more accurate?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122792iBE1033C925D53A25/image-size/large?v=v2&amp;amp;px=999" title="175484_175484.png" alt="175484_175484.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13029i14384AE54C2C07F1/image-size/large?v=v2&amp;amp;px=999" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #0d0d0d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 19:29:47 GMT</pubDate>
    <dc:creator>shijiaguo</dc:creator>
    <dc:date>2017-01-31T19:29:47Z</dc:date>
    <item>
      <title>MPC5748 CAN FD</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748-CAN-FD/m-p/657883#M7124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hello all!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I'm running into a timing issue while configuring the CAN FD on MPC5748G micro. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I’m using 40MHz F40 clock as CAN oscillator clock (&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;fCANCLK&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;). And my arbitration bit rate is set at 500K, and the data bit rate is set to be twice as that =1000K. The PSEG and DIV settings for arbitration and data are as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122790i4BDA8D7ADD0180A1/image-size/large?v=v2&amp;amp;px=999" title="175479_175479.png" alt="175479_175479.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12960iD7A01CDF77725925/image-size/large?v=v2&amp;amp;px=999" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122791iCACB49528CD923AC/image-size/large?v=v2&amp;amp;px=999" title="175480_175480.png" alt="175480_175480.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13003i5ED92ED2DBD12F23/image-size/large?v=v2&amp;amp;px=999" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The arbitration phase turns out to be ok. However, the data rate in the data phase is slightly imperfect. The data is supposed to be 1000ns/bit, however, on my scope it’s showing ~960ns/bit. Here’s the screenshot (yellow and blue are CAN high and low, red is CANH – CANL, I’m sending data 0b1010101….). This is causing the Canalyzer not being able to receive data correctly. Does anyone&amp;nbsp;have any idea what’s happening and how to make the timing more accurate?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122792iBE1033C925D53A25/image-size/large?v=v2&amp;amp;px=999" title="175484_175484.png" alt="175484_175484.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13029i14384AE54C2C07F1/image-size/large?v=v2&amp;amp;px=999" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #0d0d0d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 19:29:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748-CAN-FD/m-p/657883#M7124</guid>
      <dc:creator>shijiaguo</dc:creator>
      <dc:date>2017-01-31T19:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748 CAN FD</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748-CAN-FD/m-p/657884#M7125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shijia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The length of data bit time is calculated as SYNC + FPROPSEG + (FPSEG1+1) + (FPSEG2+1).&lt;/P&gt;&lt;P&gt;FPROPSEG, FPSEG1, FPSEG2 are values written into FDCBT register.&lt;/P&gt;&lt;P&gt;So for your setting just increase FPROPSEG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it is recommended to have the same time quanta length for the data phase and set the sample time somewhere in the middle of the data bit time. So you can recalculate your setting to have the same prescaler for both nominal and data bit time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 13:29:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748-CAN-FD/m-p/657884#M7125</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-02-01T13:29:54Z</dc:date>
    </item>
  </channel>
</rss>

