<?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 Can't receive 0x1C when using AS in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-0x1C-when-using-AS/m-p/471235#M28484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing using an asinchronical serial component created with PE. I am trying to handle an EPSON printer using a protocol called Extended Protocol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a RS232 interface (termite), I have checked that when I asking the printer (using a Printer Terminal) for date and time, the printer answers the followong frame:&lt;/P&gt;&lt;P&gt;[06][02]•[00][00][1C]À€[1C][1C][00][00][1C][1C]110316[1C]121550[03]04DC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to receive this data using my KE02 MCU, (using the routine AS1_OnRxChar), every byte are saved in the buffer except the 0x1C. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a reason why the AS1_OnRxChar doesn't detect this byte?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The routine I am implementing is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void AS1_OnRxChar(void){&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS1_TComData ch;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if(AS1_RecvChar(&amp;amp;ch) == ERR_OK){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; BUFFER_AS[cont_AS] = ch;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; cont_AS++;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 15:43:57 GMT</pubDate>
    <dc:creator>juanignaciotroi</dc:creator>
    <dc:date>2016-03-11T15:43:57Z</dc:date>
    <item>
      <title>Can't receive 0x1C when using AS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-0x1C-when-using-AS/m-p/471235#M28484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing using an asinchronical serial component created with PE. I am trying to handle an EPSON printer using a protocol called Extended Protocol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a RS232 interface (termite), I have checked that when I asking the printer (using a Printer Terminal) for date and time, the printer answers the followong frame:&lt;/P&gt;&lt;P&gt;[06][02]•[00][00][1C]À€[1C][1C][00][00][1C][1C]110316[1C]121550[03]04DC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to receive this data using my KE02 MCU, (using the routine AS1_OnRxChar), every byte are saved in the buffer except the 0x1C. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a reason why the AS1_OnRxChar doesn't detect this byte?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The routine I am implementing is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void AS1_OnRxChar(void){&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS1_TComData ch;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if(AS1_RecvChar(&amp;amp;ch) == ERR_OK){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; BUFFER_AS[cont_AS] = ch;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; cont_AS++;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:43:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-0x1C-when-using-AS/m-p/471235#M28484</guid>
      <dc:creator>juanignaciotroi</dc:creator>
      <dc:date>2016-03-11T15:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't receive 0x1C when using AS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-0x1C-when-using-AS/m-p/471236#M28485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have test on my FRDM-KE02Z board, using KDS3.1.0 with Processor Expert3.0.2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Version of KDS Processor Expert.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23237iE12CD8A6CE739ED4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Version of KDS Processor Expert.jpg" alt="Version of KDS Processor Expert.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can receive the 0x1C and send it back to &lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;Virtual terminal port of OpenSDA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="AS1_OnRxChar.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23313iCFF48EF12FCC4C62/image-size/large?v=v2&amp;amp;px=999" role="button" title="AS1_OnRxChar.jpg" alt="AS1_OnRxChar.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;Would you please send me the version of your Processor Expert?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;And I am a little confused about the&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt; &lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;STRONG&gt;À€&lt;/STRONG&gt; in &lt;/SPAN&gt;&lt;/SPAN&gt;frame " [06][02]•[00][00][1C]À€[1C][1C][00][00][1C][1C]110316[1C]121550[03]04DC "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can't found it in ASCII table, so I haven't test your frame on my board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 07:41:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-0x1C-when-using-AS/m-p/471236#M28485</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-03-16T07:41:56Z</dc:date>
    </item>
  </channel>
</rss>

