<?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: Need help with ADC input on LPC55S69-EVK in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015097#M39739</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Martin,&lt;/P&gt;&lt;P&gt;Regarding the following code, I think it is correct to set the 16 bits ADC resolution with .conversionResolutionMode = kLPADC_ConversionResolutionHigh. If the code result is not what you expected, you have to check register in debugger, in other words, check the MODE bit in corresponding&amp;nbsp; ADC command low buffer registersx.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lpadc_conv_command_config_t LPADC_1_commandsConfig[1] = {&lt;BR /&gt; {&lt;BR /&gt; .sampleChannelMode = kLPADC_SampleChannelDiffBothSide,&lt;BR /&gt; .channelNumber = 8U,&lt;BR /&gt; .chainedNextCommandNumber = 0,&lt;BR /&gt; .enableAutoChannelIncrement = false,&lt;BR /&gt; .loopCount = 0,&lt;BR /&gt; .hardwareAverageMode = kLPADC_HardwareAverageCount1,&lt;BR /&gt; .sampleTimeMode = kLPADC_SampleTimeADCK3,&lt;BR /&gt; .hardwareCompareMode = kLPADC_HardwareCompareDisabled,&lt;BR /&gt; .hardwareCompareValueHigh = 0,&lt;BR /&gt; .hardwareCompareValueLow = 0,&lt;BR /&gt; .conversionResolutionMode = kLPADC_ConversionResolutionHigh,&lt;BR /&gt; .enableWaitTrigger = false&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Dec 2019 02:23:40 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2019-12-25T02:23:40Z</dc:date>
    <item>
      <title>Need help with ADC input on LPC55S69-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015094#M39736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get my LPC55S69-EVK board to do ADC conversions, but either I'm too stupid or the documentation is unclear... I would appreciate any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are demo programs for the ADC, I started with lpadc_polling.c as this seems the simplest version. My goal is to read in a differential 16-bit value but I'm lost. Here are my questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The readme.txt says I should connect a jumper to P15-2 and P15-3. There is nothing there to connect a jumper to, so am I right to assume that I am supposed to solder a connector in the board there?&lt;/P&gt;&lt;P&gt;2) The function Board_InitPins seems to configure Pin23 as ADC 0_0 - I used the pin configuration tool (MCU config tools -&amp;gt; open pins) to also configure Pin 16 as input. I have pasted the generated BOARD_InitPins below, does that look OK?&lt;/P&gt;&lt;P&gt;3) I used the peripherals tool (MCU config tools -&amp;gt; open peripherals) to configure the ADC to make differential measurements with high resolution. I have pasted the relevant code below.&lt;/P&gt;&lt;P&gt;4) To test, I ran the program, with a connection between A0 and A1 on P19, expecting the ADC to produce 0, but it's producing more or less random numbers somewhere between 1900 and 3000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints as to where I am going wrong would be very much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp; best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tool-Generated function BOARD_InitPins&lt;/P&gt;&lt;P&gt;void BOARD_InitPins(void)&lt;BR /&gt;{&lt;BR /&gt; /* Enables the clock for the I/O controller.: Enable Clock. */&lt;BR /&gt; CLOCK_EnableClock(kCLOCK_Iocon);&lt;/P&gt;&lt;P&gt;IOCON-&amp;gt;PIO[0][16] = ((IOCON-&amp;gt;PIO[0][16] &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_DIGIMODE_MASK | IOCON_PIO_ASW_MASK)))&lt;/P&gt;&lt;P&gt;/* Selects pin function.&lt;BR /&gt; * : PORT016 (pin 14) is configured as ADC0_8. */&lt;BR /&gt; | IOCON_PIO_FUNC(PIO0_16_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(PIO0_16_MODE_INACTIVE)&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(PIO0_16_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&lt;BR /&gt; * PIO1_9 analog switch is closed (enabled). */&lt;BR /&gt; | IOCON_PIO_ASW(PIO0_16_ASW_VALUE1));&lt;/P&gt;&lt;P&gt;const uint32_t port0_pin23_config = (/* Pin is configured as ADC0_0 */&lt;BR /&gt; IOCON_PIO_FUNC0 |&lt;BR /&gt; /* No addition pin function */&lt;BR /&gt; IOCON_PIO_MODE_INACT |&lt;BR /&gt; /* Standard mode, output slew rate control is enabled */&lt;BR /&gt; IOCON_PIO_SLEW_STANDARD |&lt;BR /&gt; /* Input function is not inverted */&lt;BR /&gt; IOCON_PIO_INV_DI |&lt;BR /&gt; /* Enables analog function */&lt;BR /&gt; IOCON_PIO_ANALOG_EN |&lt;BR /&gt; /* Open drain is disabled */&lt;BR /&gt; IOCON_PIO_OPENDRAIN_DI |&lt;BR /&gt; /* Analog switch is closed (enabled) */&lt;BR /&gt; IOCON_PIO_ASW_EN);&lt;BR /&gt; /* PORT0 PIN23 (coords: 20) is configured as ADC0_0 */&lt;BR /&gt; IOCON_PinMuxSet(IOCON, 0U, 23U, port0_pin23_config);&lt;/P&gt;&lt;P&gt;const uint32_t port0_pin29_config = (/* Pin is configured as FC0_RXD_SDA_MOSI_DATA */&lt;BR /&gt; IOCON_PIO_FUNC1 |&lt;BR /&gt; /* No addition pin function */&lt;BR /&gt; IOCON_PIO_MODE_INACT |&lt;BR /&gt; /* Standard mode, output slew rate control is enabled */&lt;BR /&gt; IOCON_PIO_SLEW_STANDARD |&lt;BR /&gt; /* Input function is not inverted */&lt;BR /&gt; IOCON_PIO_INV_DI |&lt;BR /&gt; /* Enables digital function */&lt;BR /&gt; IOCON_PIO_DIGITAL_EN |&lt;BR /&gt; /* Open drain is disabled */&lt;BR /&gt; IOCON_PIO_OPENDRAIN_DI);&lt;BR /&gt; /* PORT0 PIN29 (coords: 92) is configured as FC0_RXD_SDA_MOSI_DATA */&lt;BR /&gt; IOCON_PinMuxSet(IOCON, 0U, 29U, port0_pin29_config);&lt;/P&gt;&lt;P&gt;const uint32_t port0_pin30_config = (/* Pin is configured as FC0_TXD_SCL_MISO_WS */&lt;BR /&gt; IOCON_PIO_FUNC1 |&lt;BR /&gt; /* No addition pin function */&lt;BR /&gt; IOCON_PIO_MODE_INACT |&lt;BR /&gt; /* Standard mode, output slew rate control is enabled */&lt;BR /&gt; IOCON_PIO_SLEW_STANDARD |&lt;BR /&gt; /* Input function is not inverted */&lt;BR /&gt; IOCON_PIO_INV_DI |&lt;BR /&gt; /* Enables digital function */&lt;BR /&gt; IOCON_PIO_DIGITAL_EN |&lt;BR /&gt; /* Open drain is disabled */&lt;BR /&gt; IOCON_PIO_OPENDRAIN_DI);&lt;BR /&gt; /* PORT0 PIN30 (coords: 94) is configured as FC0_TXD_SCL_MISO_WS */&lt;BR /&gt; IOCON_PinMuxSet(IOCON, 0U, 30U, port0_pin30_config);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************** Generated peripherals.c********************&lt;/P&gt;&lt;P&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 LPADC_1_config = {&lt;BR /&gt; .enableInDozeMode = true,&lt;BR /&gt; .conversionAverageMode = kLPADC_ConversionAverage1,&lt;BR /&gt; .enableAnalogPreliminary = false,&lt;BR /&gt; .powerUpDelay = 0x80,&lt;BR /&gt; .referenceVoltageSource = kLPADC_ReferenceVoltageAlt1,&lt;BR /&gt; .powerLevelMode = kLPADC_PowerLevelAlt1,&lt;BR /&gt; .triggerPriorityPolicy = kLPADC_TriggerPriorityPreemptImmediately,&lt;BR /&gt; .enableConvPause = false,&lt;BR /&gt; .convPauseDelay = 0,&lt;BR /&gt; .FIFO0Watermark = 0,&lt;BR /&gt; .FIFO1Watermark = 0&lt;BR /&gt;};&lt;BR /&gt;lpadc_conv_command_config_t LPADC_1_commandsConfig[1] = {&lt;BR /&gt; {&lt;BR /&gt; .sampleChannelMode = kLPADC_SampleChannelDiffBothSide,&lt;BR /&gt; .channelNumber = 8U,&lt;BR /&gt; .chainedNextCommandNumber = 0,&lt;BR /&gt; .enableAutoChannelIncrement = false,&lt;BR /&gt; .loopCount = 0,&lt;BR /&gt; .hardwareAverageMode = kLPADC_HardwareAverageCount1,&lt;BR /&gt; .sampleTimeMode = kLPADC_SampleTimeADCK3,&lt;BR /&gt; .hardwareCompareMode = kLPADC_HardwareCompareDisabled,&lt;BR /&gt; .hardwareCompareValueHigh = 0,&lt;BR /&gt; .hardwareCompareValueLow = 0,&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 LPADC_1_triggersConfig[1] = {&lt;BR /&gt; {&lt;BR /&gt; .targetCommandId = 0,&lt;BR /&gt; .delayPower = 0,&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;void LPADC_1_init(void) {&lt;BR /&gt; /* Initialize LPADC converter */&lt;BR /&gt; LPADC_Init(LPADC_1_PERIPHERAL, &amp;amp;LPADC_1_config);&lt;BR /&gt; /* Configure conversion command 1. */&lt;BR /&gt; LPADC_SetConvCommandConfig(LPADC_1_PERIPHERAL, 1, &amp;amp;LPADC_1_commandsConfig[0]);&lt;BR /&gt; /* Configure trigger 0. */&lt;BR /&gt; LPADC_SetConvTriggerConfig(LPADC_1_PERIPHERAL, 0, &amp;amp;LPADC_1_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; LPADC_1_init();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt; * BOARD_InitBootPeripherals function&lt;BR /&gt; **********************************************************************************************************************/&lt;BR /&gt;void BOARD_InitBootPeripherals(void)&lt;BR /&gt;{&lt;BR /&gt; BOARD_InitPeripherals();&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:32:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015094#M39736</guid>
      <dc:creator>martinfierz</dc:creator>
      <dc:date>2019-12-23T16:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ADC input on LPC55S69-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015095#M39737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Martin,&lt;/P&gt;&lt;P&gt;First of all, if you want to measure differential analog voltage, you have to connect the differential signal to P28 as the following screenshot. But I do not know where the differential signal pair come from, if there is not any common ground between the signals and board, you have to connect one small capacitor between&amp;nbsp; ADC0_P and GND, another capacitor between ADC0_N and GND.&lt;/P&gt;&lt;P&gt;From software side, you can only test ADC channel 0, so&lt;/P&gt;&lt;P&gt;lpadc_conv_command_config_t LPADC_1_commandsConfig[1] = {&lt;BR /&gt; {&lt;BR /&gt; .sampleChannelMode = kLPADC_SampleChannelDiffBothSide,&lt;BR /&gt; .channelNumber = 0U, /////////////**************************************************Rong change&lt;BR /&gt; .chainedNextCommandNumber = 0,&lt;BR /&gt; .enableAutoChannelIncrement = false,&lt;BR /&gt; .loopCount = 0,&lt;BR /&gt; .hardwareAverageMode = kLPADC_HardwareAverageCount1,&lt;BR /&gt; .sampleTimeMode = kLPADC_SampleTimeADCK3,&lt;BR /&gt; .hardwareCompareMode = kLPADC_HardwareCompareDisabled,&lt;BR /&gt; .hardwareCompareValueHigh = 0,&lt;BR /&gt; .hardwareCompareValueLow = 0,&lt;BR /&gt; .conversionResolutionMode = kLPADC_ConversionResolutionHigh,&lt;BR /&gt; .enableWaitTrigger = false&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;Regarding your question:&lt;/P&gt;&lt;P&gt;1) The readme.txt says I should connect a jumper to P15-2 and P15-3. There is nothing there to connect a jumper to, so am I right to assume that I am supposed to solder a connector in the board there?&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;The P15 is used to select ADC reference voltage. you can use the default ADC reference voltage, ignore the part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The function Board_InitPins seems to configure Pin23 as ADC 0_0 - I used the pin configuration tool (MCU config tools -&amp;gt; open pins) to also configure Pin 16 as input. I have pasted the generated BOARD_InitPins below, does that look OK?&lt;/P&gt;&lt;P&gt;3) I used the peripherals tool (MCU config tools -&amp;gt; open peripherals) to configure the ADC to make differential measurements with high resolution. I have pasted the relevant code below.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;You can develop your code to set the pin as analog pin .&lt;/P&gt;&lt;P&gt;4) To test, I ran the program, with a connection between A0 and A1 on P19, expecting the ADC to produce 0, but it's producing more or less random numbers somewhere between 1900 and 3000.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;It is okay to use pin2 and pin4 of P19 as ADC differential signals input.&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;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99513iCC90B31C14F7C8CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2019 05:10:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015095#M39737</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-12-24T05:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ADC input on LPC55S69-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015096#M39738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear XiangJun Rong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the very prompt reply. I have understood a bit more about the issues, but still not fully. The example program, lpadc_polling.c is using PIO0_23 / ADC0P, which is A1 on P19. If I just run the example, and use a cable from A1/P19 to connect to the adjacent P16, either to GND or +3V3, I get what I expect, namely either 0 from the ADC or 4095.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now tried to use 16-bit ADC by adding more configuration things just after the original line in the example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// from example&lt;/P&gt;&lt;P&gt;mLpadcCommandConfigStruct.channelNumber = DEMO_LPADC_USER_CHANNEL;&lt;/P&gt;&lt;P&gt;// added by me:&amp;nbsp;&lt;/P&gt;&lt;P&gt;mLpadcCommandConfigStruct.conversionResolutionMode = kLPADC_ConversionResolutionHigh;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But instead of giving me 16 bits, I now get values from 0 to 8191, so only 13 bits. What do I need to do to get the full 16 bits?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I have tried to configure it in differential mode by adding another line&amp;nbsp;&lt;/P&gt;&lt;P&gt;mLpadcCommandConfigStruct.sampleChannelMode = kLPADC_SampleChannelDiffBothSide;&lt;/P&gt;&lt;P&gt;Then I connected A0 and A1 both to GND, and sometimes the example program says 0 as output as expected, but sometimes also 8191; when I connect A0 to 3V3 and leave A1 on GND, I get 4097, when I switch the two I get 4094 - that looks like it's working perfectly (2's complement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me again to understand how I can do a 16 bit conversion rather than 13 bits?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp; Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2019 08:13:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015096#M39738</guid>
      <dc:creator>martinfierz</dc:creator>
      <dc:date>2019-12-24T08:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ADC input on LPC55S69-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015097#M39739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Martin,&lt;/P&gt;&lt;P&gt;Regarding the following code, I think it is correct to set the 16 bits ADC resolution with .conversionResolutionMode = kLPADC_ConversionResolutionHigh. If the code result is not what you expected, you have to check register in debugger, in other words, check the MODE bit in corresponding&amp;nbsp; ADC command low buffer registersx.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lpadc_conv_command_config_t LPADC_1_commandsConfig[1] = {&lt;BR /&gt; {&lt;BR /&gt; .sampleChannelMode = kLPADC_SampleChannelDiffBothSide,&lt;BR /&gt; .channelNumber = 8U,&lt;BR /&gt; .chainedNextCommandNumber = 0,&lt;BR /&gt; .enableAutoChannelIncrement = false,&lt;BR /&gt; .loopCount = 0,&lt;BR /&gt; .hardwareAverageMode = kLPADC_HardwareAverageCount1,&lt;BR /&gt; .sampleTimeMode = kLPADC_SampleTimeADCK3,&lt;BR /&gt; .hardwareCompareMode = kLPADC_HardwareCompareDisabled,&lt;BR /&gt; .hardwareCompareValueHigh = 0,&lt;BR /&gt; .hardwareCompareValueLow = 0,&lt;BR /&gt; .conversionResolutionMode = kLPADC_ConversionResolutionHigh,&lt;BR /&gt; .enableWaitTrigger = false&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2019 02:23:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015097#M39739</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-12-25T02:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ADC input on LPC55S69-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015098#M39740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Xiangjun Rong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed your suggestion, and used the memory monitor in debug mode to inspect the Address 0x500A0100 (ADC base address 0x500A000, Offset for command low register 1 0x100); The value in that register is 0x00000080, i.e. bit 7 is set as it should be for the high resolution mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can also say that in normal mode, I get value 4095 when connecting A1 to 3V3 as expected, in high resolution mode I get value 8191, not as expected (a 13 bit value instead of 16 bit). This is for single-ended conversions, not differential as I did not want to make things more complicated than necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So clearly changing to high-resolution mode of the ADC does change something, but it only gives me 1 bit more for 13 bits, rather than 4 additional bits for the 16 bits that it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I am missing that I need to do for 16 bit conversion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp; Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2019 12:10:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Need-help-with-ADC-input-on-LPC55S69-EVK/m-p/1015098#M39740</guid>
      <dc:creator>martinfierz</dc:creator>
      <dc:date>2019-12-25T12:10:53Z</dc:date>
    </item>
  </channel>
</rss>

