<?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 problem with simple program with hsadc in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/problem-with-simple-program-with-hsadc/m-p/593763#M22540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by leform14 on Wed Apr 20 16:32:37 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sur that someone have a solution for me, there is my problem :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to capture a signal (100 kHz on CTOUT_0) with hsadc at 1 Mhz, in order to do that I try a lot and a lot of things compare to examples and labtool but that still doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Configure clock for HSADC (verify by Chip_HSADC_GetBaseClockRate and with scope on CLK_BASE_OUT) : OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Configure fifo size at 8 with packed value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Activate 8 descriptor from table 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Configure trigger on rising edge of CTOUT_0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For descriptor 0 , set HSADC_DESC_BRANCH_NEXT | HSADC_DESC_MATCH(0x90)| HSADC_DESC_THRESH_NONE |HSADC_DESC_RESET_TIMER&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For descriptor 1 to 6, set HSADC_DESC_BRANCH_NEXT | HSADC_DESC_MATCH(1)| HSADC_DESC_THRESH_NONE |HSADC_DESC_RESET_TIMER&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For descriptor 7, set HSADC_DESC_HALT | HSADC_DESC_MATCH(1)| HSADC_DESC_THRESH_NONE |HSADC_DESC_RESET_TIMER&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enable interrupts HSADC_INT0_FIFO_FULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start by Chip_HSADC_SWTrigger&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I simply retrieve first 16 samples (8 fifos with packed samples) and I see discontinuous values that doesn't match with 1 Mhz sampling rate instead of :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L L L L LL H H H H H H&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe the sens can be different but that must do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I have is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L L H H L L H H L L H H L L H H&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Somebody sees something that I could have forgotten ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me, all needs can be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mickael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:21:23 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:21:23Z</dc:date>
    <item>
      <title>problem with simple program with hsadc</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/problem-with-simple-program-with-hsadc/m-p/593763#M22540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by leform14 on Wed Apr 20 16:32:37 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sur that someone have a solution for me, there is my problem :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to capture a signal (100 kHz on CTOUT_0) with hsadc at 1 Mhz, in order to do that I try a lot and a lot of things compare to examples and labtool but that still doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Configure clock for HSADC (verify by Chip_HSADC_GetBaseClockRate and with scope on CLK_BASE_OUT) : OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Configure fifo size at 8 with packed value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Activate 8 descriptor from table 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Configure trigger on rising edge of CTOUT_0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For descriptor 0 , set HSADC_DESC_BRANCH_NEXT | HSADC_DESC_MATCH(0x90)| HSADC_DESC_THRESH_NONE |HSADC_DESC_RESET_TIMER&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For descriptor 1 to 6, set HSADC_DESC_BRANCH_NEXT | HSADC_DESC_MATCH(1)| HSADC_DESC_THRESH_NONE |HSADC_DESC_RESET_TIMER&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For descriptor 7, set HSADC_DESC_HALT | HSADC_DESC_MATCH(1)| HSADC_DESC_THRESH_NONE |HSADC_DESC_RESET_TIMER&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enable interrupts HSADC_INT0_FIFO_FULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start by Chip_HSADC_SWTrigger&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I simply retrieve first 16 samples (8 fifos with packed samples) and I see discontinuous values that doesn't match with 1 Mhz sampling rate instead of :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L L L L LL H H H H H H&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe the sens can be different but that must do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I have is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L L H H L L H H L L H H L L H H&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Somebody sees something that I could have forgotten ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me, all needs can be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mickael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:21:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/problem-with-simple-program-with-hsadc/m-p/593763#M22540</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem with simple program with hsadc</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/problem-with-simple-program-with-hsadc/m-p/593764#M22541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by leform14 on Mon Apr 25 03:25:04 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I update my results,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I pass directly to DMA managment with HSADC. I am still on my 100 kHz input sampling at 1 MHz. I control value by Debug UART and I remark that I must set 4 Mhz in order to have my sampling rate of 1 MHz. How can I reach 80 MHz in that case as max input of HSADC clock is 80 Mhz ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mickael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:21:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/problem-with-simple-program-with-hsadc/m-p/593764#M22541</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem with simple program with hsadc</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/problem-with-simple-program-with-hsadc/m-p/593765#M22542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:08:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/problem-with-simple-program-with-hsadc/m-p/593765#M22542</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:08:54Z</dc:date>
    </item>
  </channel>
</rss>

