<?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>Sensors中的主题 Re: MC33771 CRC</title>
    <link>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764088#M4944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Huang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please accept my apologies for the delay in answering your question, I had to ask our apps engineer for help, please find below his response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CRC is used to ensure consistency (during transmission) of each individual 40 bit message on the bus and is calculated for the bits[39..8].&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you transmit a message you have to calculate the CRC based on the data you sent and add that CRC to the message.&lt;/LI&gt;&lt;LI&gt;If you receive a message you have to calculate the CRC_calc of the received message bits[39..8] and compare it with the received CRC_rx bits[7..0]. The data is consistent if CRC_calc == CRC_rx. If not consistent the data has to be ignored!&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no link between the CRC of one message to the CRC of another message! To ensure READ or WRITE commands you have to check the data inside the frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 14:59:58 GMT</pubDate>
    <dc:creator>TomasVaverka</dc:creator>
    <dc:date>2018-02-01T14:59:58Z</dc:date>
    <item>
      <title>MC33771 CRC</title>
      <link>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764087#M4943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a little question about the crc part of the MC33771's &amp;nbsp;responce ,its a simple question ,but i am a little confused.&lt;/P&gt;&lt;P&gt;hopefully you can &amp;nbsp;solve my confuseness.&lt;/P&gt;&lt;P&gt;As you can see the picture taken from datasheet page58,section 6.4. &amp;nbsp;as follow:&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/30191iC20E77CC534082E8/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;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30376i54EFF226B7CA88F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if my understanding is correct, this is my understanding :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CRC of read response is only relevant of these data——that is， it is calculated by these data ——&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/30576iC1B5004603EF3483/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;and CRC of write response is only relevant of these data ,that is,it&amp;nbsp;&lt;SPAN&gt;is calculated by these data ——&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30319i85D00EE104680D58/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is this understanding right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and the crc of slave(33771)'s responce &amp;nbsp;has no relevance with the CRC of command——which send by the master， is this understanding right？&lt;/P&gt;&lt;P&gt;if so, if the master want to check if the write operation&amp;nbsp;was OK( the write command send to slave),the master has to calculate the correct CRC using those data slave supposed to responce(show in the picture above),and then compare with the actual CRC in the slave's response, right?&lt;/P&gt;&lt;P&gt;but if the Master want to check if read opration is OK，because Master don't know the data of slave‘s &amp;nbsp;register,sure it don't know what data the slave suppose to responce, so it has to calculate CRC using the data which the slave send back in response, then compare it with the actual CRC &amp;nbsp;in slave's responce. right?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jan 2018 04:52:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764087#M4943</guid>
      <dc:creator>huangziyi</dc:creator>
      <dc:date>2018-01-28T04:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: MC33771 CRC</title>
      <link>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764088#M4944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Huang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please accept my apologies for the delay in answering your question, I had to ask our apps engineer for help, please find below his response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CRC is used to ensure consistency (during transmission) of each individual 40 bit message on the bus and is calculated for the bits[39..8].&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you transmit a message you have to calculate the CRC based on the data you sent and add that CRC to the message.&lt;/LI&gt;&lt;LI&gt;If you receive a message you have to calculate the CRC_calc of the received message bits[39..8] and compare it with the received CRC_rx bits[7..0]. The data is consistent if CRC_calc == CRC_rx. If not consistent the data has to be ignored!&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no link between the CRC of one message to the CRC of another message! To ensure READ or WRITE commands you have to check the data inside the frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 14:59:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764088#M4944</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2018-02-01T14:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: MC33771 CRC</title>
      <link>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764089#M4945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thank you very much ,you solved my problem perfectly!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;huang ziyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 03:23:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764089#M4945</guid>
      <dc:creator>huangziyi</dc:creator>
      <dc:date>2018-02-02T03:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: MC33771 CRC</title>
      <link>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764090#M4946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas:&lt;/P&gt;&lt;P&gt;     Thanks  for  your reply very much! it solved problem solved perfectly. I'm sorry to bother you another thing, that is ,when I read the driver code of " MC33771"——offered by you in the NXP community. I think I need to learn the detail thing about the MCU MKL25Z4, I searched the internet for the MKL25Z4‘s datasheet ——which used in software development, but I can't find one, if  you have MKL25Z4‘s datasheet .  Appreciate it very much  if you can send me one.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  Best regards&lt;/P&gt;&lt;P&gt; Huang ziyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 06:42:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764090#M4946</guid>
      <dc:creator>huangziyi</dc:creator>
      <dc:date>2018-02-02T06:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: MC33771 CRC</title>
      <link>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764091#M4947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Huang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Datasheet: &lt;A class="link-titled" href="https://www.nxp.com/docs/en/data-sheet/KL25P80M48SF0.pdf" title="https://www.nxp.com/docs/en/data-sheet/KL25P80M48SF0.pdf"&gt;https://www.nxp.com/docs/en/data-sheet/KL25P80M48SF0.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference Manual: &lt;A class="link-titled" href="http://cache.freescale.com/files/32bit/doc/ref_manual/KL25P80M48SF0RM.pdf" title="http://cache.freescale.com/files/32bit/doc/ref_manual/KL25P80M48SF0RM.pdf"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/KL25P80M48SF0RM.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 11:43:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764091#M4947</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2018-02-02T11:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: MC33771 CRC</title>
      <link>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764092#M4948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Tomas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already solved this problem , its because I the reversed the order of the bytes I send.and I shouldn't send 0XFF either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Huangziyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 12:43:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MC33771-CRC/m-p/764092#M4948</guid>
      <dc:creator>huangziyi</dc:creator>
      <dc:date>2018-02-05T12:43:08Z</dc:date>
    </item>
  </channel>
</rss>

