<?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: LPC54018 USART Flexcomm4 non 3.3V logic in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1234863#M43996</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt; ...so I think first you need confirm the signal logic from HART module.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I definitely agree.&lt;/P&gt;&lt;P&gt;First check the datasheet of the module, if the signal levels are compatible with the MCU. Perhaps the HART module is 1,8V logic ...&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 09:33:05 GMT</pubDate>
    <dc:creator>frank_m</dc:creator>
    <dc:date>2021-02-23T09:33:05Z</dc:date>
    <item>
      <title>LPC54018 USART Flexcomm4 non 3.3V logic</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1234560#M43994</link>
      <description>&lt;P&gt;I'm using the LPC54018 IOT Module along with the mini base board. I'm currently trying to initiate a UART communication at 1200 baud rate for communication with an external HART modem. For some reason, when I connect P3_26 (port 3 pin 26) to the external HART modem, the GPIO logic is not 0-3.3V, but some lesser peak to peak voltage. When I disconnect this pin from the external device, the oscilloscope shows 0-3.3V as normal. So the issue seems to be coming from the peripheral on the LPC54018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be the issue that is causing this? The TX seems to be working fine. The LPC is able to send out 0-3.3V uart signals and my external device receives it correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The green is the uart signal on the RXD pin (port 3 pin 26). The yellow is the modem's HART signal which represents the data being sent, and the green is the Modem's demodulator which converts that signal to uart. The blue is just a detection signal that is HIGH whenever there is a HART signal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 19:23:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1234560#M43994</guid>
      <dc:creator>ahmed_mostafa</dc:creator>
      <dc:date>2021-02-22T19:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 USART Flexcomm4 non 3.3V logic</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1234844#M43995</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;P3_26 is the RX of UART, so I think first you need confirm the signal logic from HART module.&lt;/P&gt;
&lt;P&gt;And what about the blue signal meaning?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 09:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1234844#M43995</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-02-23T09:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 USART Flexcomm4 non 3.3V logic</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1234863#M43996</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; ...so I think first you need confirm the signal logic from HART module.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I definitely agree.&lt;/P&gt;&lt;P&gt;First check the datasheet of the module, if the signal levels are compatible with the MCU. Perhaps the HART module is 1,8V logic ...&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 09:33:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1234863#M43996</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-02-23T09:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 USART Flexcomm4 non 3.3V logic</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1235093#M44000</link>
      <description>&lt;P&gt;I now tried a different USART peripheral (P3_21) and also removed the external HART module, and I'm still seeing that the USART communication is not at 0-3.3V. I believe the way I'm initializing the USART peripheral may not be accurate.Can you please confirm if I am initializing my Flexomm4 peripheral properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm starting with the "lpc5018iotmodule_usart_interrupt_transfer" example from the SDK and making modifications to it.&lt;/P&gt;&lt;P&gt;1. Initialized Flexcomm4 as USART in pinmux.c : I inserted these two lines in "BOARD_InitPins():&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;const uint32_t port3_pin26_config = (&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_FUNC3 | /* Pin is configured as FC4_RXD_SDA_MOSI */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_MODE_INACT | /* No addition pin function */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_INV_DI | /* Input function is not inverted */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_DIGITAL_EN | /* Enables digital function */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_INPFILT_OFF | /* Input filter disabled */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_SLEW_STANDARD | /* Standard mode, output slew rate control is enabled */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_OPENDRAIN_DI /* Open drain is disabled */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IOCON_PinMuxSet(IOCON, PORT3_IDX, PIN26_IDX, port3_pin26_config); /* PORT3 PIN26 */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;const uint32_t port3_pin27_config = (&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_FUNC3 | /* Pin is configured as FC4_TXD_SCL_MISO */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_MODE_INACT | /* No addition pin function */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_INV_DI | /* Input function is not inverted */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_DIGITAL_EN | /* Enables digital function */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_INPFILT_OFF | /* Input filter disabled */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_SLEW_STANDARD | /* Standard mode, output slew rate control is enabled */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOCON_PIO_OPENDRAIN_DI /* Open drain is disabled */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IOCON_PinMuxSet(IOCON, PORT3_IDX, PIN27_IDX, port3_pin27_config); /* PORT3 PIN27 */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2: In board.h I defined the following variables (basically changed the default "0s" to "4"):&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;#define BOARD_DEBUG_UART_BASEADDR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (uint32_t) USART4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_DEBUG_UART_INSTANCE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4U&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_DEBUG_UART_CLK_FREQ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_GetFlexCommClkFreq(0U)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_DEBUG_UART_CLK_ATTACH&amp;nbsp;&amp;nbsp; kFRO12M_to_FLEXCOMM4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_DEBUG_UART_RST&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kFC4_RST_SHIFT_RSTn&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_UART_IRQ_HANDLER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCOMM4_IRQHandler&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_UART_IRQ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCOMM4_IRQn&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT size="4"&gt;3: In usart_interrupt_transfer.c: I made the following definitions&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT size="4"&gt;#define DEMO_USART USART4&lt;BR /&gt;#define DEMO_USART_CLK_FREQ CLOCK_GetFlexCommClkFreq(4U)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT size="4"&gt;4:&lt;/FONT&gt; In main() I commented out "BOARD_InitDebugConsole()"&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;It seems to me like the way I'm configuring the peripheral is incorrect and thus is causing a change in logic levels. Can you confirm my procedure is correct for initializing FlexComm4 for USART operation?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 16:08:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1235093#M44000</guid>
      <dc:creator>ahmed_mostafa</dc:creator>
      <dc:date>2021-02-23T16:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 USART Flexcomm4 non 3.3V logic</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1235212#M44002</link>
      <description>&lt;P&gt;I managed to correct the issue on P3_21 so I will use that. P3_26 Which is Flexcomm 4 still produces issues. The issue is not with the external HART module. I have certified that it is 0-3.3V compatible.&lt;/P&gt;&lt;P&gt;I do have another question. Since I am using baudrate of 1200 for my communication, what is the best clock source to use for the USART? Is it ok to use the 12MHz source clock our is it better to use 32kHz RTC/ something else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 20:56:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1235212#M44002</guid>
      <dc:creator>ahmed_mostafa</dc:creator>
      <dc:date>2021-02-23T20:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 USART Flexcomm4 non 3.3V logic</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1235602#M44004</link>
      <description>&lt;P&gt;Did you call the appropriate fsl function for the peripheral, e.g.&amp;nbsp;FLEXCOMM_Init() ?&lt;/P&gt;&lt;P&gt;I would take a flexcomm SDK example, and compare with this code.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 08:31:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1235602#M44004</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-02-24T08:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 USART Flexcomm4 non 3.3V logic</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1237223#M44057</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, 12MHZ&amp;nbsp;source clock is OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 10:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-USART-Flexcomm4-non-3-3V-logic/m-p/1237223#M44057</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-02-26T10:05:35Z</dc:date>
    </item>
  </channel>
</rss>

