<?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 CTI on LPC55S06 for Modbus in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CTI-on-LPC55S06-for-Modbus/m-p/2321916#M59414</link>
    <description>&lt;P&gt;Hi NXP Community,&lt;/P&gt;&lt;P&gt;I am implementing a Modbus RTU Slave on the LPC55S06. According to the Modbus specification, I need to detect a 3.5 character silent interval to signal the End of Frame (EOF).&lt;/P&gt;&lt;P&gt;I want to avoid generating an interrupt for every received byte to reset a software timer, as this is too CPU-intensive at high baud rates. I noticed the Flexcomm USART on this device does not have a dedicated "Character Timeout Interrupt" (CTI) that can be set to a specific character-width threshold (like 3.5).&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Is there a hidden hardware feature in the Flexcomm USART or FIFO to trigger an interrupt after a programmable period of RX inactivity?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If not, what is the recommended "low-overhead" way to use DMA + CTIMER to detect the 3.5 char gap?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any example code or application notes for the LPC55xx family regarding this would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Feb 2026 12:56:44 GMT</pubDate>
    <dc:creator>smitz96</dc:creator>
    <dc:date>2026-02-24T12:56:44Z</dc:date>
    <item>
      <title>CTI on LPC55S06 for Modbus</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CTI-on-LPC55S06-for-Modbus/m-p/2321916#M59414</link>
      <description>&lt;P&gt;Hi NXP Community,&lt;/P&gt;&lt;P&gt;I am implementing a Modbus RTU Slave on the LPC55S06. According to the Modbus specification, I need to detect a 3.5 character silent interval to signal the End of Frame (EOF).&lt;/P&gt;&lt;P&gt;I want to avoid generating an interrupt for every received byte to reset a software timer, as this is too CPU-intensive at high baud rates. I noticed the Flexcomm USART on this device does not have a dedicated "Character Timeout Interrupt" (CTI) that can be set to a specific character-width threshold (like 3.5).&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Is there a hidden hardware feature in the Flexcomm USART or FIFO to trigger an interrupt after a programmable period of RX inactivity?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If not, what is the recommended "low-overhead" way to use DMA + CTIMER to detect the 3.5 char gap?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any example code or application notes for the LPC55xx family regarding this would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 12:56:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CTI-on-LPC55S06-for-Modbus/m-p/2321916#M59414</guid>
      <dc:creator>smitz96</dc:creator>
      <dc:date>2026-02-24T12:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: CTI on LPC55S06 for Modbus</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CTI-on-LPC55S06-for-Modbus/m-p/2326081#M59431</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260168"&gt;@smitz96&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No — the Flexcomm USART on LPC55S06 does not contain any hardware "character timeout" or programmable RX‑idle interrupt.&lt;/P&gt;
&lt;P&gt;I think you can use&amp;nbsp;USART + DMA + CTIMER&amp;nbsp; for RX‑idle detection.&lt;/P&gt;
&lt;P&gt;USART RX DMA continuously moves data from FIFO into a circular buffer.&lt;/P&gt;
&lt;P&gt;CTIMER&amp;nbsp; generates interrupt when no data arrives.&lt;/P&gt;
&lt;DIV&gt;You configure a timer for 3.5 character times.&lt;/DIV&gt;
&lt;DIV&gt;On every RX DMA event, you restart the CTIMER&lt;BR /&gt;If timer expires, it means:&lt;BR /&gt;No bytes for 3.5 chars&amp;nbsp; &amp;nbsp;Modbus frame end detected (EOF).&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;BR&lt;/DIV&gt;
&lt;DIV&gt;Harry&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Mar 2026 08:57:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CTI-on-LPC55S06-for-Modbus/m-p/2326081#M59431</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-04T08:57:43Z</dc:date>
    </item>
  </channel>
</rss>

