<?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 Re: CAN PSR register - RX Flag Stuck After FIFO Count Is Update in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2107632#M58271</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1917"&gt;@harry&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You're absolutely right — I double-checked the &lt;STRONG&gt;PSR register&lt;/STRONG&gt; and realized I &lt;STRONG&gt;misinterpreted the status&lt;/STRONG&gt; earlier.&lt;/P&gt;&lt;P&gt;The flag I was referring to is actually the &lt;STRONG&gt;ACT[4:3] bits&lt;/STRONG&gt; (Activity field).&lt;BR /&gt;In my case, it was showing value 0x2, which indicates &lt;STRONG&gt;"receiver active"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Chellapandi N&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 05:00:03 GMT</pubDate>
    <dc:creator>chellapandi_1603</dc:creator>
    <dc:date>2025-05-30T05:00:03Z</dc:date>
    <item>
      <title>CAN PSR register - RX Flag Stuck After FIFO Count Is Update</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2104882#M58235</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm working on a CAN implementation with &lt;STRONG&gt;external time stamping in microseconds&lt;/STRONG&gt; and using a &lt;STRONG&gt;16-bit timer&lt;/STRONG&gt; for the timestamp source. Here's the setup and issue I'm encountering:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H4&gt;System Setup:&lt;/H4&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;CAN controller with &lt;STRONG&gt;external timestamp source&lt;/STRONG&gt; (16-bit, in µs).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;On &lt;STRONG&gt;every received CAN frame&lt;/STRONG&gt;, I read the &lt;STRONG&gt;external timestamp&lt;/STRONG&gt; and combine it with the &lt;STRONG&gt;system time&lt;/STRONG&gt; to get a full timestamp.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;I handle &lt;STRONG&gt;timer overflow&lt;/STRONG&gt; using a &lt;STRONG&gt;timer wrap callback&lt;/STRONG&gt;, where I log the system time when the 16-bit timer wraps.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;FIFO mode is enabled, and I track frames using RXF0S . F0GI and F0FL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H4&gt;Observations&lt;BR /&gt;&lt;BR /&gt;&lt;/H4&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;I check PSR.RX , FIFO count and index in timer wrap call back , FIFO count Is updated but PSR . RX Flag Is Not Clear.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;There is &lt;STRONG&gt;no FIFO overrun&lt;/STRONG&gt; (RF0L flag is not set).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;System is not losing frames, and FIFO seems to update correctly.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;However, PSR.RX doesn't clear even though no actual frame is being received at that moment.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H4&gt;My Questions:&lt;BR /&gt;&lt;BR /&gt;&lt;/H4&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Under what exact conditions and time does&amp;nbsp;&lt;STRONG&gt;PSR.RX&lt;/STRONG&gt; clears?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is it safe to rely on PSR.RX to determine whether a frame is being received?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H4&gt;Additional Info:&lt;/H4&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The goal is to &lt;STRONG&gt;synchronise CAN frame timestamps&lt;/STRONG&gt; to a system clock using the external µs timer and timer wrap handling.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;I read:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;FIFO count (F0FL)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;FIFO index (F0GI)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;PSR register&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Will use those registers to determine the timing of old and current frames.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 27 May 2025 06:15:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2104882#M58235</guid>
      <dc:creator>chellapandi_1603</dc:creator>
      <dc:date>2025-05-27T06:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: CAN PSR register - RX Flag Stuck After FIFO Count Is Update</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2105731#M58245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250930"&gt;@chellapandi_1603&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask which chip you are using?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 02:56:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2105731#M58245</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-05-28T02:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: CAN PSR register - RX Flag Stuck After FIFO Count Is Update</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2105765#M58246</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1917"&gt;@harry&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the response!&lt;/P&gt;&lt;P&gt;I'm using the &lt;STRONG&gt;LPC55S16&lt;/STRONG&gt; microcontroller, and the CAN interface is configured with the &lt;STRONG&gt;MCAN peripheral&lt;/STRONG&gt; from the NXP SDK V2.15.000.&lt;/P&gt;&lt;P&gt;I’ve enabled &lt;STRONG&gt;external timestamping in microseconds&lt;/STRONG&gt; (16-bit timer), and I'm syncing it with system time on frame receive and timer overflow. The issue I'm seeing is with the &lt;STRONG&gt;PSR.RX&lt;/STRONG&gt; flag staying high even after FIFO count is increased.&lt;/P&gt;&lt;P&gt;Let me know if you need more details about my CAN setup or how I’m handling interrupts and timestamps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;chellapandi N&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 03:55:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2105765#M58246</guid>
      <dc:creator>chellapandi_1603</dc:creator>
      <dc:date>2025-05-28T03:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: CAN PSR register - RX Flag Stuck After FIFO Count Is Update</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2106853#M58260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250930"&gt;@chellapandi_1603&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, i checked the&amp;nbsp;Protocol status register(RSR) in&amp;nbsp;LPC55s1x RM.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_1-1748500118353.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340361i26DADD4E15728AA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_1-1748500118353.png" alt="Harry_Zhang_1-1748500118353.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_2-1748500141738.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340362i558FD5126B4C37B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_2-1748500141738.png" alt="Harry_Zhang_2-1748500141738.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But i didn't find the RX bit.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 06:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2106853#M58260</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-05-29T06:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: CAN PSR register - RX Flag Stuck After FIFO Count Is Update</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2107632#M58271</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1917"&gt;@harry&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You're absolutely right — I double-checked the &lt;STRONG&gt;PSR register&lt;/STRONG&gt; and realized I &lt;STRONG&gt;misinterpreted the status&lt;/STRONG&gt; earlier.&lt;/P&gt;&lt;P&gt;The flag I was referring to is actually the &lt;STRONG&gt;ACT[4:3] bits&lt;/STRONG&gt; (Activity field).&lt;BR /&gt;In my case, it was showing value 0x2, which indicates &lt;STRONG&gt;"receiver active"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Chellapandi N&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 05:00:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2107632#M58271</guid>
      <dc:creator>chellapandi_1603</dc:creator>
      <dc:date>2025-05-30T05:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: CAN PSR register - RX Flag Stuck After FIFO Count Is Update</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2112754#M58334</link>
      <description>&lt;P&gt;Just checking if anyone has insights on the &lt;STRONG&gt;ACT bits in PSR&lt;/STRONG&gt; and how reliable they are for detecting CAN reception status, especially in relation to FIFO and timestamping logic. Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 09:45:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-PSR-register-RX-Flag-Stuck-After-FIFO-Count-Is-Update/m-p/2112754#M58334</guid>
      <dc:creator>chellapandi_1603</dc:creator>
      <dc:date>2025-06-09T09:45:11Z</dc:date>
    </item>
  </channel>
</rss>

