<?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>LPC Microcontrollers中的主题 LPC Open 1.19 LPC824 possible problems</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-1-19-LPC824-possible-problems/m-p/624546#M24523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the lpcopen_2_19_lpcxpresso_nxp_lpcxpresso_824 zip, in the uart_8xx.h, the UART_CFG_TXPOL should be 23 if the user manual is correct!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define UART_CFG_RXPOL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x01 &amp;lt;&amp;lt; 22)&amp;nbsp;&amp;nbsp;&amp;nbsp; /*!&amp;lt; Receive data polarity */&lt;BR /&gt;#define UART_CFG_TXPOL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x01 &amp;lt;&amp;lt; 22)&amp;nbsp;&amp;nbsp;&amp;nbsp; /*!&amp;lt; Transmit data polarity */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the gpio_8xx.h file there are three inline functions which take a byte bit parameter value and do not convert the bit to a byte. I would expect a 32 bit mask as the parameter or a bit to mask conversion for a single bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATIC INLINE void Chip_GPIO_SetPortDIROutput(LPC_GPIO_T *pGPIO, uint8_t port, uint8_t pinMask)&lt;BR /&gt;{&lt;BR /&gt;#ifdef CHIP_LPC82X&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pGPIO-&amp;gt;DIRSET[port] = pinMask;&lt;/P&gt;&lt;P&gt;// ?!? Should be maybe uint32_t pinMask or (1L&amp;lt;&amp;lt;pinMask)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATIC INLINE void Chip_GPIO_SetPortDIRInput(LPC_GPIO_T *pGPIO, uint8_t port, uint8_t pinMask)&lt;BR /&gt;{&lt;BR /&gt;#ifdef CHIP_LPC82X&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pGPIO-&amp;gt;DIRCLR[port] = pinMask;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATIC INLINE void Chip_GPIO_TogglePortDIR(LPC_GPIO_T *pGPIO, uint8_t port, uint8_t pinMask)&lt;BR /&gt;{&lt;BR /&gt;#ifdef CHIP_LPC82X&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pGPIO-&amp;gt;DIRNOT[port] = pinMask;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2016 07:36:12 GMT</pubDate>
    <dc:creator>kiryat8</dc:creator>
    <dc:date>2016-11-02T07:36:12Z</dc:date>
    <item>
      <title>LPC Open 1.19 LPC824 possible problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-1-19-LPC824-possible-problems/m-p/624546#M24523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the lpcopen_2_19_lpcxpresso_nxp_lpcxpresso_824 zip, in the uart_8xx.h, the UART_CFG_TXPOL should be 23 if the user manual is correct!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define UART_CFG_RXPOL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x01 &amp;lt;&amp;lt; 22)&amp;nbsp;&amp;nbsp;&amp;nbsp; /*!&amp;lt; Receive data polarity */&lt;BR /&gt;#define UART_CFG_TXPOL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x01 &amp;lt;&amp;lt; 22)&amp;nbsp;&amp;nbsp;&amp;nbsp; /*!&amp;lt; Transmit data polarity */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the gpio_8xx.h file there are three inline functions which take a byte bit parameter value and do not convert the bit to a byte. I would expect a 32 bit mask as the parameter or a bit to mask conversion for a single bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATIC INLINE void Chip_GPIO_SetPortDIROutput(LPC_GPIO_T *pGPIO, uint8_t port, uint8_t pinMask)&lt;BR /&gt;{&lt;BR /&gt;#ifdef CHIP_LPC82X&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pGPIO-&amp;gt;DIRSET[port] = pinMask;&lt;/P&gt;&lt;P&gt;// ?!? Should be maybe uint32_t pinMask or (1L&amp;lt;&amp;lt;pinMask)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATIC INLINE void Chip_GPIO_SetPortDIRInput(LPC_GPIO_T *pGPIO, uint8_t port, uint8_t pinMask)&lt;BR /&gt;{&lt;BR /&gt;#ifdef CHIP_LPC82X&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pGPIO-&amp;gt;DIRCLR[port] = pinMask;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATIC INLINE void Chip_GPIO_TogglePortDIR(LPC_GPIO_T *pGPIO, uint8_t port, uint8_t pinMask)&lt;BR /&gt;{&lt;BR /&gt;#ifdef CHIP_LPC82X&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pGPIO-&amp;gt;DIRNOT[port] = pinMask;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 07:36:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-1-19-LPC824-possible-problems/m-p/624546#M24523</guid>
      <dc:creator>kiryat8</dc:creator>
      <dc:date>2016-11-02T07:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Open 1.19 LPC824 possible problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-1-19-LPC824-possible-problems/m-p/624547#M24524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I forwarded your post to our &lt;SPAN&gt;LPCOpen&lt;/SPAN&gt; team.&lt;/P&gt;&lt;P&gt;Thank you for posting.&lt;/P&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;From LPCOpen team:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Yes this is a typo, that will get fixed in an LPC8xx release next week.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 14:24:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-1-19-LPC824-possible-problems/m-p/624547#M24524</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-11-03T14:24:08Z</dc:date>
    </item>
  </channel>
</rss>

