<?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: S12X FIFO RXF flag</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-FIFO-RXF-flag/m-p/854527#M16134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;As soo&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;n as you reset RXF, next&amp;nbsp;RX buffer&amp;nbsp;from FIFO is mapped to the memory map,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;RXF&amp;nbsp;sets back to 1 if mapped buffer is full&lt;/SPAN&gt;"&lt;/STRONG&gt;, to be clear:&lt;/P&gt;&lt;P&gt;1. "Rx buffer" means one(the next) of the Rx0/Rx1/Rx2/Rx3? (See my picture above)&lt;/P&gt;&lt;P&gt;2. "Memory map" means RxFG?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reset of your statement make sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2019 19:57:52 GMT</pubDate>
    <dc:creator>ruicui</dc:creator>
    <dc:date>2019-02-12T19:57:52Z</dc:date>
    <item>
      <title>S12X FIFO RXF flag</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-FIFO-RXF-flag/m-p/854525#M16132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear sir/madam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For S12X, I notice the MSCAN has five receive buffer. I am wondering how the queue works in details. For example: Say I am using polling method. When I see RXF is set, I retrieve the data from RxFG and reset RXF flag to 0. I assume this will only read one message, so three message left inside(if you don't consider RxBG), now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1. &lt;STRONG&gt;Before another new message arrived&lt;/STRONG&gt;, does RXF still keeps as 0?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. By reading the "MC9S12XEP100" datasheet, it seems the answer is "Yes". Then if no more new message arrives, i can't retrieve the reset three messages because RXF = 0. Then the queue seems losing it's purpose and it can't handle the receive data burst.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3. If answer is "No", does the next storage message get pushed into the RxFG and set RXF = 1? This means if I want to read all the storage data, I have to poll multiple times or loop though RxFG until RXF is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please answer my (1)(2)(3) accordingly, this should clear up my misunderstandings.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71939iA02204CA649E2883/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 19:59:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-FIFO-RXF-flag/m-p/854525#M16132</guid>
      <dc:creator>ruicui</dc:creator>
      <dc:date>2019-02-11T19:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: S12X FIFO RXF flag</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-FIFO-RXF-flag/m-p/854526#M16133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;I retrieve the data from RxFG and reset RXF flag to 0. I assume this will only read one message, so three message left inside(if you don't consider RxBG), now:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as you reset RXF, next&amp;nbsp;RX buffer&amp;nbsp;from FIFO is mapped to the memory map. RXF&amp;nbsp;sets back to 1 if mapped buffer is full. RXF is not like any other flags, which you may prefer to clear at top or&amp;nbsp;at bottom of your ISR. No, you need to read RX buffer, and only then reset RXF, not opposite, which may lead to data loss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This means if I want to read all the storage data, I have to poll multiple times or loop though RxFG until RXF is 0.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Yes if polling. Using interrupts both ways are good: a) Read data, reset RXF and exit from ISR, or b) do {read_data(); clear_rxf();} while (rxf);.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 07:45:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-FIFO-RXF-flag/m-p/854526#M16133</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-02-12T07:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: S12X FIFO RXF flag</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-FIFO-RXF-flag/m-p/854527#M16134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;As soo&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;n as you reset RXF, next&amp;nbsp;RX buffer&amp;nbsp;from FIFO is mapped to the memory map,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;RXF&amp;nbsp;sets back to 1 if mapped buffer is full&lt;/SPAN&gt;"&lt;/STRONG&gt;, to be clear:&lt;/P&gt;&lt;P&gt;1. "Rx buffer" means one(the next) of the Rx0/Rx1/Rx2/Rx3? (See my picture above)&lt;/P&gt;&lt;P&gt;2. "Memory map" means RxFG?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reset of your statement make sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 19:57:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-FIFO-RXF-flag/m-p/854527#M16134</guid>
      <dc:creator>ruicui</dc:creator>
      <dc:date>2019-02-12T19:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: S12X FIFO RXF flag</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-FIFO-RXF-flag/m-p/854528#M16135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. yes&lt;/P&gt;&lt;P&gt;2. memory map is what is accessible to CPU, MSCANn registers are at one addresses, SCIn registers at different ones.&amp;nbsp;RxFG is one of 5 MSCAN RX buffers mapped&amp;nbsp;to&amp;nbsp;address &amp;amp;CANxRXFG. (RxN aren't copied to RxFG, they are mapped to address space, something like memory chip select circuits with only one chip(buffer) driving data bus pins). All other non-RxFG buffers have no dedicated addresses in the memory map and are not readable to CPU until you&amp;nbsp;let MSCAN map next non empty buffer to &amp;amp;CANxRXFG by&amp;nbsp;clearing RXF flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 07:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-FIFO-RXF-flag/m-p/854528#M16135</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-02-13T07:24:46Z</dc:date>
    </item>
  </channel>
</rss>

