<?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: UART Help in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-Help/m-p/142371#M2572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Inside Codewarrior sysinit.c just change the following line inside mcf52235_uart_init()&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;* No parity, 5-bits per character&lt;BR /&gt;*/&lt;BR /&gt;MCF_UART0_UMR = (0&lt;BR /&gt;| MCF_UART_UMR_PM_NONE&lt;BR /&gt;| MCF_UART_UMR_BC_5 );&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#define MY_UART_BAUD 2400&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;* Calculate baud settings&lt;BR /&gt;*/&lt;BR /&gt;ubgs = (uint16)((SYSTEM_CLOCK*1000000)/(MY_UART_BAUD * 32));&lt;BR /&gt;&lt;BR /&gt;MCF_UART0_UBG1 = (uint8)((ubgs &amp;amp; 0xFF00) &amp;gt;&amp;gt; 8);&lt;BR /&gt;MCF_UART0_UBG2 = (uint8)(ubgs &amp;amp; 0x00FF);&lt;BR /&gt;&lt;BR /&gt;Finally don't use printf, call uart_putchar function...&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jan 2007 09:38:12 GMT</pubDate>
    <dc:creator>PaoloRenzo</dc:creator>
    <dc:date>2007-01-13T09:38:12Z</dc:date>
    <item>
      <title>UART Help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-Help/m-p/142370#M2571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a M52233DEMO and I want to connect to a device at 2400 bps 8N1 and send 5 bytes via UART.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone help me configure the uart and send this string?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rodrigo Meireles&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 01:37:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-Help/m-p/142370#M2571</guid>
      <dc:creator>Rodrigo</dc:creator>
      <dc:date>2007-01-11T01:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: UART Help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-Help/m-p/142371#M2572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Inside Codewarrior sysinit.c just change the following line inside mcf52235_uart_init()&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;* No parity, 5-bits per character&lt;BR /&gt;*/&lt;BR /&gt;MCF_UART0_UMR = (0&lt;BR /&gt;| MCF_UART_UMR_PM_NONE&lt;BR /&gt;| MCF_UART_UMR_BC_5 );&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#define MY_UART_BAUD 2400&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;* Calculate baud settings&lt;BR /&gt;*/&lt;BR /&gt;ubgs = (uint16)((SYSTEM_CLOCK*1000000)/(MY_UART_BAUD * 32));&lt;BR /&gt;&lt;BR /&gt;MCF_UART0_UBG1 = (uint8)((ubgs &amp;amp; 0xFF00) &amp;gt;&amp;gt; 8);&lt;BR /&gt;MCF_UART0_UBG2 = (uint8)(ubgs &amp;amp; 0x00FF);&lt;BR /&gt;&lt;BR /&gt;Finally don't use printf, call uart_putchar function...&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 09:38:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-Help/m-p/142371#M2572</guid>
      <dc:creator>PaoloRenzo</dc:creator>
      <dc:date>2007-01-13T09:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: UART Help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-Help/m-p/142372#M2573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks Paolo,&lt;BR /&gt;&lt;BR /&gt;I did what you said to change the uart to 2400 8N1. I tested if it worked using the windows hyper terminal but it only works using printf. The uart_putchar() function doesn't show anything in the hyper terminal.&lt;BR /&gt;&lt;BR /&gt;I am modifying the "hello world" program that came with the codewarrior using the M52233DEMO UART DEBUG project.&lt;BR /&gt;&lt;BR /&gt;I did like this:&lt;BR /&gt;&lt;BR /&gt;int main(){&lt;BR /&gt;&lt;BR /&gt;mcf52233_uart_init();&lt;BR /&gt;uart_putchar(0,'a');&lt;BR /&gt;fflush(stdout);&lt;BR /&gt;&lt;BR /&gt;return 0;&lt;BR /&gt;&lt;BR /&gt;}&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 22:12:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-Help/m-p/142372#M2573</guid>
      <dc:creator>Rodrigo</dc:creator>
      <dc:date>2007-01-17T22:12:28Z</dc:date>
    </item>
  </channel>
</rss>

