<?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: LPC55S69 ADC always measuring half rail? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562787#M50910</link>
    <description>&lt;P&gt;Thanks for the reply, I have tried a reset and a power cycle and get the same results, with either register manipulation the ADC runs, without any is the only way I can get back to measuring half rail? this is very strange, but I am happy I can move forward with my project. You can see on my previous post AUXBAIS set and unset and in both case the ADC is running. Unfortunately there is no register entry in my debugger for the location in ATACLTR, so I can't see what that code is actually doing to the register (if anything).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 11:02:13 GMT</pubDate>
    <dc:creator>sanders7284</dc:creator>
    <dc:date>2022-12-01T11:02:13Z</dc:date>
    <item>
      <title>LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557247#M50775</link>
      <description>&lt;P&gt;Hello, I have used the config tool to setup LPC55S69 ADC channel but the result is always 32768 (or half of the 16 bit total value) I have moved the voltage on the pin between 0 - 3.3V but the result is always the same. Included below is a scope trace showing the time to run the autocal (green) and then sampling (Pink), the yellow trace is the ADV input voltage around 2V. Also the code used to obtain the measurements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint32_t read_adc()&lt;BR /&gt;{&lt;BR /&gt;lpadc_conv_result_t config;&lt;/P&gt;&lt;P&gt;GPIO_PinWrite(GPIO, 1, Debug_1, 1);&lt;BR /&gt;LPADC_DoAutoCalibration(ADC0);&lt;BR /&gt;LPADC_DoSoftwareTrigger(ADC0, 2); //trigger ADC read&lt;BR /&gt;GPIO_PinWrite(GPIO, 1, Debug_1, 0);&lt;BR /&gt;GPIO_PinWrite(GPIO, 0, Debug_4, 1);&lt;BR /&gt;while (!LPADC_GetConvResult(ADC0, &amp;amp;config, 0U)){}; //wait for result&lt;BR /&gt;GPIO_PinWrite(GPIO, 0, Debug_4, 0);&lt;BR /&gt;return (uint32_t) config.convValue; //return data&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulsanders_0-1669042205031.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/201134i164EE8B0996D15DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paulsanders_0-1669042205031.png" alt="paulsanders_0-1669042205031.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulsanders_1-1669042408687.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/201135i0EEF904A8A75AF53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paulsanders_1-1669042408687.png" alt="paulsanders_1-1669042408687.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulsanders_2-1669042522830.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/201136i5E47182045601A7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paulsanders_2-1669042522830.png" alt="paulsanders_2-1669042522830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 15:26:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557247#M50775</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2022-11-21T15:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557398#M50777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have read your read_adc() api function, I do not know where you configure the ADC pin, which you set up the command register, where you assign the ADC channel.&lt;/P&gt;
&lt;P&gt;Anyway, I suggest you download SDK package from the link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/en/welcome" target="_blank"&gt;https://mcuxpresso.nxp.com/en/welcome&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and try to test the ADC example based on MCUXpressoLPC55S69-EVK board.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1669081221935.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/201167i36AAD3EAE97EE48C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1669081221935.png" alt="xiangjun_rong_0-1669081221935.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can read the readme.txt file to know where the test Analog pin is, you can connect VDD or GND to the analog channel.&lt;/P&gt;
&lt;P&gt;In general, the ADC analog channel pin is multiplexed with GPIO, but you can not configure the pin as GPIO output and toggle the GPIO and have the ADC to sample the same pin.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 01:46:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557398#M50777</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-11-22T01:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557583#M50783</link>
      <description>&lt;P&gt;Thank you for the reply, the channel setup code is auto generated from the config tools as below:-&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: 'lpadc'&lt;BR /&gt;- mode: 'LPADC'&lt;BR /&gt;- custom_name_enabled: 'false'&lt;BR /&gt;- type_id: 'lpadc_ddcc12878b96237847ab78b571214e1c'&lt;BR /&gt;- functional_group: 'BOARD_InitPeripherals'&lt;BR /&gt;- peripheral: 'ADC0'&lt;BR /&gt;- config_sets:&lt;BR /&gt;- fsl_lpadc:&lt;BR /&gt;- lpadcConfig:&lt;BR /&gt;- clockSource: 'AsynchronousFunctionClock'&lt;BR /&gt;- clockSourceFreq: 'BOARD_BootClockRUN'&lt;BR /&gt;- enableInDozeMode: 'true'&lt;BR /&gt;- conversionAverageMode: 'kLPADC_ConversionAverage16'&lt;BR /&gt;- offsetCalibration: 'yes'&lt;BR /&gt;- autoCalibrate: 'true'&lt;BR /&gt;- enableAnalogPreliminary: 'true'&lt;BR /&gt;- powerUpDelay: '0x80'&lt;BR /&gt;- referenceVoltageSource: 'kLPADC_ReferenceVoltageAlt2'&lt;BR /&gt;- powerLevelMode: 'kLPADC_PowerLevelAlt4'&lt;BR /&gt;- triggerPriorityPolicy: 'kLPADC_TriggerPriorityPreemptSubsequently'&lt;BR /&gt;- enableConvPause: 'false'&lt;BR /&gt;- convPauseDelay: '0'&lt;BR /&gt;- FIFO0Watermark: '0'&lt;BR /&gt;- FIFO1Watermark: '0'&lt;BR /&gt;- FIFO0WatermarkDMA: 'false'&lt;BR /&gt;- FIFO1WatermarkDMA: 'false'&lt;BR /&gt;- lpadcConvCommandConfig:&lt;BR /&gt;- 0:&lt;BR /&gt;- user_commandId: 'Sounder_Monitoring'&lt;BR /&gt;- commandId: '7'&lt;BR /&gt;- chainedNextCommandNumber: '0'&lt;BR /&gt;- sampleChannelMode: 'kLPADC_SampleChannelSingleEndSideA'&lt;BR /&gt;- channelNumber: 'CH.4'&lt;BR /&gt;- enableAutoChannelIncrement: 'false'&lt;BR /&gt;- loopCount: '0'&lt;BR /&gt;- hardwareAverageMode: 'kLPADC_HardwareAverageCount16'&lt;BR /&gt;- sampleTimeMode: 'kLPADC_SampleTimeADCK3'&lt;BR /&gt;- conversionResoultuionMode: 'kLPADC_ConversionResolutionHigh'&lt;BR /&gt;- enableWaitTrigger: 'false'&lt;BR /&gt;- lpadcConvTriggerConfig:&lt;BR /&gt;- 0:&lt;BR /&gt;- user_triggerId: 'Sounder_Monitoring_Trigger'&lt;BR /&gt;- triggerId: '1'&lt;BR /&gt;- targetCommandId: '7'&lt;BR /&gt;- delayPower: '15'&lt;BR /&gt;- priority: 'false'&lt;BR /&gt;- channelAFIFOSelect: '0'&lt;BR /&gt;- channelBFIFOSelect: '0'&lt;BR /&gt;- enableHardwareTrigger: 'false'&lt;BR /&gt;- IRQ_cfg:&lt;BR /&gt;- interrupt_type: ''&lt;BR /&gt;- enable_irq: 'false'&lt;BR /&gt;- adc_interrupt:&lt;BR /&gt;- IRQn: 'ADC0_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 lpadc_config_t ADC0_config = {&lt;BR /&gt;.enableInDozeMode = true,&lt;BR /&gt;.conversionAverageMode = kLPADC_ConversionAverage16,&lt;BR /&gt;.enableAnalogPreliminary = true,&lt;BR /&gt;.powerUpDelay = 0x80UL,&lt;BR /&gt;.referenceVoltageSource = kLPADC_ReferenceVoltageAlt2,&lt;BR /&gt;.powerLevelMode = kLPADC_PowerLevelAlt4,&lt;BR /&gt;.triggerPriorityPolicy = kLPADC_TriggerPriorityPreemptSubsequently,&lt;BR /&gt;.enableConvPause = false,&lt;BR /&gt;.convPauseDelay = 0UL,&lt;BR /&gt;.FIFO0Watermark = 0UL,&lt;BR /&gt;.FIFO1Watermark = 0UL&lt;BR /&gt;};&lt;BR /&gt;lpadc_conv_command_config_t ADC0_commandsConfig[1] = {&lt;BR /&gt;{&lt;BR /&gt;.sampleChannelMode = kLPADC_SampleChannelSingleEndSideA,&lt;BR /&gt;.channelNumber = 4U,&lt;BR /&gt;.chainedNextCommandNumber = 0,&lt;BR /&gt;.enableAutoChannelIncrement = false,&lt;BR /&gt;.loopCount = 0UL,&lt;BR /&gt;.hardwareAverageMode = kLPADC_HardwareAverageCount16,&lt;BR /&gt;.sampleTimeMode = kLPADC_SampleTimeADCK3,&lt;BR /&gt;.conversionResolutionMode = kLPADC_ConversionResolutionHigh,&lt;BR /&gt;.enableWaitTrigger = false&lt;BR /&gt;}&lt;BR /&gt;};&lt;BR /&gt;lpadc_conv_trigger_config_t ADC0_triggersConfig[1] = {&lt;BR /&gt;{&lt;BR /&gt;.targetCommandId = 7,&lt;BR /&gt;.delayPower = 15UL,&lt;BR /&gt;.channelAFIFOSelect = 0,&lt;BR /&gt;.channelBFIFOSelect = 0,&lt;BR /&gt;.priority = 1,&lt;BR /&gt;.enableHardwareTrigger = false&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static void ADC0_init(void) {&lt;BR /&gt;/* Initialize LPADC converter */&lt;BR /&gt;LPADC_Init(ADC0_PERIPHERAL, &amp;amp;ADC0_config);&lt;BR /&gt;/* Perform offset calibration */&lt;BR /&gt;LPADC_DoOffsetCalibration(ADC0_PERIPHERAL);&lt;BR /&gt;/* Perform auto calibration */&lt;BR /&gt;LPADC_DoAutoCalibration(ADC0_PERIPHERAL);&lt;BR /&gt;/* Configure conversion command 7. */&lt;BR /&gt;LPADC_SetConvCommandConfig(ADC0_PERIPHERAL, ADC0_SOUNDER_MONITORING, &amp;amp;ADC0_commandsConfig[0]);&lt;BR /&gt;/* Configure trigger 1. */&lt;BR /&gt;LPADC_SetConvTriggerConfig(ADC0_PERIPHERAL, ADC0_SOUNDER_MONITORING_TRIGGER, &amp;amp;ADC0_triggersConfig[0]);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* Initialization functions&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;void BOARD_InitPeripherals(void)&lt;BR /&gt;{&lt;BR /&gt;/* Initialize components */&lt;BR /&gt;ADC0_init();&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 07:50:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557583#M50783</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2022-11-22T07:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557590#M50785</link>
      <description>&lt;P&gt;also from pin_mux.c&lt;/P&gt;&lt;P&gt;IOCON-&amp;gt;PIO[1][8] =&lt;BR /&gt;((IOCON-&amp;gt;PIO[1][8] &amp;amp;&lt;BR /&gt;/* Mask bits to zero which are setting */&lt;BR /&gt;(~(IOCON_PIO_FUNC_MASK | IOCON_PIO_MODE_MASK | IOCON_PIO_SLEW_MASK | IOCON_PIO_DIGIMODE_MASK | IOCON_PIO_ASW_MASK)))&lt;/P&gt;&lt;P&gt;/* Selects pin function.&lt;BR /&gt;* : PORT18 (pin 24) is configured as ADC0_4. */&lt;BR /&gt;| IOCON_PIO_FUNC(PIO1_8_FUNC_ALT0)&lt;/P&gt;&lt;P&gt;/* Selects function mode (on-chip pull-up/pull-down resistor control).&lt;BR /&gt;* : Inactive.&lt;BR /&gt;* Inactive (no pull-down/pull-up resistor enabled). */&lt;BR /&gt;| IOCON_PIO_MODE(PIO1_8_MODE_INACTIVE)&lt;/P&gt;&lt;P&gt;/* Driver slew rate.&lt;BR /&gt;* : Standard-mode, output slew rate is slower.&lt;BR /&gt;* More outputs can be switched simultaneously. */&lt;BR /&gt;| IOCON_PIO_SLEW(PIO1_8_SLEW_STANDARD)&lt;/P&gt;&lt;P&gt;/* Select Digital mode.&lt;BR /&gt;* : Disable digital mode.&lt;BR /&gt;* Digital input set to 0. */&lt;BR /&gt;| IOCON_PIO_DIGIMODE(PIO1_8_DIGIMODE_ANALOG)&lt;/P&gt;&lt;P&gt;/* Analog switch input control.&lt;BR /&gt;* : For all pins except PIO0_9, PIO0_11, PIO0_12, PIO0_15, PIO0_18, PIO0_31, PIO1_0 and PIO1_9 analog&lt;BR /&gt;* switch is closed (enabled). */&lt;BR /&gt;| IOCON_PIO_ASW(PIO1_8_ASW_VALUE1));&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 07:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557590#M50785</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2022-11-22T07:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557638#M50787</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is what you defined:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- user_triggerId: 'Sounder_Monitoring_Trigger'&lt;BR /&gt;- triggerId: '1'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Based on above configuration, pls try to change your ADC code like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;uint32_t read_adc()&lt;BR /&gt;{&lt;BR /&gt;lpadc_conv_result_t config;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;GPIO_PinWrite(GPIO, 1, Debug_1, 1);&lt;BR /&gt;LPADC_DoAutoCalibration(ADC0);&lt;BR /&gt;//LPADC_DoSoftwareTrigger(ADC0, 2); //trigger ADC read&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LPADC_DoSoftwareTrigger(ADC0, Sounder_Monitoring_Trigger); //&lt;FONT color="#FF0000"&gt;Rong wrote trigger ADC read&lt;/FONT&gt;&lt;BR /&gt;GPIO_PinWrite(GPIO, 1, Debug_1, 0);&lt;BR /&gt;GPIO_PinWrite(GPIO, 0, Debug_4, 1);&lt;BR /&gt;while (!LPADC_GetConvResult(ADC0, &amp;amp;config, 0U)){}; //wait for result&lt;BR /&gt;GPIO_PinWrite(GPIO, 0, Debug_4, 0);&lt;BR /&gt;return (uint32_t) config.convValue; //return data&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Pls have a try.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;XiangJun Rong&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 08:46:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557638#M50787</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-11-22T08:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557766#M50789</link>
      <description>&lt;P&gt;&lt;FONT color="#339966"&gt;Thanks I have tried this with a slight difference as there was no definition for sounder_monitoring_trigger.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;Instead I was able to find:-&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/* Trigger 1 - Sounder_Monitoring_Trigger */&lt;BR /&gt;#define ADC0_SOUNDER_MONITORING_TRIGGER 1U&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;Giving code like this.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;uint32_t read_adc()&lt;BR /&gt;{&lt;BR /&gt;lpadc_conv_result_t config;&lt;BR /&gt;&lt;BR /&gt;GPIO_PinWrite(GPIO, 1, Debug_1, 1);&lt;BR /&gt;LPADC_DoAutoCalibration(ADC0);&lt;BR /&gt;//LPADC_DoSoftwareTrigger(ADC0, 2); //trigger ADC read&lt;BR /&gt;LPADC_DoSoftwareTrigger(ADC0, ADC0_SOUNDER_MONITORING_TRIGGER); //trigger ADC read&lt;BR /&gt;GPIO_PinWrite(GPIO, 1, Debug_1, 0);&lt;BR /&gt;GPIO_PinWrite(GPIO, 0, Debug_4, 1);&lt;BR /&gt;while (!LPADC_GetConvResult(ADC0, &amp;amp;config, 0U)){}; //wait for result&lt;BR /&gt;GPIO_PinWrite(GPIO, 0, Debug_4, 0);&lt;BR /&gt;return (uint32_t) config.convValue; //return data&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;This now gets stuck in the while loop never gaining a result.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;After looking at the user manual I believe the code I had originally with a value of 2U is correct, as the register is bitwise, so a 1U as now set up will trigger event 0, so now the wrong event.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;The passed value is not shifted, it is used directly, as below.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/*!&lt;BR /&gt;* @brief Do software trigger to conversion command.&lt;BR /&gt;*&lt;BR /&gt;* &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197964"&gt;@Param&lt;/a&gt; base LPADC peripheral base address.&lt;BR /&gt;* &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197964"&gt;@Param&lt;/a&gt; triggerIdMask Mask value for software trigger indexes, which count from zero.&lt;BR /&gt;*/&lt;BR /&gt;static inline void LPADC_DoSoftwareTrigger(ADC_Type *base, uint32_t triggerIdMask)&lt;BR /&gt;{&lt;BR /&gt;/* Writes to ADCx_SWTRIG register are ignored while ADCx_CTRL[ADCEN] is clear. */&lt;BR /&gt;base-&amp;gt;SWTRIG = triggerIdMask;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanders7284_0-1669113904227.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/201246i05D3D7493608A6E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanders7284_0-1669113904227.png" alt="sanders7284_0-1669113904227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 10:46:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1557766#M50789</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2022-11-22T10:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1558094#M50794</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls pay attention to the color variable.&lt;/P&gt;
&lt;P&gt;Anyway, I suggest you use the SDK example code, because the SDK example code is fully tested.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;/* Set conversion CMD configuration. */&lt;BR /&gt;LPADC_GetDefaultConvCommandConfig(&amp;amp;mLpadcCommandConfigStruct);&lt;BR /&gt;mLpadcCommandConfigStruct.sampleChannelMode=kLPADC_SampleChannelSingleEndSideB;&lt;BR /&gt;mLpadcCommandConfigStruct.channelNumber = 4; //sample CH4B&lt;BR /&gt;#if defined(DEMO_LPADC_USE_HIGH_RESOLUTION) &amp;amp;&amp;amp; DEMO_LPADC_USE_HIGH_RESOLUTION&lt;BR /&gt;mLpadcCommandConfigStruct.conversionResolutionMode = kLPADC_ConversionResolutionHigh;&lt;BR /&gt;#endif /* DEMO_LPADC_USE_HIGH_RESOLUTION */&lt;BR /&gt;LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, &lt;FONT color="#FF00FF"&gt;DEMO_LPADC_USER_CMDID&lt;/FONT&gt;, &amp;amp;mLpadcCommandConfigStruct);&lt;/P&gt;
&lt;P&gt;/* Set trigger configuration. */&lt;BR /&gt;LPADC_GetDefaultConvTriggerConfig(&amp;amp;mLpadcTriggerConfigStruct);&lt;BR /&gt;mLpadcTriggerConfigStruct.targetCommandId = &lt;FONT color="#FF00FF"&gt;DEMO_LPADC_USER_CMDID&lt;/FONT&gt;; /* CMD15 is executed. */&lt;BR /&gt;mLpadcTriggerConfigStruct.enableHardwareTrigger = false;&lt;/P&gt;
&lt;P&gt;#define &lt;FONT color="#0000FF"&gt;TRIGGERID 0&lt;/FONT&gt;&lt;BR /&gt;LPADC_SetConvTriggerConfig(DEMO_LPADC_BASE, &lt;FONT color="#0000FF"&gt;TRIGGERID&lt;/FONT&gt;, &amp;amp;mLpadcTriggerConfigStruct); /* Configurate the trigger0. */&lt;/P&gt;
&lt;P&gt;while (1)&lt;BR /&gt;{&lt;BR /&gt;GETCHAR();&lt;BR /&gt;LPADC_DoSoftwareTrigger(DEMO_LPADC_BASE, 1&amp;lt;&amp;lt;&lt;FONT color="#0000FF"&gt;TRIGGERID&lt;/FONT&gt;); /* 1U is trigger0 mask. */&lt;BR /&gt;while (!g_LpadcConversionCompletedFlag)&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;PRINTF("ADC value: %d\r\nADC interrupt count: %d\r\n",&lt;BR /&gt;((g_LpadcResultConfigStruct.convValue) &amp;gt;&amp;gt; g_LpadcResultShift), g_LpadcInterruptCounter);&lt;BR /&gt;g_LpadcConversionCompletedFlag = false;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 02:27:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1558094#M50794</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-11-23T02:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1559490#M50823</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;for your help and support, just to detail here in case anyone else as the same issue, the fix was to execute&amp;nbsp;&lt;/P&gt;&lt;P&gt;void ADC_INIT_PREP(void)&lt;BR /&gt;{&lt;BR /&gt;POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC);&lt;BR /&gt;ANACTRL_Init(ANACTRL);&lt;BR /&gt;ANACTRL_EnableVref1V(ANACTRL, true);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Before the ADC setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the .h files this turns off the ADC and turns on the 1V internal bandgap, presuming this is required for calibration?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My user manual is Rev 1.9 Nov 2019 and has no reference to the register value&amp;nbsp;AUX_BIAS, I will download the latest and check this detail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The version of IAR I am using is 8.50.1 and has no details in the register view for AUX_BIAS, I will also get the latest version of this IDE to see if the information as been updated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Sanders7284&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 13:53:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1559490#M50823</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2022-11-24T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1559567#M50828</link>
      <description>&lt;P&gt;&lt;SPAN&gt;No description of register AUX_BIAS?&amp;nbsp;&lt;/SPAN&gt;That sounds familiar. Others have struggled with this register as well, see here:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC55xx-ADC-configuration-and-calibration/td-p/1378794" target="_self"&gt;forum article.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That being said, the current documentation (&lt;A href="https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true" target="_self"&gt;&lt;SPAN&gt;UM11126&amp;nbsp;&lt;/SPAN&gt;Rev. 2.4&lt;/A&gt;) now covers this register in chapter 11.5.12, Table 287.&lt;/P&gt;&lt;P&gt;Further, ADC startup seems not straight forward. Even the user manual calls the startup procedure a "work-around" (section&amp;nbsp;39.7.1.1 "ADC start-up sequence software work-around").&lt;/P&gt;&lt;P&gt;Personally, I find the "pseudocode" in this section not helpful at all. I wonder which API it is using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 17:06:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1559567#M50828</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-11-24T17:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1559834#M50838</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/139806"&gt;@danielholala&lt;/a&gt;&amp;nbsp;thank you for the links, yes this looks like the same issue, I never searched for AUX_BIAS as I did not know it existed or the previous article may have helped me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the latest user manual and yes the register is detailed, but I agree the workaround section is not very clear nor complete, it talks about powering down the ADC and changing settings in the ADC register but still not mention of AUX_BIAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The presumption from NXP seems to be that everyone is starting with the SDK and examples in xpresso, as we use IAR and have bespoke life safety applications this is not always our starting point, we are very dependent on the written materials for our applications.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;maybe this is worth raising with the documents team, to make sure the work around and ADC section make reference to the requirements for AUX_BIAS?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 08:42:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1559834#M50838</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2022-11-25T08:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1561367#M50864</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/161010"&gt;@sanders7284&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm coming back to this issue as it just hit me, too, and your solution got the ADC working. Thanks for sharing.&lt;/P&gt;&lt;P&gt;I figured that the call to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is sufficient to get the ADC working. It seems to me that&amp;nbsp;output of 1V reference voltage does not need to be enabled in register&amp;nbsp;&lt;FONT face="courier new,courier"&gt;AUX_BIAS&lt;/FONT&gt;. Can you confirm this?&lt;/P&gt;&lt;P&gt;Note, the API call &lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;POWER_DisablePD()&lt;/FONT&gt;&amp;nbsp;manipulates the &lt;FONT face="courier new,courier"&gt;PDRUNCFG0&lt;/FONT&gt; register which controls the power to various analog blocks. Here, bit 19 (aka &lt;FONT face="courier new,courier"&gt;PDEN_AUXBIAS&lt;/FONT&gt;) is cleared. Contrary to what the name insinuates, this call powers &lt;STRONG&gt;up&lt;/STRONG&gt; the peripheral.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I wonder whether this call should be issued before the ADC is being initialized or calibrated. At least it also works if I issue it after initialization and calibration and just before triggering the first conversion.&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:16:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1561367#M50864</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-11-29T14:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1561394#M50866</link>
      <description>&lt;P&gt;Yes you are correct just calling&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;  POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC);&lt;/LI-CODE&gt;&lt;P&gt;Allows the ADC to function as you say&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static inline void POWER_DisablePD(pd_bit_t en)
{
    /* PDRUNCFGCLR */
    PMC-&amp;gt;PDRUNCFGCLR0 = (uint32_t)en;
}

//taken from define
//kPDRUNCFG_PD_LDOGPADC     = (1UL &amp;lt;&amp;lt; 19),&lt;/LI-CODE&gt;&lt;P&gt;However what is strange is calling&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;  ANACTRL_Init(ANACTRL);
  ANACTRL_EnableVref1V(ANACTRL, true);&lt;/LI-CODE&gt;&lt;P&gt;Also allows the ACD to run correctly&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static inline void ANACTRL_EnableVref1V(ANACTRL_Type *base, bool enable)
{
    if (enable)
    {
        base-&amp;gt;AUX_BIAS |= ANACTRL_AUX_BIAS_VREF1VENABLE_MASK;
    }
    else
    {
        base-&amp;gt;AUX_BIAS &amp;amp;= ~ANACTRL_AUX_BIAS_VREF1VENABLE_MASK;
    }
}

#define ANACTRL_AUX_BIAS_VREF1VENABLE_MASK       (0x2U)&lt;/LI-CODE&gt;&lt;P&gt;It's almost like there are 2 registers and if either one is set then the 1V AUX_BIAS is enabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can't be the case, can it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:41:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1561394#M50866</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2022-11-29T14:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1561993#M50887</link>
      <description>&lt;P&gt;Hi, all,&lt;/P&gt;
&lt;P&gt;Maybe only the line is required:&lt;/P&gt;
&lt;P&gt;POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 11:51:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1561993#M50887</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-11-30T11:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562053#M50888</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Maybe only the line is required:&lt;/P&gt;&lt;P&gt;POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;why are you writing "maybe"? As an NXP employee you should rather know exactly whether this call is required or not.&lt;/P&gt;&lt;P&gt;I'd appreciate if you'd please discuss internally how to properly initialize this ADC and how to enable which bias power. Thanks.&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 13:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562053#M50888</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-11-30T13:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562459#M50893</link>
      <description>&lt;P&gt;Hi, Daniel,&lt;/P&gt;
&lt;P&gt;Sorry, yesterday, I was busy, I did not test on EVK board&lt;/P&gt;
&lt;P&gt;I have tested on my EVK board today, for the three lines:&lt;/P&gt;
&lt;P&gt;POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;ANACTRL_Init(ANACTRL);&lt;BR /&gt;&amp;nbsp;ANACTRL_EnableVref1V(ANACTRL, true);&lt;/P&gt;
&lt;P&gt;Only the line POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC); is prerequisite.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 01:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562459#M50893</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-12-01T01:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562651#M50904</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/161010"&gt;@sanders7284&lt;/a&gt;&amp;nbsp;, I agree.&lt;/P&gt;&lt;P&gt;According to&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;, only the call to&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;is required. It's confusing why your test results differ. 🤷‍&lt;LI-EMOJI id="lia_male-sign" title=":male_sign:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:24:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562651#M50904</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-12-01T08:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562656#M50905</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Your findings correspond with the code provided in &lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/ADC-multi-channel-sampling-and-DMA-transfer-in-LPC55xx/ta-p/1304608" target="_self"&gt;this article&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;However, the example "lpadc_interrupt" (from drivers section of LPC5528 SDK) does use all three calls.&lt;/P&gt;&lt;P&gt;I wonder why this is?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 10:11:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562656#M50905</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-12-01T10:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562733#M50908</link>
      <description>&lt;P&gt;All I can tell you is, I comment that line out and PDEN_AUXBIAS is set to 1 but the ADC is still running, I have the local watch and scope with debug to confirm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanders7284_0-1669886799952.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202412iAF248D5CBF55CA8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanders7284_0-1669886799952.png" alt="sanders7284_0-1669886799952.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The other way around sets AUXBIAS to 0 as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanders7284_1-1669887544365.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202421iC5859506270AFA18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanders7284_1-1669887544365.png" alt="sanders7284_1-1669887544365.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I stand by the comment, I made a few days ago, it is like there is another location in the ANACTRL register that enables the 1V reference as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 09:44:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562733#M50908</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2022-12-01T09:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562779#M50909</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/161010"&gt;@sanders7284&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not doubt your findings. However, they conflict with what I see here with my board.&lt;/P&gt;&lt;P&gt;Did you reset / power off your board after flashing the code? I'm asking &lt;SPAN&gt;the usual code-compile-flash-debug-procedure does not reset the peripherals (at least not on my board).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I ran into this issue while testing whether the call&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC);&lt;/FONT&gt; is required. First I ran code that included this call. Then&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;I commented out this call, compiled, flashed and ran the changed code. Still, AUXBIAS in register PDRUNCFG0 was powered on (== 0x0). See this screenshot:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielholala_0-1669891522940.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202431iD63CACD65C17C17B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielholala_0-1669891522940.png" alt="danielholala_0-1669891522940.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Only after I pressed the reset button on my board, the AUXBIAS returned to reset defaults (== 0x1 == not powered). Then I saw the "half rail" ADC values again.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 10:46:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562779#M50909</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-12-01T10:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ADC always measuring half rail?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562787#M50910</link>
      <description>&lt;P&gt;Thanks for the reply, I have tried a reset and a power cycle and get the same results, with either register manipulation the ADC runs, without any is the only way I can get back to measuring half rail? this is very strange, but I am happy I can move forward with my project. You can see on my previous post AUXBAIS set and unset and in both case the ADC is running. Unfortunately there is no register entry in my debugger for the location in ATACLTR, so I can't see what that code is actually doing to the register (if anything).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 11:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ADC-always-measuring-half-rail/m-p/1562787#M50910</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2022-12-01T11:02:13Z</dc:date>
    </item>
  </channel>
</rss>

