<?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 interrupt in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354243#M46741</link>
    <description>&lt;P&gt;Yeah a scope and a debuger would help, but have been working on this project for some time and can't figure out what the problem is I can echo back data sometimes, but can't read the temperatures continously. Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2021 11:58:21 GMT</pubDate>
    <dc:creator>Alex_2221</dc:creator>
    <dc:date>2021-10-12T11:58:21Z</dc:date>
    <item>
      <title>UART interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1353702#M46723</link>
      <description>&lt;P&gt;Hello everyone, I working on a project with LPC1768. I'm reading 2 temperatures from 2 sensors and send them two a phone via bluetooth continuously. Now I want to add interrupt in order to send 2 digit numbers to the board via bluetooth and echo back the numbers, while&amp;nbsp;continuously sending the 2 temperatures to them phone. When I wanted to activate interrupt and I added the two lines below:&lt;/P&gt;&lt;P&gt;UART_IntConfig(LPC_UART3, UART_INTCFG_RBR,ENABLE);&lt;BR /&gt;NVIC_EnableIRQ(UART3_IRQn);&lt;/P&gt;&lt;P&gt;My board only sent the temperature 3-4 and stopped communication with my phone. What I'm doing wrong?&lt;/P&gt;&lt;P&gt;I added my main code below also I attached the main.c and Hardware.c ( configurations where I activate the interrupt).&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Alex&lt;/P&gt;&lt;P&gt;main code :&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include "lpc17xx_gpio.h"&lt;BR /&gt;#include "lpc17xx_pinsel.h"&lt;BR /&gt;#include "lpc17XX_uart.h"&lt;BR /&gt;#include "lpc17XX_adc.h"&lt;/P&gt;&lt;P&gt;#include "Hardware.h"&lt;BR /&gt;#include "Delay_RIT.h"&lt;/P&gt;&lt;P&gt;//void UART_IntReceive(void)&lt;BR /&gt;//{&lt;BR /&gt;// uint8_t data= UART_ReceiveByte(LPC_UART3);&lt;BR /&gt;// UART_SendByte(LPC_UART3,data);&lt;BR /&gt;//&lt;BR /&gt;//&lt;BR /&gt;//}&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;uint8_t buffstr [20];&lt;BR /&gt;//uint8_t buffstr2 [20];&lt;/P&gt;&lt;P&gt;// uint8_t setTemp [1];&lt;/P&gt;&lt;P&gt;// GPIO_SetDir(2,(1&amp;lt;&amp;lt;0),1);&lt;BR /&gt;&lt;BR /&gt;HW_Init();&lt;BR /&gt;&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;uint16_t temp1 = HW_ADC_Read1();&lt;BR /&gt;uint16_t temp2 = HW_ADC_Read2();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;uint8_t len= sprintf( (char*)buffstr," %u\n %u\n ",temp1,temp2);&lt;BR /&gt;UART_Send(LPC_UART3,buffstr,len,NONE_BLOCKING);&lt;/P&gt;&lt;P&gt;Delay_RIT_ms(1000);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 19:37:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1353702#M46723</guid>
      <dc:creator>Alex_2221</dc:creator>
      <dc:date>2021-10-11T19:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: UART interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354025#M46735</link>
      <description>&lt;P&gt;Hello Alex,&lt;/P&gt;
&lt;P&gt;Please check whether there is UART receive interrupt after your phone send 5-6 numbers.&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, 12 Oct 2021 08:11:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354025#M46735</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-10-12T08:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: UART interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354192#M46738</link>
      <description>&lt;P&gt;Thanks I'll check that, but actually my phone should receive data from the board continuously, not sending them 5-6 times&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 10:45:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354192#M46738</guid>
      <dc:creator>Alex_2221</dc:creator>
      <dc:date>2021-10-12T10:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: UART interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354196#M46739</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp; What's your opinion?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 10:49:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354196#M46739</guid>
      <dc:creator>Alex_2221</dc:creator>
      <dc:date>2021-10-12T10:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: UART interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354206#M46740</link>
      <description>&lt;P&gt;I don't think this is the right way to tackle your problem.&lt;/P&gt;&lt;P&gt;Split your problem up in small sub-units you can easily observe.&lt;/P&gt;&lt;P&gt;I.e. check the serial communication to the attached BT module (if I got that right), and see if it matches your expectations. You can involve the smartphone later if you know that works.&lt;/P&gt;&lt;P&gt;You might need a scope for that - and the debugger of course.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 11:05:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354206#M46740</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-10-12T11:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: UART interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354243#M46741</link>
      <description>&lt;P&gt;Yeah a scope and a debuger would help, but have been working on this project for some time and can't figure out what the problem is I can echo back data sometimes, but can't read the temperatures continously. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 11:58:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-interrupt/m-p/1354243#M46741</guid>
      <dc:creator>Alex_2221</dc:creator>
      <dc:date>2021-10-12T11:58:21Z</dc:date>
    </item>
  </channel>
</rss>

