<?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 Question about uart_interrupt example code in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-uart-interrupt-example-code/m-p/1166930#M58482</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've opened the uart_interrupt code in MCUXpresso and am interested in changing the code from using UART0 to usiung UART4 on MK64FN1M0VLL12.&lt;/P&gt;&lt;P&gt;I have modified the UART macros &amp;amp; port settings but am unsure what to do about the following macros:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SIM_SOPT5_UART0TXSRC_MASK&lt;/LI&gt;&lt;LI&gt;SIM_SOPT5_UART0TXSRC&lt;/LI&gt;&lt;LI&gt;SOPT5_UART0TXSRC_UART_TX&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;in function BOARD_InitPins. What's their functiuonality exactly and how can I adjust it to apply to UART4 instead of UART0. My changed BOARD_InitPins() code looks like:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;void BOARD_InitPins(void) {
  CLOCK_EnableClock(kCLOCK_PortC);                           /* Port B Clock Gate Control: Clock enabled */

  PORT_SetPinMux(PORTC, 14u, kPORT_MuxAlt3);           /* PORTC14 (pin 86) is configured as UART4_RX */
  PORT_SetPinMux(PORTC, 15u, kPORT_MuxAlt3);           /* PORTC15 (pin 87) is configured as UART4_TX */
  SIM-&amp;gt;SOPT5 = ((SIM-&amp;gt;SOPT5 &amp;amp;
    (~(SIM_SOPT5_UART0TXSRC_MASK)))                          /* Mask bits to zero which are setting */
      | SIM_SOPT5_UART0TXSRC(SOPT5_UART0TXSRC_UART_TX)       /* UART 0 transmit data source select: UART0_TX pin */
    );
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 19:11:53 GMT</pubDate>
    <dc:creator>stdcerr</dc:creator>
    <dc:date>2020-10-13T19:11:53Z</dc:date>
    <item>
      <title>Question about uart_interrupt example code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-uart-interrupt-example-code/m-p/1166930#M58482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've opened the uart_interrupt code in MCUXpresso and am interested in changing the code from using UART0 to usiung UART4 on MK64FN1M0VLL12.&lt;/P&gt;&lt;P&gt;I have modified the UART macros &amp;amp; port settings but am unsure what to do about the following macros:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SIM_SOPT5_UART0TXSRC_MASK&lt;/LI&gt;&lt;LI&gt;SIM_SOPT5_UART0TXSRC&lt;/LI&gt;&lt;LI&gt;SOPT5_UART0TXSRC_UART_TX&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;in function BOARD_InitPins. What's their functiuonality exactly and how can I adjust it to apply to UART4 instead of UART0. My changed BOARD_InitPins() code looks like:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;void BOARD_InitPins(void) {
  CLOCK_EnableClock(kCLOCK_PortC);                           /* Port B Clock Gate Control: Clock enabled */

  PORT_SetPinMux(PORTC, 14u, kPORT_MuxAlt3);           /* PORTC14 (pin 86) is configured as UART4_RX */
  PORT_SetPinMux(PORTC, 15u, kPORT_MuxAlt3);           /* PORTC15 (pin 87) is configured as UART4_TX */
  SIM-&amp;gt;SOPT5 = ((SIM-&amp;gt;SOPT5 &amp;amp;
    (~(SIM_SOPT5_UART0TXSRC_MASK)))                          /* Mask bits to zero which are setting */
      | SIM_SOPT5_UART0TXSRC(SOPT5_UART0TXSRC_UART_TX)       /* UART 0 transmit data source select: UART0_TX pin */
    );
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 19:11:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-uart-interrupt-example-code/m-p/1166930#M58482</guid>
      <dc:creator>stdcerr</dc:creator>
      <dc:date>2020-10-13T19:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question about uart_interrupt example code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-uart-interrupt-example-code/m-p/1166941#M58483</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;UART0 and UART1 Tx pins can be set to be modulated by timers (for example as used to drive IR LEDs).&lt;/P&gt;&lt;P&gt;The other UARTs Tx pins don't support this so you don't need to change anything.&lt;/P&gt;&lt;P&gt;The code that you show is just disabling the modulation function, which is the default, and thus not normally of interest.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;BR /&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or product development requirements&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 19:50:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-uart-interrupt-example-code/m-p/1166941#M58483</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-10-13T19:50:28Z</dc:date>
    </item>
  </channel>
</rss>

