<?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 SC16IS762 Time-out problem in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/SC16IS762-Time-out-problem/m-p/477970#M3406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the SC16IS752 NXP reference in a specific project. To test this reference, I have made an evaluation board.&lt;/P&gt;&lt;P&gt;Right now, I test the interrupt mode of the component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, the RX FIFO trigger level is fixed to 8 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Software test is extremly simple:&lt;/P&gt;&lt;P&gt;I send 8 bytes from UART microcontroler (MPC5566) to SC16IS762.&lt;/P&gt;&lt;P&gt;When the 8 bytes have been received by SC16IS762, the component triggers an interrupt received by microcontroller.&lt;/P&gt;&lt;P&gt;This interrupt is acknoledged by microcontroller and after approximatively 2 ms in sequential software (out of interrupt), datas in SC16IS762 RX FIFO are got back by microcontroller by the SPI bus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the SC16IS762 signals a Time-out interrupt when I check the interrupt source (in IIR register) just before get back RX FIFO data in SC16IS762.&lt;/P&gt;&lt;P&gt;This time-out flag it seems to be raised because, in my case the time between interrupt and the checking of interrupt source is too long (approximatively 2 ms =&amp;gt; more than 4 character times after the last character is received).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in datasheet, the chapter on Time-out conditions is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="text-decoration: underline;"&gt;When the UART receives a number of characters and these data are not enough to set off the receive interrupt (because they do not reach the receive trigger level),&lt;/SPAN&gt; the UART will generate a time-out interrupt instead, 4 character times after the last character is received. The time-out counter will be reset at the center of each stop bit received or each time the receive FIFO is read."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my use case, I receive 8 characters and my RX trigger level is set to 8 characters, Thus the time-out interrupt shall not be trigged ! I have check the interrupt source (in IIR register) in my interrupt routine and the interrupt source is really RHR interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I don't understand why after 2 ms, the interrupt source change in spite of the RX trigger level is reach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2016 09:18:57 GMT</pubDate>
    <dc:creator>gillesbertolin</dc:creator>
    <dc:date>2016-03-15T09:18:57Z</dc:date>
    <item>
      <title>SC16IS762 Time-out problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/SC16IS762-Time-out-problem/m-p/477970#M3406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the SC16IS752 NXP reference in a specific project. To test this reference, I have made an evaluation board.&lt;/P&gt;&lt;P&gt;Right now, I test the interrupt mode of the component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, the RX FIFO trigger level is fixed to 8 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Software test is extremly simple:&lt;/P&gt;&lt;P&gt;I send 8 bytes from UART microcontroler (MPC5566) to SC16IS762.&lt;/P&gt;&lt;P&gt;When the 8 bytes have been received by SC16IS762, the component triggers an interrupt received by microcontroller.&lt;/P&gt;&lt;P&gt;This interrupt is acknoledged by microcontroller and after approximatively 2 ms in sequential software (out of interrupt), datas in SC16IS762 RX FIFO are got back by microcontroller by the SPI bus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the SC16IS762 signals a Time-out interrupt when I check the interrupt source (in IIR register) just before get back RX FIFO data in SC16IS762.&lt;/P&gt;&lt;P&gt;This time-out flag it seems to be raised because, in my case the time between interrupt and the checking of interrupt source is too long (approximatively 2 ms =&amp;gt; more than 4 character times after the last character is received).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in datasheet, the chapter on Time-out conditions is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="text-decoration: underline;"&gt;When the UART receives a number of characters and these data are not enough to set off the receive interrupt (because they do not reach the receive trigger level),&lt;/SPAN&gt; the UART will generate a time-out interrupt instead, 4 character times after the last character is received. The time-out counter will be reset at the center of each stop bit received or each time the receive FIFO is read."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my use case, I receive 8 characters and my RX trigger level is set to 8 characters, Thus the time-out interrupt shall not be trigged ! I have check the interrupt source (in IIR register) in my interrupt routine and the interrupt source is really RHR interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I don't understand why after 2 ms, the interrupt source change in spite of the RX trigger level is reach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 09:18:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/SC16IS762-Time-out-problem/m-p/477970#M3406</guid>
      <dc:creator>gillesbertolin</dc:creator>
      <dc:date>2016-03-15T09:18:57Z</dc:date>
    </item>
  </channel>
</rss>

