<?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: Can't setup adc with config tools. Sampled channels section shows all channels disabled. in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-setup-adc-with-config-tools-Sampled-channels-section-shows/m-p/1517173#M50066</link>
    <description>Thank you Alice, that is what I wanted. Can you recommend where I would see how to start a conversion from the sysTick handler?</description>
    <pubDate>Mon, 05 Sep 2022 15:58:50 GMT</pubDate>
    <dc:creator>jaycrossbee</dc:creator>
    <dc:date>2022-09-05T15:58:50Z</dc:date>
    <item>
      <title>Can't setup adc with config tools. Sampled channels section shows all channels disabled.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-setup-adc-with-config-tools-Sampled-channels-section-shows/m-p/1516565#M50039</link>
      <description>&lt;P&gt;I am trying to continuously sample ADC0 CH1, and have set up using config tools from inside MCUXpresso. When I choose Sampled channels the channel number column always has disabled written at the end.&lt;/P&gt;&lt;P&gt;I suppose rather than continously sample, I would like to use the systemTick to trigger a single channel sample and conversion every 10 ms.&lt;/P&gt;&lt;P&gt;Can you please explain what I am doing wrong in the first paragraph and also how to use the systick to periodically sample instead?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The configTool screen of ADC setup" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/192386i093EE908FD965C3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="conifgTool_screen.PNG" alt="The configTool screen of ADC setup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The configTool screen of ADC setup&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Showing the code before main" style="width: 673px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/192387i48701BF7059578DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="codeBeforeMain.PNG" alt="Showing the code before main" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Showing the code before main&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For the first paragraph, here is the autogenerated config info (with extra info) from peripherals.c&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;/*Begin paste&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* ADC0 initialization code&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;/* clang-format off */&lt;BR /&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;BR /&gt;instance:&lt;BR /&gt;- name: 'ADC0'&lt;BR /&gt;- type: 'lpc_adc'&lt;BR /&gt;- mode: 'ADC'&lt;BR /&gt;- custom_name_enabled: 'false'&lt;BR /&gt;- type_id: 'lpc_adc_d74172b5bd0591c0d32a6c93c043a67f'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'ADC0'&lt;BR /&gt;- config_sets:&lt;BR /&gt;- fsl_adc:&lt;BR /&gt;- doSelfCalibration: 'true'&lt;BR /&gt;- adcConfig:&lt;BR /&gt;- clockMode: 'kADC_ClockSynchronousMode'&lt;BR /&gt;- clockSourceFreq: 'BOARD_BootClockIRC12M'&lt;BR /&gt;- clockDividerNumber: '0'&lt;BR /&gt;- enableLowPowerMode: 'false'&lt;BR /&gt;- voltageRange: 'kADC_HighVoltageRange'&lt;BR /&gt;- thresholdConfig:&lt;BR /&gt;- ADC_SetThreshold0: 'false'&lt;BR /&gt;- thresholdSettingsPair0:&lt;BR /&gt;- lowValue: '0'&lt;BR /&gt;- highValue: '0'&lt;BR /&gt;- ADC_SetThreshold1: 'false'&lt;BR /&gt;- thresholdSettingsPair1:&lt;BR /&gt;- lowValue: '0'&lt;BR /&gt;- highValue: '0'&lt;BR /&gt;- enableSeqConfigurationA: 'true'&lt;BR /&gt;- adcConvSeqConfigA:&lt;BR /&gt;- enableHighPriority: 'true'&lt;BR /&gt;- adcConvSeqConfig:&lt;BR /&gt;- triggerMaskM: '0U'&lt;BR /&gt;- triggerPolarity: 'kADC_TriggerPolarityNegativeEdge'&lt;BR /&gt;- enableSyncBypass: 'false'&lt;BR /&gt;- enableSingleStep: 'false'&lt;BR /&gt;- interruptMode: 'kADC_InterruptForEachConversion'&lt;BR /&gt;- enableSeqConfigurationB: 'false'&lt;BR /&gt;- adcConvSeqConfigB:&lt;BR /&gt;- enableHighPriority: 'false'&lt;BR /&gt;- adcConvSeqConfig:&lt;BR /&gt;- triggerMaskM: '0U'&lt;BR /&gt;- triggerPolarity: 'kADC_TriggerPolarityNegativeEdge'&lt;BR /&gt;- enableSyncBypass: 'false'&lt;BR /&gt;- enableSingleStep: 'false'&lt;BR /&gt;- interruptMode: 'kADC_InterruptForEachConversion'&lt;BR /&gt;- channels:&lt;BR /&gt;- 0:&lt;BR /&gt;- channelName: ''&lt;BR /&gt;- channelNumber: 'CH.1'&lt;BR /&gt;- channelThresholdPair: 'thresholdPair0'&lt;BR /&gt;- thresholdInterruptMode: 'kADC_ThresholdInterruptDisabled'&lt;BR /&gt;- conversion_sequence: 'a'&lt;BR /&gt;- interrupt_sel: 'kADC_ConvSeqAInterruptEnable'&lt;BR /&gt;- enable_irq_seqA: 'true'&lt;BR /&gt;- adc_interrupt_seqA:&lt;BR /&gt;- IRQn: 'ADC0_SEQA_IRQn'&lt;BR /&gt;- enable_interrrupt: 'enabled'&lt;BR /&gt;- enable_priority: 'true'&lt;BR /&gt;- priority: '3'&lt;BR /&gt;- enable_custom_name: 'false'&lt;BR /&gt;- enable_irq_seqB: 'false'&lt;BR /&gt;- adc_interrupt_seqB:&lt;BR /&gt;- IRQn: 'ADC0_SEQB_IRQn'&lt;BR /&gt;- enable_interrrupt: 'enabled'&lt;BR /&gt;- enable_priority: 'false'&lt;BR /&gt;- priority: '0'&lt;BR /&gt;- enable_custom_name: 'false'&lt;BR /&gt;- enable_irq_thcmp: 'false'&lt;BR /&gt;- adc_interrupt_thcmp:&lt;BR /&gt;- IRQn: 'ADC0_THCMP_IRQn'&lt;BR /&gt;- enable_interrrupt: 'enabled'&lt;BR /&gt;- enable_priority: 'false'&lt;BR /&gt;- priority: '0'&lt;BR /&gt;- enable_custom_name: 'false'&lt;BR /&gt;- enable_irq_ovr: 'false'&lt;BR /&gt;- adc_interrupt_ovr:&lt;BR /&gt;- IRQn: 'ADC0_OVR_IRQn'&lt;BR /&gt;- enable_interrrupt: 'enabled'&lt;BR /&gt;- enable_priority: 'false'&lt;BR /&gt;- priority: '0'&lt;BR /&gt;- enable_custom_name: 'false'&lt;BR /&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;BR /&gt;/* clang-format on */&lt;BR /&gt;const adc_config_t ADC0configStruct = {&lt;BR /&gt;.clockDividerNumber = 0UL,&lt;BR /&gt;.enableLowPowerMode = false,&lt;BR /&gt;.voltageRange = kADC_HighVoltageRange,&lt;BR /&gt;};&lt;BR /&gt;/* Conversion sequence A configuration structure */&lt;BR /&gt;const adc_conv_seq_config_t ADC0ConvSeqAConfigStruct = {&lt;BR /&gt;.channelMask = 2U,&lt;BR /&gt;.triggerMask = 0U,&lt;BR /&gt;.triggerPolarity = kADC_TriggerPolarityNegativeEdge,&lt;BR /&gt;.enableSyncBypass = false,&lt;BR /&gt;.enableSingleStep = false,&lt;BR /&gt;.interruptMode = kADC_InterruptForEachConversion&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static void ADC0_init(void) {&lt;BR /&gt;/* Perform self calibration */&lt;BR /&gt;ADC_DoSelfCalibration(ADC0_PERIPHERAL, ADC0_CLK_FREQ);&lt;BR /&gt;/* Initialize ADC0 peripheral */&lt;BR /&gt;ADC_Init(ADC0_PERIPHERAL, &amp;amp;ADC0configStruct);&lt;BR /&gt;/* Configure priority for sequence A */&lt;BR /&gt;ADC_SetConvSeqAHighPriority(ADC0_PERIPHERAL);&lt;BR /&gt;/* Configure the conversion sequence A */&lt;BR /&gt;ADC_SetConvSeqAConfig(ADC0_PERIPHERAL, &amp;amp;ADC0ConvSeqAConfigStruct);&lt;BR /&gt;/* Enable the conversion sequence A */&lt;BR /&gt;ADC_EnableConvSeqA(ADC0_PERIPHERAL, true);&lt;BR /&gt;/* Enable interrupt from ADC */&lt;BR /&gt;ADC_EnableInterrupts(ADC0_PERIPHERAL, kADC_ConvSeqAInterruptEnable);&lt;BR /&gt;/* Configure threshold compare interrupt on channel 1 */&lt;BR /&gt;ADC_EnableThresholdCompareInterrupt(ADC0_PERIPHERAL, 1U, kADC_ThresholdInterruptDisabled);&lt;BR /&gt;/* Interrupt vector ADC0_SEQA_IRQn priority settings in the NVIC. */&lt;BR /&gt;NVIC_SetPriority(ADC0_ADC_SEQ_A_IRQN, ADC0_ADC_SEQ_A_IRQ_PRIORITY);&lt;BR /&gt;/* Enable interrupt ADC0_SEQA_IRQn request in the NVIC. */&lt;BR /&gt;EnableIRQ(ADC0_ADC_SEQ_A_IRQN);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;End past*/&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 20:20:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-setup-adc-with-config-tools-Sampled-channels-section-shows/m-p/1516565#M50039</guid>
      <dc:creator>jaycrossbee</dc:creator>
      <dc:date>2022-09-03T20:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't setup adc with config tools. Sampled channels section shows all channels disabled.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-setup-adc-with-config-tools-Sampled-channels-section-shows/m-p/1516879#M50060</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can use BURST mode, there is lpc_adc_burst demo under SDK.&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>Mon, 05 Sep 2022 08:26:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-setup-adc-with-config-tools-Sampled-channels-section-shows/m-p/1516879#M50060</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-09-05T08:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can't setup adc with config tools. Sampled channels section shows all channels disabled.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-setup-adc-with-config-tools-Sampled-channels-section-shows/m-p/1517173#M50066</link>
      <description>Thank you Alice, that is what I wanted. Can you recommend where I would see how to start a conversion from the sysTick handler?</description>
      <pubDate>Mon, 05 Sep 2022 15:58:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-setup-adc-with-config-tools-Sampled-channels-section-shows/m-p/1517173#M50066</guid>
      <dc:creator>jaycrossbee</dc:creator>
      <dc:date>2022-09-05T15:58:50Z</dc:date>
    </item>
  </channel>
</rss>

