<?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: LPCopen periph_adc example in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579246#M20001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xjx on Sun Nov 15 12:15:27 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you but I do not understand your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use the serial cable, is it ok to use the following config at board.h?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/** Define DEBUG_ENABLE to enable IO via the DEBUGSTR, DEBUGOUT, and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEBUGIN macros. If not defined, DEBUG* functions will be optimized&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; out of the code at build time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define DEBUG_ENABLE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/** Define DEBUG_SEMIHOSTING along with DEBUG_ENABLE to enable IO support&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; via semihosting. You may need to use a C library that supports&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; semihosting with this option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// #define DEBUG_SEMIHOSTING&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The welcome message now dissapears in the console. However it does not appear in the COM console, ussing Putty or Hercules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I see in the Hercules console is the characters that I write being echoed back by the LPCxpresso. This behavior was OK when I tried the LPCOpen example "periph_uart_rb", but not now I guess. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:20:19 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:20:19Z</dc:date>
    <item>
      <title>LPCopen periph_adc example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579244#M19999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xjx on Sun Nov 15 10:43:39 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to run the periph_adc example on LPCxpresso 1760 stick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I compiled and run it with redlib semihost. I also have the uart connected to the PC with an RS232 interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One running the example, it writes some message to the console. However, I was expecting to see the ADC values somewhere in the console or in the COM terminal at the PC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello NXP Semiconductors &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ADC DEMO &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample rate : 200kHz &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Press 'c' to continue or 'x' to quit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Press 'o' or 'p' to set Sample rate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Press 'b' to ENABLE or DISABLE Burst Mode&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;when I press the keys nothing happens. Question: what is the example supposed to do? &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:20:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579244#M19999</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPCopen periph_adc example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579245#M20000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun Nov 15 11:38:17 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: xjx&lt;/STRONG&gt;&lt;BR /&gt;I compiled and run it with redlib semihost. I also have the uart connected to the PC with an RS232 interface.&lt;BR /&gt;&lt;BR /&gt;One running the example, it writes some message to the console. However, I was expecting to see the ADC values somewhere in the console or in the COM terminal at the PC.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Semihosting = Console IO :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So use semihosting to get ADC values:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Hello NXP Semiconductors &lt;BR /&gt;&lt;BR /&gt;ADC DEMO &lt;BR /&gt;&lt;BR /&gt;Sample rate : 200kHz &lt;BR /&gt;&lt;BR /&gt;Press 'c' to continue or 'x' to quit&lt;BR /&gt;&lt;BR /&gt;Press 'o' or 'p' to set Sample rate&lt;BR /&gt;&lt;BR /&gt;Press 'b' to ENABLE or DISABLE Burst Mode&lt;BR /&gt;&lt;BR /&gt;[color=#6c0]c[/color]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Press number 1-3 to choose ADC running mode:&lt;BR /&gt;&lt;BR /&gt;1: Polling Mode &lt;BR /&gt;&lt;BR /&gt;2: Interrupt Mode &lt;BR /&gt;&lt;BR /&gt;3: DMA Mode &lt;BR /&gt;&lt;BR /&gt;[color=#6c0]2[/color]&lt;BR /&gt;&lt;BR /&gt;ADC value is : 0x0459&lt;BR /&gt;&lt;BR /&gt;ADC value is : 0x030a&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:20:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579245#M20000</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPCopen periph_adc example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579246#M20001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xjx on Sun Nov 15 12:15:27 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you but I do not understand your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use the serial cable, is it ok to use the following config at board.h?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/** Define DEBUG_ENABLE to enable IO via the DEBUGSTR, DEBUGOUT, and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEBUGIN macros. If not defined, DEBUG* functions will be optimized&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; out of the code at build time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define DEBUG_ENABLE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/** Define DEBUG_SEMIHOSTING along with DEBUG_ENABLE to enable IO support&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; via semihosting. You may need to use a C library that supports&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; semihosting with this option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// #define DEBUG_SEMIHOSTING&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The welcome message now dissapears in the console. However it does not appear in the COM console, ussing Putty or Hercules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I see in the Hercules console is the characters that I write being echoed back by the LPCxpresso. This behavior was OK when I tried the LPCOpen example "periph_uart_rb", but not now I guess. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:20:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579246#M20001</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPCopen periph_adc example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579247#M20002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun Nov 15 12:45:36 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: xjx&lt;/STRONG&gt;&lt;BR /&gt;However it does not appear in the COM console, ussing Putty or Hercules.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The your UART hardware or terminal setup is wrong...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UART2 is working here without problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Hello NXP Semiconductors&lt;BR /&gt;ADC DEMO&lt;BR /&gt;Sample rate : 200kHz&lt;BR /&gt;Press 'c' to continue or 'x' to quit&lt;BR /&gt;Press 'o' or 'p' to set Sample rate&lt;BR /&gt;Press 'b' to ENABLE or DISABLE Burst Mode&lt;BR /&gt;c&lt;BR /&gt;Press number 1-3 to choose ADC running mode:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1: Polling Mode&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2: Interrupt Mode&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3: DMA Mode&lt;BR /&gt;2&lt;BR /&gt;ADC value is : 0x02d8&lt;BR /&gt;ADC value is : 0x02d5&lt;BR /&gt;ADC value is : 0x02d2&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:20:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579247#M20002</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPCopen periph_adc example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579248#M20003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xjx on Sun Nov 15 13:50:09 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;THe UART and Terminal in PC&amp;nbsp; are correctly working. I made the following checks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) with everything connected, the LPCxpresso echoes back the characters sent from PC-&amp;gt;LPCxpresso. This is shown in Terminal at PC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) when stick power is disconnected, the LPCxpresso does not echo back characters anymore&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) when serial cable is disconnected from LPCxpresso, no characters are echoed back to the terminal at PC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;It looks like the LPCxpresso is still running an old program, I do not why&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May the following be happening? see last paragraph &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Have a look at: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdocs.lpcware.com%2Flpcopen%2Fv1.03%2F_l_p_c_o_p_e_n_17_x_x40_x_x__b_o_a_r_d__x_p_r_e_s_s_o_1769.html" rel="nofollow" target="_blank"&gt;http://docs.lpcware.com/lpcopen/v1.03/_l_p_c_o_p_e_n_17_x_x40_x_x__b_o_a_r_d__x_p_r_e_s_s_o_1769.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Board recovery using the ISP pin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the board's FLASH can no longer be programmed, the image in FLASH may be corrupt. To recover the board, the board must be reset with the ISP (P2.10) pin held low. To do this, attach a jumper between pin J6-51 (P2.10) and J6-1 (GND) and reset the board. On debuggers that reset the board prior to programming, the ISP pin should be held low until the programming cycle is started. Once started, it can be released.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have the LPCXpresso Base Board attached, you can press and hold SW3 on the base board on reset to reset with the ISP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Julian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:20:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCopen-periph-adc-example/m-p/579248#M20003</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:20:20Z</dc:date>
    </item>
  </channel>
</rss>

