<?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>Kinetis Microcontrollers中的主题 How will be the integers sent though UART</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-will-be-the-integers-sent-though-UART/m-p/492773#M30453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I have to write and read integers from the UART peripheral.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;In what format does the UART transmits the integer? Is it in ascii? Even if I send characters as numbers (0 to 255) how is it transmitted?&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;Do I need to internally convert the data read from UART from ascii to int ?&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I am confused over the answers from different blog. Could anyone suggest a link or provide answer. &lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I tried different things like programmed the board to continuously transmit the data. If I transmit the character from the board's UART to the putty, it displays in the putty as a character but it won't display in my c code written in linux. So what should be the format specifier?&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Feb 2016 16:04:16 GMT</pubDate>
    <dc:creator>ddpd</dc:creator>
    <dc:date>2016-02-27T16:04:16Z</dc:date>
    <item>
      <title>How will be the integers sent though UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-will-be-the-integers-sent-though-UART/m-p/492773#M30453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I have to write and read integers from the UART peripheral.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;In what format does the UART transmits the integer? Is it in ascii? Even if I send characters as numbers (0 to 255) how is it transmitted?&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;Do I need to internally convert the data read from UART from ascii to int ?&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I am confused over the answers from different blog. Could anyone suggest a link or provide answer. &lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I tried different things like programmed the board to continuously transmit the data. If I transmit the character from the board's UART to the putty, it displays in the putty as a character but it won't display in my c code written in linux. So what should be the format specifier?&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Feb 2016 16:04:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-will-be-the-integers-sent-though-UART/m-p/492773#M30453</guid>
      <dc:creator>ddpd</dc:creator>
      <dc:date>2016-02-27T16:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How will be the integers sent though UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-will-be-the-integers-sent-though-UART/m-p/492774#M30454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;as you know the UART interface has defined protocol, which consists of:&lt;/P&gt;&lt;P&gt;1. START bit&lt;/P&gt;&lt;P&gt;2.Data array - usually 8-bit (one byte), but could be 9-bit also,&lt;/P&gt;&lt;P&gt;3.Parity bit&lt;/P&gt;&lt;P&gt;4.STOP bit.&lt;/P&gt;&lt;P&gt;So the information is covered in the Data&amp;nbsp; = one byte. It is up to you what these data will represent. It can be "read" as ASCII character, as hex format number (0x..), as decimal number (0 - 255) or something else.&lt;/P&gt;&lt;P&gt;So what is placed into UART Tx buffer, the same will be received from the UART RX buffer on opposite site. The final interpretation depends on the system using the transferred data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Stano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 08:40:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-will-be-the-integers-sent-though-UART/m-p/492774#M30454</guid>
      <dc:creator>Stano</dc:creator>
      <dc:date>2016-02-29T08:40:14Z</dc:date>
    </item>
  </channel>
</rss>

