<?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>LPCXpresso IDEのトピックRe: Howto CRC16</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Howto-CRC16/m-p/582893#M25643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Oct 05 13:17:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mclane&lt;/STRONG&gt;&lt;BR /&gt;I have studied the crc code examples for the 1227 but I have no clue how to use them.&lt;BR /&gt;&lt;BR /&gt;I need to calculate a crc16 checksum over a string of chars.&lt;BR /&gt;Can anyone help me how to do it?&lt;BR /&gt;&lt;BR /&gt;Where can I find more details about the parameters to be provided to the functions prototyped in crc.h?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UM10441 Chapter 22: LPC122x CRC engine :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:05:52 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:05:52Z</dc:date>
    <item>
      <title>Howto CRC16</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Howto-CRC16/m-p/582891#M25641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mclane on Fri Oct 05 12:04:54 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have studied the crc code examples for the 1227 but I have no clue how to use them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to calculate a crc16 checksum over a string of chars.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me how to do it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where can I find more details about the parameters to be provided to the functions prototyped in crc.h?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:05:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Howto-CRC16/m-p/582891#M25641</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Howto CRC16</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Howto-CRC16/m-p/582892#M25642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ArtjomGromak on Fri Oct 05 13:07:07 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mclane&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Where can I find more details about the parameters to be provided to the functions prototyped in crc.h?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;crc.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
uint16_t Crc16( uint8_t *s)
{
unsigned short crc = 0xFFFF;
unsigned char i;

while(*s)
{
crc ^= *s++ &amp;lt;&amp;lt; 8;

for( i = 0; i &amp;lt; 8; i++ )
crc = crc &amp;amp; 0x8000 ? ( crc &amp;lt;&amp;lt; 1 ) ^ 0x1021 : crc &amp;lt;&amp;lt; 1;
}

return crc;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;crc.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;

#ifndef CRC16_H_
#define CRC16_H_

#include &amp;lt;stdint.h&amp;gt;
uint16_t Crc16( uint8_t *s);

#endif
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:05:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Howto-CRC16/m-p/582892#M25642</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Howto CRC16</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Howto-CRC16/m-p/582893#M25643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Oct 05 13:17:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mclane&lt;/STRONG&gt;&lt;BR /&gt;I have studied the crc code examples for the 1227 but I have no clue how to use them.&lt;BR /&gt;&lt;BR /&gt;I need to calculate a crc16 checksum over a string of chars.&lt;BR /&gt;Can anyone help me how to do it?&lt;BR /&gt;&lt;BR /&gt;Where can I find more details about the parameters to be provided to the functions prototyped in crc.h?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UM10441 Chapter 22: LPC122x CRC engine :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:05:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Howto-CRC16/m-p/582893#M25643</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:05:52Z</dc:date>
    </item>
  </channel>
</rss>

