<?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>8-bit MicrocontrollersのトピックRe: setting identifier acceptance filter for MSCAN</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205982#M17316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe acceptance mode is not setup well? Can you read and confirm that&amp;nbsp;CANIDAC IDAM1:IDAM0 bits ==01? If not, then do you setup CANIDAC bits while in initialization mode? I don't know why 2nd and 4th 16-bits filters aren't working for you.&amp;nbsp;I hope it's not&amp;nbsp;S08DZ errata. I'm waiting for S08DZ board and don't have time to modify MSCAN driver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jun 2010 17:09:29 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2010-06-10T17:09:29Z</dc:date>
    <item>
      <title>setting identifier acceptance filter for MSCAN</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205978#M17312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wonder if I am understanding the setting of identifier acceptance filter for MSCAN.&lt;/P&gt;&lt;P&gt;I have a MC9S08DZ128 and I would like to set 4 filters of 16bits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I think to set mask and code ?&lt;/P&gt;&lt;P&gt;I have made 4 different codes with their mask : for example :&lt;/P&gt;&lt;P&gt;I would like to filter ID of 0x1A1 :&lt;/P&gt;&lt;P&gt;CANIDAR0 = 0x34;&lt;/P&gt;&lt;P&gt;CANIDAR1 = 0x20;&lt;/P&gt;&lt;P&gt;CANIDMR0 =0x00;&lt;/P&gt;&lt;P&gt;CANIDMR1 = 0x07;&lt;/P&gt;&lt;P&gt;It works fine. But when I want to set another filter (CANIDAR2 and CANIDAR3 with CANIDMR2 and CANIDMR3), it doesn't work.&lt;/P&gt;&lt;P&gt;How do filters work ? I should I do to set 4 filters ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 21:53:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205978#M17312</guid>
      <dc:creator>hasaur</dc:creator>
      <dc:date>2010-06-08T21:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: setting identifier acceptance filter for MSCAN</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205979#M17313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please if somebody has already set 4 filters of 16 bits for the MSCAN...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 19:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205979#M17313</guid>
      <dc:creator>hasaur</dc:creator>
      <dc:date>2010-06-09T19:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: setting identifier acceptance filter for MSCAN</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205980#M17314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, your filter setup&amp;nbsp;should pass messages with id = 0x1A1. What was not mentioned is that filter will pass only standard 11-bits message with id=0x1A1, and only&amp;nbsp;if it is non-RTR message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should look for a while&amp;nbsp;at datasheet figures 12-23 Extended Identifier Mapping and 12-24 Standard Identifier Mapping. Filter IDAR and&amp;nbsp;IDAM registers, also receive and transmit buffer identifier registers IDR0-IDR3 have the same bits mapping. IDE bit in xxxIDR1 register determines identifier mapping scheme. IDE=1 means&amp;nbsp;29-bits identifier, IDE=0&amp;nbsp;- &amp;nbsp;11-bits identifier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you get that logic, 16-bits filter setup for standard only id=0x1A1, but both RTR and non RTR should be this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CANIDAR0 = 0x34;&lt;/P&gt;&lt;P&gt;CANIDAR1 = 0x20;&lt;/P&gt;&lt;P&gt;CANIDMR0 =0x00;&lt;/P&gt;&lt;P&gt;CANIDMR1 = 0x&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;7;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;32-bits filter setup for extended only identifier 0x1A1, both RTR and non RTR should be this:&lt;/P&gt;&lt;P&gt;CANIDAR0 = 0;&lt;/P&gt;&lt;P&gt;CANIDAR1 = 0x18;&lt;/P&gt;&lt;P&gt;CANIDAR2 =0x3;&lt;/P&gt;&lt;P&gt;CANIDAR3 = 0x42;&lt;/P&gt;&lt;P&gt;CANIDMR0 = 0;&lt;/P&gt;&lt;P&gt;CANIDMR1 = 0;&lt;/P&gt;&lt;P&gt;CANIDMR2 = 0;&lt;/P&gt;&lt;P&gt;CANIDMR3 = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To ease setup a bit, for standard id you may you use something like this:&lt;/P&gt;&lt;P&gt;CANIDAR0 = id &amp;gt;&amp;gt; 3;&lt;/P&gt;&lt;P&gt;CANIDAR1 = id &amp;lt;&amp;lt; 5;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;extended id:&lt;/P&gt;&lt;P&gt;CANIDAR0 = id &amp;gt;&amp;gt; 21;&lt;/P&gt;&lt;P&gt;CANIDAR1 = ((id &amp;gt;&amp;gt; (18-5)) &amp;amp; 0xE0) | 0x18|((id &amp;gt;&amp;gt; 15) &amp;amp; 7);&lt;/P&gt;&lt;P&gt;CANIDAR2 = id &amp;gt;&amp;gt; 7;&lt;/P&gt;&lt;P&gt;CANIDAR3 = id &amp;lt;&amp;lt; 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 03:46:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205980#M17314</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-06-10T03:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: setting identifier acceptance filter for MSCAN</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205981#M17315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thank you for your help.&lt;/P&gt;&lt;P&gt;I only have standard identifier and non-RTR.&lt;/P&gt;&lt;P&gt;The thing that I don't understand is that I can configure 2 filters with CANIDAR0-CANIDAR1/CANIDMR0-CANIDMR1 and CANIDAR4-CANIDAR5/CANIDMR4-CANIDMR5 : that wors very well. The other filters (configured with CANIDAR2-CANIDAR3/CANIDMR2-CANIDMR3 and CANIDAR6-CANIDAR7/CANIDMR6-CANIDMR7) are never applied to messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 15:18:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205981#M17315</guid>
      <dc:creator>hasaur</dc:creator>
      <dc:date>2010-06-10T15:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: setting identifier acceptance filter for MSCAN</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205982#M17316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe acceptance mode is not setup well? Can you read and confirm that&amp;nbsp;CANIDAC IDAM1:IDAM0 bits ==01? If not, then do you setup CANIDAC bits while in initialization mode? I don't know why 2nd and 4th 16-bits filters aren't working for you.&amp;nbsp;I hope it's not&amp;nbsp;S08DZ errata. I'm waiting for S08DZ board and don't have time to modify MSCAN driver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 17:09:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/setting-identifier-acceptance-filter-for-MSCAN/m-p/205982#M17316</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-06-10T17:09:29Z</dc:date>
    </item>
  </channel>
</rss>

