<?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>S32KのトピックHow to find out CAN Bit Timing</title>
    <link>https://community.nxp.com/t5/S32K/How-to-find-out-CAN-Bit-Timing/m-p/1041862#M6759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class=""&gt;How the bit time is calculated , i could not understand. kindly help me to understand . it's urgent for project work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;CAN0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000bf;"&gt;CTRL1 &lt;/SPAN&gt;&lt;SPAN class=""&gt;= 0x00DB0006; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2900ff;"&gt;/* Configure for 500 KHz bit time */&lt;BR /&gt;/* Time quanta freq = 16 time quanta x 500 KHz bit time= 8MHz */&lt;BR /&gt;/* PRESDIV+1 = Fclksrc/Ftq = 8 MHz/8 MHz = 1 */&lt;BR /&gt;/* so PRESDIV = 0 */&lt;BR /&gt;/* PSEG2 = Phase_Seg2 - 1 = 4 - 1 = 3 */&lt;BR /&gt;/* PSEG1 = PSEG2 = 3 */&lt;BR /&gt;/* PROPSEG= Prop_Seg - 1 = 7 - 1 = 6 */&lt;BR /&gt;/* RJW: since Phase_Seg2 &amp;gt;=4, RJW+1=4 so RJW=3. */&lt;BR /&gt;/* SMP = 1: use 3 bits per CAN sample */&lt;BR /&gt;/* CLKSRC=0 (unchanged): Fcanclk= Fosc= 8 MHz */&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;These common guidelines are used in CAN 2.0 example for a desired bit rate of 500 KHz:&lt;BR /&gt;• CAN bit rate period is typically subdivided into 12–20 time quanta&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;BR /&gt;• The sample point is normally chosen around 75%–80% through the bit rate period.&lt;BR /&gt;• The remaining 20–25% will be the value for Phase_Seg2.&lt;BR /&gt;• The value of Phase_Seg1 will be the same as Phase_Seg2.&lt;BR /&gt;• The Sync_Seg is 1 time quantum.&lt;BR /&gt;• Resync Jump Width (RJW+1) = Phase_Seg2 (if Phase_Seg2 &amp;lt; 4; otherwise (RJW +1) = 4.&lt;BR /&gt;For this example and within the above guidelines, these are the values selected for the CAN module:&lt;BR /&gt;• Number of time quanta per bit rate period = 16&lt;BR /&gt;• Sample point = 75%, which is 12 time quanta into the 16 time quantum period&lt;BR /&gt;Hence,&lt;BR /&gt;Phase_Seg2 = (100% – 75%) &lt;/SPAN&gt;&lt;SPAN class=""&gt;× &lt;/SPAN&gt;&lt;SPAN class=""&gt;16 time quanta = 25% &lt;/SPAN&gt;&lt;SPAN class=""&gt;× &lt;/SPAN&gt;&lt;SPAN class=""&gt;16 time quanta = 4 time quanta; PSEG2 = 3&lt;BR /&gt;Phase_Seg1 = Phase_Seg2 = 4 time quanta; PSEG1 = 3&lt;BR /&gt;Prop_Seg = 16 – Phase_Seg1 – Phase_Seg2 – SYNCSEG = 16 – 4 – 4 – 1 = 7; PROPSEG = 6&lt;BR /&gt;Resync Jump Width (RJW + 1) = 4&lt;BR /&gt;Also for this example, the following applies for an 8 MHz crystal.&lt;BR /&gt;f&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 10pt;"&gt;CANCLK &lt;/SPAN&gt;&lt;SPAN class=""&gt;= 8 MHz (EVB oscillator)&lt;BR /&gt;Hence,&lt;BR /&gt;f&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 10pt;"&gt;Sclock &lt;/SPAN&gt;&lt;SPAN class=""&gt;(time quantum freq.) = (16 time quanta/bit rate period) &lt;/SPAN&gt;&lt;SPAN class=""&gt;× &lt;/SPAN&gt;&lt;SPAN class=""&gt;(500 K bit rate periods/sec)= 8MHz&lt;BR /&gt;Prescaler Value (PRESDIV + 1) = f&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 10pt;"&gt;CANCLK &lt;/SPAN&gt;&lt;SPAN class=""&gt;/ f&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 10pt;"&gt;Sclock &lt;/SPAN&gt;&lt;SPAN class=""&gt;= 8 MHz / 8 MHz = 1&lt;BR /&gt;PRESDIV = 1 – 1 = 0&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2020 11:07:45 GMT</pubDate>
    <dc:creator>subham_dey</dc:creator>
    <dc:date>2020-06-01T11:07:45Z</dc:date>
    <item>
      <title>How to find out CAN Bit Timing</title>
      <link>https://community.nxp.com/t5/S32K/How-to-find-out-CAN-Bit-Timing/m-p/1041862#M6759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class=""&gt;How the bit time is calculated , i could not understand. kindly help me to understand . it's urgent for project work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;CAN0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000bf;"&gt;CTRL1 &lt;/SPAN&gt;&lt;SPAN class=""&gt;= 0x00DB0006; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2900ff;"&gt;/* Configure for 500 KHz bit time */&lt;BR /&gt;/* Time quanta freq = 16 time quanta x 500 KHz bit time= 8MHz */&lt;BR /&gt;/* PRESDIV+1 = Fclksrc/Ftq = 8 MHz/8 MHz = 1 */&lt;BR /&gt;/* so PRESDIV = 0 */&lt;BR /&gt;/* PSEG2 = Phase_Seg2 - 1 = 4 - 1 = 3 */&lt;BR /&gt;/* PSEG1 = PSEG2 = 3 */&lt;BR /&gt;/* PROPSEG= Prop_Seg - 1 = 7 - 1 = 6 */&lt;BR /&gt;/* RJW: since Phase_Seg2 &amp;gt;=4, RJW+1=4 so RJW=3. */&lt;BR /&gt;/* SMP = 1: use 3 bits per CAN sample */&lt;BR /&gt;/* CLKSRC=0 (unchanged): Fcanclk= Fosc= 8 MHz */&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;These common guidelines are used in CAN 2.0 example for a desired bit rate of 500 KHz:&lt;BR /&gt;• CAN bit rate period is typically subdivided into 12–20 time quanta&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;BR /&gt;• The sample point is normally chosen around 75%–80% through the bit rate period.&lt;BR /&gt;• The remaining 20–25% will be the value for Phase_Seg2.&lt;BR /&gt;• The value of Phase_Seg1 will be the same as Phase_Seg2.&lt;BR /&gt;• The Sync_Seg is 1 time quantum.&lt;BR /&gt;• Resync Jump Width (RJW+1) = Phase_Seg2 (if Phase_Seg2 &amp;lt; 4; otherwise (RJW +1) = 4.&lt;BR /&gt;For this example and within the above guidelines, these are the values selected for the CAN module:&lt;BR /&gt;• Number of time quanta per bit rate period = 16&lt;BR /&gt;• Sample point = 75%, which is 12 time quanta into the 16 time quantum period&lt;BR /&gt;Hence,&lt;BR /&gt;Phase_Seg2 = (100% – 75%) &lt;/SPAN&gt;&lt;SPAN class=""&gt;× &lt;/SPAN&gt;&lt;SPAN class=""&gt;16 time quanta = 25% &lt;/SPAN&gt;&lt;SPAN class=""&gt;× &lt;/SPAN&gt;&lt;SPAN class=""&gt;16 time quanta = 4 time quanta; PSEG2 = 3&lt;BR /&gt;Phase_Seg1 = Phase_Seg2 = 4 time quanta; PSEG1 = 3&lt;BR /&gt;Prop_Seg = 16 – Phase_Seg1 – Phase_Seg2 – SYNCSEG = 16 – 4 – 4 – 1 = 7; PROPSEG = 6&lt;BR /&gt;Resync Jump Width (RJW + 1) = 4&lt;BR /&gt;Also for this example, the following applies for an 8 MHz crystal.&lt;BR /&gt;f&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 10pt;"&gt;CANCLK &lt;/SPAN&gt;&lt;SPAN class=""&gt;= 8 MHz (EVB oscillator)&lt;BR /&gt;Hence,&lt;BR /&gt;f&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 10pt;"&gt;Sclock &lt;/SPAN&gt;&lt;SPAN class=""&gt;(time quantum freq.) = (16 time quanta/bit rate period) &lt;/SPAN&gt;&lt;SPAN class=""&gt;× &lt;/SPAN&gt;&lt;SPAN class=""&gt;(500 K bit rate periods/sec)= 8MHz&lt;BR /&gt;Prescaler Value (PRESDIV + 1) = f&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 10pt;"&gt;CANCLK &lt;/SPAN&gt;&lt;SPAN class=""&gt;/ f&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 10pt;"&gt;Sclock &lt;/SPAN&gt;&lt;SPAN class=""&gt;= 8 MHz / 8 MHz = 1&lt;BR /&gt;PRESDIV = 1 – 1 = 0&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 11:07:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-find-out-CAN-Bit-Timing/m-p/1041862#M6759</guid>
      <dc:creator>subham_dey</dc:creator>
      <dc:date>2020-06-01T11:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out CAN Bit Timing</title>
      <link>https://community.nxp.com/t5/S32K/How-to-find-out-CAN-Bit-Timing/m-p/1041863#M6760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Subham Dey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the "55.5.9.7 Protocol timing" of &lt;A href="https://www.nxp.com/webapp/Download?colCode=S32K1XXRM"&gt;S32K1XXRM&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can also use the Processor Expert to calculate it.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060; background-color: #f7f7f7; font-weight: 600;"&gt;can_pal_s32k146.png&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Robin&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 02:24:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-find-out-CAN-Bit-Timing/m-p/1041863#M6760</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2020-06-02T02:24:49Z</dc:date>
    </item>
  </channel>
</rss>

