<?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: Inconsistency between the system AHB clock control and UART configuration of LPC112x in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Inconsistency-between-the-system-AHB-clock-control-and-UART/m-p/595898#M22902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dnsc4f@mst.edu on Sat Aug 15 05:01:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The IOCON registers are all incorrect in iocon_112x.h.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE:&amp;nbsp; (CHIP_IOCON_PIO_T)&amp;nbsp; enum must be rewritten to match the documentation.&amp;nbsp; If you are using the NXP driver, you will be setting the wrong IOCON configuration for UART1 and UART2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ie. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IOCON_PIO0_7 = (0x050 &amp;gt;&amp;gt; 2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IOCON_PIO0_7 = (0x0C8 &amp;gt;&amp;gt; 2),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:23:37 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:23:37Z</dc:date>
    <item>
      <title>Inconsistency between the system AHB clock control and UART configuration of LPC112x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Inconsistency-between-the-system-AHB-clock-control-and-UART/m-p/595896#M22900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tddian on Wed Jul 22 03:53:40 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the LPCXpresso1125 board, and there are some potential bugs/inconsistencies about the UART part and the system AHB clock control, both in the driver (lib_lpc_chip_112x) and the user manual (UM10839 for LPC112x, Rev. 1.0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly this board has three UART0/1/2, stated in page 4, line 1 in the user manual. Table 19 shows that the SYSAHBCLKCTRL supports up to bit 20, where bit 12, 19 and 20 are for enabling clock for UART0, 1 and 2 respectively. On the driver side, in chip.h line 98-100 the three UARTs are also accordingly defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand, in clock_112x.h file line 176-196 where the CHIP_SYSCON_CLOCK_T is defined, the bit 19 and 20 for SYSCON_CLOCK_UART1 and SYSCON_CLOCK_UART2 are missing, which is inconsistent against Table 19. Thereby with this driver library [u]the UART1 clock and UART2 clock are never reachable[/u].&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;More over, in uart_112x.c line 51-64, the function Chip_UART_Init() is supposed to initialize the given UARTx, but in line 53 it alsways enables the clock for UART0. That is, [u]the UART1 and UART2 will never be correctly initialized[/u] and can't be used at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This can be varified by replacing all the "LPC_UART0" to "LPC_UART1" in the example "periph_uart_rb".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Inconsistency-between-the-system-AHB-clock-control-and-UART/m-p/595896#M22900</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistency between the system AHB clock control and UART configuration of LPC112x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Inconsistency-between-the-system-AHB-clock-control-and-UART/m-p/595897#M22901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dnsc4f@mst.edu on Fri Aug 14 13:14:27 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed the same issues and corrected the driver to the documentation..., are you still having issues with UART1 and UART2?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Inconsistency-between-the-system-AHB-clock-control-and-UART/m-p/595897#M22901</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistency between the system AHB clock control and UART configuration of LPC112x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Inconsistency-between-the-system-AHB-clock-control-and-UART/m-p/595898#M22902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dnsc4f@mst.edu on Sat Aug 15 05:01:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The IOCON registers are all incorrect in iocon_112x.h.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE:&amp;nbsp; (CHIP_IOCON_PIO_T)&amp;nbsp; enum must be rewritten to match the documentation.&amp;nbsp; If you are using the NXP driver, you will be setting the wrong IOCON configuration for UART1 and UART2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ie. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IOCON_PIO0_7 = (0x050 &amp;gt;&amp;gt; 2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IOCON_PIO0_7 = (0x0C8 &amp;gt;&amp;gt; 2),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Inconsistency-between-the-system-AHB-clock-control-and-UART/m-p/595898#M22902</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:37Z</dc:date>
    </item>
  </channel>
</rss>

