<?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>S12 / MagniV Microcontrollers中的主题 Re: getting CAN Message ID with S12XF512</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216250#M9029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inside your CANRX ISR, are you clearing RXF flag before reading CANRXIDR* registers or after? RXF must be cleared only after you finished&amp;nbsp;reading all important data from RX buffer. RX buffer is paged and&amp;nbsp;one of 5 message buffers is&amp;nbsp;readable only while&amp;nbsp;RXF flag is set. Clearing RXF removes current full RX buffer from the memory map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TX buffer is also paged, but visibility of specific&amp;nbsp;TX buffer in the memory map is manually controlled using CANTBSEL register. That's why you may see CANTXIDR&amp;nbsp;of last sent message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2009 17:49:05 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2009-09-14T17:49:05Z</dc:date>
    <item>
      <title>getting CAN Message ID with S12XF512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216249#M9028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i want to extract the ID of an incoming CAN message inside an ISR. I'm able to send and recieve messages, extract the message data, and send messages with own ID's. The MSCAN identifier Acceptance Filters get the right ID hits, but when i read out the Identifier Registers (IDR 0- 3) i get 0x000 after a reset. If I sent a message before receiving, the message ID of the sent message is still in the IDR registers.&lt;/P&gt;&lt;P&gt;But how do I get the message ID of the incoming message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hints would be greatly appreciated, as I didn't find any example code on the internet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 16:53:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216249#M9028</guid>
      <dc:creator>eCARus</dc:creator>
      <dc:date>2009-09-14T16:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: getting CAN Message ID with S12XF512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216250#M9029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inside your CANRX ISR, are you clearing RXF flag before reading CANRXIDR* registers or after? RXF must be cleared only after you finished&amp;nbsp;reading all important data from RX buffer. RX buffer is paged and&amp;nbsp;one of 5 message buffers is&amp;nbsp;readable only while&amp;nbsp;RXF flag is set. Clearing RXF removes current full RX buffer from the memory map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TX buffer is also paged, but visibility of specific&amp;nbsp;TX buffer in the memory map is manually controlled using CANTBSEL register. That's why you may see CANTXIDR&amp;nbsp;of last sent message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 17:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216250#M9029</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-09-14T17:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: getting CAN Message ID with S12XF512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216251#M9030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kef,&lt;/P&gt;&lt;P&gt;thanks for the fast reply. I took a Freescale code example and modified it. The clearing of the RXF is the last statement before return, so i read the IDR's and DSR' before i clear the flag. I'm wondering why the RX buffer isn't overwritten by the new incoming message ID.&lt;/P&gt;&lt;P&gt;I attached the two important c files which include the CANRxisr and the vfnCAN_ReceivedFrame().&lt;/P&gt;&lt;P&gt;Perhaps you could give me a short code example how to read out the ID if the way i'm doing it in the code is wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks so far for your help,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/16BITCOMM/7453_1_interrupts.c" rel="nofollow" target="_self"&gt;interrupts.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/16BITCOMM/7453_2_CAN_driver.c" rel="nofollow" target="_self"&gt;CAN_driver.c&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-09-14&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;11:25 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 18:57:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216251#M9030</guid>
      <dc:creator>eCARus</dc:creator>
      <dc:date>2009-09-14T18:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: getting CAN Message ID with S12XF512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216252#M9031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In vfnCAN_ReceivedFrame(). you have this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *id=CAN0&lt;FONT color="#ff0000"&gt;&lt;U&gt;TX&lt;/U&gt;&lt;/FONT&gt;IDR0&amp;lt;&amp;lt;3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *id|=CAN0&lt;FONT color="#ff0000"&gt;&lt;U&gt;TX&lt;/U&gt;&lt;/FONT&gt;IDR1&amp;gt;&amp;gt;5;&lt;/P&gt;&lt;P&gt;You are trying to read TX IDRs here, not RX. Is problem solved?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 19:47:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216252#M9031</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-09-14T19:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: getting CAN Message ID with S12XF512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216253#M9032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey kef,&lt;/P&gt;&lt;P&gt;big thanks from all the eCARus Team and especially from me, i tried to find the bug since last wednesday.&lt;/P&gt;&lt;P&gt;thanks a lot and take care&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 19:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216253#M9032</guid>
      <dc:creator>eCARus</dc:creator>
      <dc:date>2009-09-14T19:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: getting CAN Message ID with S12XF512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216254#M9033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;:smileyhappy: . Good Luck&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 21:00:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/getting-CAN-Message-ID-with-S12XF512/m-p/216254#M9033</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-09-14T21:00:40Z</dc:date>
    </item>
  </channel>
</rss>

