<?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 Using the MSCAN Identifier Acceptance Registers to capture multiple ARB ids in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-MSCAN-Identifier-Acceptance-Registers-to-capture/m-p/677023#M22404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a 9S12XEP10 star12 processor and working with existing code.&lt;/P&gt;&lt;P&gt;I need to capture a range of 7 ARB IDs on a single CAN port. I am having trouble understanding how to use the CANIDAR0-7 and CANIDMR0-7 to make this work. I want to capture all messages in a group that only differ in the 3 lowest bits of the address. ie. 0-7. However, when I try to set them up, I only get the 0.&lt;/P&gt;&lt;P&gt;I am using the Processor Expert because the existing code was written that way, and the Acceptance mode was written for 2 32-bit address and mask register and the code is using &amp;nbsp;STD and XTD modes. The code works for capturing a single ARB-ID, but I don't seem to have it correct for multiple ARB-IDs. Also, the default MASKs is as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;STD 0x70007u&lt;/LI&gt;&lt;LI&gt;XTD 0x70000u&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What I&amp;nbsp;need to know is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why does the '7' appear twice in the STD mask?&lt;/LI&gt;&lt;LI&gt;For my specific example should STD be 0x3F003Fu and XTD 0x3F0000u?&lt;/LI&gt;&lt;LI&gt;Should my Identifier value, again for STD, &amp;nbsp;be (id&amp;lt;&amp;lt;21 |&amp;nbsp;id&amp;lt;&amp;lt;3?) or (id &amp;lt;&amp;lt; 21)?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2017 22:13:41 GMT</pubDate>
    <dc:creator>can_dave</dc:creator>
    <dc:date>2017-06-28T22:13:41Z</dc:date>
    <item>
      <title>Using the MSCAN Identifier Acceptance Registers to capture multiple ARB ids</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-MSCAN-Identifier-Acceptance-Registers-to-capture/m-p/677023#M22404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a 9S12XEP10 star12 processor and working with existing code.&lt;/P&gt;&lt;P&gt;I need to capture a range of 7 ARB IDs on a single CAN port. I am having trouble understanding how to use the CANIDAR0-7 and CANIDMR0-7 to make this work. I want to capture all messages in a group that only differ in the 3 lowest bits of the address. ie. 0-7. However, when I try to set them up, I only get the 0.&lt;/P&gt;&lt;P&gt;I am using the Processor Expert because the existing code was written that way, and the Acceptance mode was written for 2 32-bit address and mask register and the code is using &amp;nbsp;STD and XTD modes. The code works for capturing a single ARB-ID, but I don't seem to have it correct for multiple ARB-IDs. Also, the default MASKs is as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;STD 0x70007u&lt;/LI&gt;&lt;LI&gt;XTD 0x70000u&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What I&amp;nbsp;need to know is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why does the '7' appear twice in the STD mask?&lt;/LI&gt;&lt;LI&gt;For my specific example should STD be 0x3F003Fu and XTD 0x3F0000u?&lt;/LI&gt;&lt;LI&gt;Should my Identifier value, again for STD, &amp;nbsp;be (id&amp;lt;&amp;lt;21 |&amp;nbsp;id&amp;lt;&amp;lt;3?) or (id &amp;lt;&amp;lt; 21)?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 22:13:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-MSCAN-Identifier-Acceptance-Registers-to-capture/m-p/677023#M22404</guid>
      <dc:creator>can_dave</dc:creator>
      <dc:date>2017-06-28T22:13:41Z</dc:date>
    </item>
  </channel>
</rss>

