<?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のトピックMSCAN Filters, why two? - HC08GZ</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170945#M11463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Just playing around with the MSCAN module in the HC08GZ, I finally got the thing talking on the CAN bus, but I am a little confused on the overall point of having two message filters, CIDMR0 - CIDMR3&amp;nbsp; and CIDAR0 - CIDAR3. Maybe I am&amp;nbsp;reading it wrong, but they seem to serve the same purpose?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The way I understand it is the registers CIDMR0 - CIDMR3 are like a primary message filter because they should only be configured when initializing the MSCAN.&lt;/DIV&gt;&lt;DIV&gt;So that leaves the I.D acceptance registers which can provide further message filtering to those passed through from CIDMR0 - CIDMR3.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So as an example, I could set CIDMR0 - CIDMR3 to only accept messages within the ID range of $100 - $400&lt;/DIV&gt;&lt;DIV&gt;Then the ID acceptance registers can be defined to filter a specific message from the range within $100 - $400 as that was all that was passed through from CIDMR0 - CIDMR3.&lt;/DIV&gt;&lt;DIV&gt;If this is how it works then it seems a little bit limiting to have just two ID acceptance filters.&lt;/DIV&gt;&lt;DIV&gt;What happens if I wanted to get messages from ID's $101, $183, $202, $234, $340, $389 ?, do I just allow the ID acceptance filters to pass all through from $100 - $400 then do an individual comapre once the message has arrived? which is not ideal because it would mean a 16bit compare for each ID.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance,&lt;/DIV&gt;&lt;DIV&gt;Ross&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Bloodhound on &lt;SPAN class="date_text"&gt;2007-12-06&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:43 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;Added p/n to subject&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-12-06&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:10 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2007 17:36:11 GMT</pubDate>
    <dc:creator>Bloodhound</dc:creator>
    <dc:date>2007-12-06T17:36:11Z</dc:date>
    <item>
      <title>MSCAN Filters, why two? - HC08GZ</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170945#M11463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Just playing around with the MSCAN module in the HC08GZ, I finally got the thing talking on the CAN bus, but I am a little confused on the overall point of having two message filters, CIDMR0 - CIDMR3&amp;nbsp; and CIDAR0 - CIDAR3. Maybe I am&amp;nbsp;reading it wrong, but they seem to serve the same purpose?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The way I understand it is the registers CIDMR0 - CIDMR3 are like a primary message filter because they should only be configured when initializing the MSCAN.&lt;/DIV&gt;&lt;DIV&gt;So that leaves the I.D acceptance registers which can provide further message filtering to those passed through from CIDMR0 - CIDMR3.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So as an example, I could set CIDMR0 - CIDMR3 to only accept messages within the ID range of $100 - $400&lt;/DIV&gt;&lt;DIV&gt;Then the ID acceptance registers can be defined to filter a specific message from the range within $100 - $400 as that was all that was passed through from CIDMR0 - CIDMR3.&lt;/DIV&gt;&lt;DIV&gt;If this is how it works then it seems a little bit limiting to have just two ID acceptance filters.&lt;/DIV&gt;&lt;DIV&gt;What happens if I wanted to get messages from ID's $101, $183, $202, $234, $340, $389 ?, do I just allow the ID acceptance filters to pass all through from $100 - $400 then do an individual comapre once the message has arrived? which is not ideal because it would mean a 16bit compare for each ID.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance,&lt;/DIV&gt;&lt;DIV&gt;Ross&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Bloodhound on &lt;SPAN class="date_text"&gt;2007-12-06&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:43 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;Added p/n to subject&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-12-06&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:10 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 17:36:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170945#M11463</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2007-12-06T17:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN Filters, why two? - HC08GZ</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170946#M11464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Ross,&lt;BR /&gt;&lt;BR /&gt;CIDAR and CIDM do NOT serve the same purpose!&lt;BR /&gt;&lt;BR /&gt;The CIDAR will indicate the &lt;B&gt;value&lt;/B&gt; of the BIT you wish,&lt;BR /&gt;The CIDM will indicate &lt;B&gt;if&lt;/B&gt; the BIT has to be considered or not. (=mask)&lt;BR /&gt;&lt;BR /&gt;Then with the combination of both, you can filter bit by bit to say:&lt;BR /&gt;- I don't care about this bit,&lt;BR /&gt;- I want this bit to be a 1,&lt;BR /&gt;- I want this bit to be a 0.&lt;BR /&gt;&lt;BR /&gt;Do see what I'm trying to explain shortly ?&lt;BR /&gt;&lt;BR /&gt;Then you can combine these filters to put them either in parallel or in series. (The msCAN12 works the same way, except with more filters).&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 02:56:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170946#M11464</guid>
      <dc:creator>Nabla69</dc:creator>
      <dc:date>2007-12-07T02:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN Filters, why two? - HC08GZ</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170947#M11465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks Alban, I'll be honest, I'm still not not 100% on the 'concept' behind the two filters.&lt;/DIV&gt;&lt;DIV&gt;Perhaps can you please give an example (not code, just descriptive) on the interaction between the two?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;Ross&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 20:19:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170947#M11465</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2007-12-07T20:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN Filters, why two? - HC08GZ</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170948#M11466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I stumbled on this doc -&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.motorola.com.cn/semiconductors/mcudsp/forms/appnote/AN2010.pdf" rel="nofollow" target="_blank"&gt;http://www.motorola.com.cn/semiconductors/mcudsp/forms/appnote/AN2010.pdf&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;I'll have good read of that, it looks like it explains it very well.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Ross&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 20:55:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170948#M11466</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2007-12-07T20:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN Filters, why two? - HC08GZ</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170949#M11467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Ross,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Indeed, this is the document I had in mind.&lt;/DIV&gt;&lt;DIV&gt;Otherwise the datasheet should have a chapter with a graph showing the association of the different registers.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;IMPORTANT: the msCAN configuration software is not available anymore and that is why the AN2010 was removed from the global FSL website.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 21:11:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170949#M11467</guid>
      <dc:creator>Nabla69</dc:creator>
      <dc:date>2007-12-07T21:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN Filters, why two? - HC08GZ</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170950#M11468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Alban, you wouldn't happen to know the .exe or install package name for that &lt;FONT face="Arial"&gt;msCAN Filter Generator program would you?, just to help a guy on Google, Emule etc?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Ross&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2007 08:57:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170950#M11468</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2007-12-08T08:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN Filters, why two? - HC08GZ</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170951#M11469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;As explained by others, you have a match filter, and a mask filter. The match filter is used to specify the bits that need to match. The mask filter specifies the bits that "don't care".&lt;BR /&gt;&lt;BR /&gt;Filters is great if you need high speed, and have just a few specific IDs that you need to receive. It's fast because you don't need any code to process the messages. In fact the core (CPU) doesn't even see the messages unless it gets a "hit" with the filter.&lt;BR /&gt;&lt;BR /&gt;For slow speed CAN, you can do without using filters. I use the GZ (new designs use the DZ now). I have a slow speed CANbus (&amp;lt;100Kb/s) and a lot of IDs. So I don't use the filter (set the mask so that all bits are "don't care"). I use multiple switch/case statements on blocks of IDs. Not the quickest or smallest bit of code, but it's easy to manage.&lt;BR /&gt;&lt;BR /&gt;HTH &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 06:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MSCAN-Filters-why-two-HC08GZ/m-p/170951#M11469</guid>
      <dc:creator>Bruce_andrew</dc:creator>
      <dc:date>2007-12-12T06:52:59Z</dc:date>
    </item>
  </channel>
</rss>

