<?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 issues on the M52233 DEMO board in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-issues-on-the-M52233-DEMO-board/m-p/166262#M5801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help.&amp;nbsp; I browsed around theM52233DEMO_sysinit.c file and added&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCF_GPIO_PUBPAR = 0 | MCF_GPIO_PUBPAR_UTXD1_UTXD1 | MCF_GPIO_PUBPAR_UTXD1_UTXD1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which now has the channel working.&amp;nbsp; In my opinion this kind of thing should have been included in the uart_init function, since if the peripheral is not ready for use after calling an initialization function, then it wasn't really initialized.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2009 00:52:25 GMT</pubDate>
    <dc:creator>Eqqman</dc:creator>
    <dc:date>2009-03-25T00:52:25Z</dc:date>
    <item>
      <title>UART issues on the M52233 DEMO board</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-issues-on-the-M52233-DEMO-board/m-p/166260#M5799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the M52233 DEMO board with Code Warrior version 7.1.&amp;nbsp; I haven't been able to get any output from the UART channel 1.&amp;nbsp; If I use code like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uart_init(1, SYSTEM_CLOCK_KHZ, kBaud9600);&lt;/P&gt;&lt;P&gt;uart_putchar(1, 'U');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect an output that I don't actually get.&amp;nbsp; If I use these same function calls with channel 0, I see the character come out on an oscilloscope.&amp;nbsp; Reading around other posts, I see people recommending making sure the GPIO setting for those pins are correct, but going by the schematic for the board the UART TX/RX pins don't seem to be multiplexed with any other IO pins (and I can't find a pin diagram in the 5223x manual).&amp;nbsp; I'm also not clear if I can leave the RTS/CTS pins floating for channel 1.&amp;nbsp; They aren't connected on channel 0 when I get it to work there, but the channel 0 pins are also jumpered to the DB9 connection.&amp;nbsp; I'm not sure what I should look at next.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 09:30:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-issues-on-the-M52233-DEMO-board/m-p/166260#M5799</guid>
      <dc:creator>Eqqman</dc:creator>
      <dc:date>2009-03-24T09:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: UART issues on the M52233 DEMO board</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-issues-on-the-M52233-DEMO-board/m-p/166261#M5800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All ports default to GPIO on reset.&amp;nbsp; You can check in the debugger, but you most likely need to set MCF_GPIO_PUBPAR to set UTXD1 and URXD1 to their primary (as opposed to GPIO) function.&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; MCF_GPIO_PUBPAR = MCF_GPIO_PUBPAR_URXD1_URXD1|MCF_GPIO_PUBPAR_UTXD1_UTXD1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See section 14.6.5.2 of the reference manual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is likely some piece of code&amp;nbsp;is doing this for you for UART0, but you have to do it for yourself for UART1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use just the TX/RX pins for UART1 if you want to -- just make sure you initialize it without hardware flow control (which I believe is the default in the UART control registers).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use UART1, you may need to use an external level shifter to convert the pins to RS232 levels, like: &lt;A href="http://www.sparkfun.com/commerce/product_info.php?products_id=133" rel="nofollow" target="_blank"&gt;http://www.sparkfun.com/commerce/product_info.php?products_id=133&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 10:38:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-issues-on-the-M52233-DEMO-board/m-p/166261#M5800</guid>
      <dc:creator>RichTestardi</dc:creator>
      <dc:date>2009-03-24T10:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: UART issues on the M52233 DEMO board</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-issues-on-the-M52233-DEMO-board/m-p/166262#M5801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help.&amp;nbsp; I browsed around theM52233DEMO_sysinit.c file and added&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCF_GPIO_PUBPAR = 0 | MCF_GPIO_PUBPAR_UTXD1_UTXD1 | MCF_GPIO_PUBPAR_UTXD1_UTXD1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which now has the channel working.&amp;nbsp; In my opinion this kind of thing should have been included in the uart_init function, since if the peripheral is not ready for use after calling an initialization function, then it wasn't really initialized.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 00:52:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/UART-issues-on-the-M52233-DEMO-board/m-p/166262#M5801</guid>
      <dc:creator>Eqqman</dc:creator>
      <dc:date>2009-03-25T00:52:25Z</dc:date>
    </item>
  </channel>
</rss>

