<?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_LDD Filter in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486489#M29922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos candido,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I already help you create a K70 KDS CAN_LDD project, you can refer to my project, the CAN_LDD configuration is like following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="71.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33619i0084A238E7DAE012/image-size/large?v=v2&amp;amp;px=999" role="button" title="71.jpg" alt="71.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Because you want to receive the standard ID:0x7E0,0x7E1,0x7E2&lt;/P&gt;&lt;P&gt;the standard ID is 11bit, it is:&lt;/P&gt;&lt;P&gt;0x7e0: 111111000&lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;00&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;0x7e1: 111111000&lt;SPAN style="color: #e23d39;"&gt;01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;0x7e2: 111111000&lt;SPAN style="color: #e23d39;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Then, you can use the acceptance mask to care all the higher 9 bit ID, and don't care the lower 2bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;so you can configure the acceptance mask for buff(register CAN1_RXMGMASK) = 0x1ff3ffff, you can combine the Rx FIFO structure in RM to understand it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="72.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33686i7109625E4B54524E/image-size/large?v=v2&amp;amp;px=999" role="button" title="72.jpg" alt="72.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Actually, if you don't care the lower 2 bit of the standard ID, you can receive just 0x7E0,0x7E1,0x7E2, 0x7e3, then all other standard ID won't be received.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I already test my project on my TWR-K70F120M, the test result is like following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="70.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33740i6992900DD2E61DC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="70.jpg" alt="70.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;You will find &lt;SPAN style="color: #303030;"&gt;0x7E0,0x7E1,0x7E2 can be received by the K70, but the 0X123 will be reject.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;More details, please refer to my attached project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2016 09:01:15 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2016-01-15T09:01:15Z</dc:date>
    <item>
      <title>CAN_LDD Filter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486486#M29919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;my teste bus with 10 IDs.&lt;/P&gt;&lt;P&gt;how to set filter to: read 3 ID/10 ID?&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;read ID: 0x7E0,0x7E1,0x7E2, others IDs not read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;500khz, interval between frames = 90uS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to&amp;nbsp; ISR use filter for the ID must read.&lt;/P&gt;&lt;P&gt;simple cmp not have timer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&amp;nbsp; ID == ID[i] )&lt;/P&gt;&lt;P&gt;save&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;not save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my test with&amp;nbsp; K70.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Carlos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 13:34:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486486#M29919</guid>
      <dc:creator>CCandido</dc:creator>
      <dc:date>2016-01-13T13:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: CAN_LDD Filter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486487#M29920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos candido,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please tell me which IDE you are using? and the ID type is standard or extend ID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your reply!&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 05:15:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486487#M29920</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-01-14T05:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: CAN_LDD Filter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486488#M29921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhou,&lt;/P&gt;&lt;P&gt;I use IDE KDS30.&lt;/P&gt;&lt;P&gt;Type ID Stander.&lt;/P&gt;&lt;P&gt;Twr-K70F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 10:21:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486488#M29921</guid>
      <dc:creator>CCandido</dc:creator>
      <dc:date>2016-01-14T10:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: CAN_LDD Filter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486489#M29922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos candido,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I already help you create a K70 KDS CAN_LDD project, you can refer to my project, the CAN_LDD configuration is like following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="71.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33619i0084A238E7DAE012/image-size/large?v=v2&amp;amp;px=999" role="button" title="71.jpg" alt="71.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Because you want to receive the standard ID:0x7E0,0x7E1,0x7E2&lt;/P&gt;&lt;P&gt;the standard ID is 11bit, it is:&lt;/P&gt;&lt;P&gt;0x7e0: 111111000&lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;00&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;0x7e1: 111111000&lt;SPAN style="color: #e23d39;"&gt;01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;0x7e2: 111111000&lt;SPAN style="color: #e23d39;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Then, you can use the acceptance mask to care all the higher 9 bit ID, and don't care the lower 2bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;so you can configure the acceptance mask for buff(register CAN1_RXMGMASK) = 0x1ff3ffff, you can combine the Rx FIFO structure in RM to understand it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="72.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33686i7109625E4B54524E/image-size/large?v=v2&amp;amp;px=999" role="button" title="72.jpg" alt="72.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Actually, if you don't care the lower 2 bit of the standard ID, you can receive just 0x7E0,0x7E1,0x7E2, 0x7e3, then all other standard ID won't be received.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I already test my project on my TWR-K70F120M, the test result is like following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="70.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33740i6992900DD2E61DC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="70.jpg" alt="70.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;You will find &lt;SPAN style="color: #303030;"&gt;0x7E0,0x7E1,0x7E2 can be received by the K70, but the 0X123 will be reject.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;More details, please refer to my attached project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 09:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486489#M29922</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-01-15T09:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: CAN_LDD Filter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486490#M29923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mode : 1&lt;/P&gt;&lt;P&gt;Golbal Acceptance Mask, Buffer 0...N = ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mode :2&lt;/P&gt;&lt;P&gt;Invidual Accptance Mask = not run all ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_function_calc_mask()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;uint mask&amp;nbsp;&amp;nbsp; = 0x7C4;&lt;/P&gt;&lt;P&gt;uint xor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x1FFFFFFF;&lt;/P&gt;&lt;P&gt;uint accep = 0x1FFFFFF; // 0001-1111-1111-1100-0000-0000-0000-0000&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; mask&amp;nbsp; = mask &amp;lt;&amp;lt; 18;&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; mask |= 0x3FFFF;&amp;nbsp; &amp;lt; ---Acceptance mask ividual&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CAN_Invidual Mak.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33625i3A52EAFBAAE3F5F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="CAN_Invidual Mak.jpg" alt="CAN_Invidual Mak.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note:&lt;/P&gt;&lt;P&gt;Buffer:0 0x7C1 = ok&lt;/P&gt;&lt;P&gt;Buffer:2 0x7C2 =&amp;nbsp; not accepted&lt;/P&gt;&lt;P&gt;Buffer:3 0x7C3 = ok&lt;/P&gt;&lt;P&gt;Buffer:4 0x7C4 = not accepted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;buffer_zero defined all masks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Carlos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jan 2016 17:39:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486490#M29923</guid>
      <dc:creator>CCandido</dc:creator>
      <dc:date>2016-01-16T17:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: CAN_LDD Filter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486491#M29924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Hi Zhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;thank you for your help.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Solved Invidual acceptance mask filter.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;see:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Can_filter_ok.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35676iBE679BD3736B531B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Can_filter_ok.jpg" alt="Can_filter_ok.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calc_id_mask&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;uint mask&amp;nbsp;&amp;nbsp; = your_id ;&amp;nbsp;&amp;nbsp; &lt;SPAN style="line-height: 1.5;"&gt; // 0001-1111-1111-1100-0000-0000-0000-0000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp; mask&amp;nbsp; = mask &amp;lt;&amp;lt; 18;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp; mask |= 0x3FFFF;&amp;nbsp; &amp;lt; ---Acceptance mask invidual&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;//-----------------------------------------&lt;/P&gt;&lt;P&gt;void CAN1_OnFullRxBuffer(LDD_TUserData *UserDataPtr, LDD_CAN_TMBIndex BufferIdx)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;simple&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch(&amp;nbsp; BufferIdx){ read buffer_x }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;//-----------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Carlos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 14:46:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-LDD-Filter/m-p/486491#M29924</guid>
      <dc:creator>CCandido</dc:creator>
      <dc:date>2016-01-17T14:46:02Z</dc:date>
    </item>
  </channel>
</rss>

