LPC55S69 ADC channel 8 can't read any data

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55S69 ADC channel 8 can't read any data

1,399 Views
eagan_yu
Contributor III

Hi , I would greatly appreciate your help !!!

I'm using the LPC55S69 development board ADC example .

I changed channel 0 to channel 8 and also configured pin P0_16 .

I connected 3.3V to channel 8 with the dupont line .

But I can't read any data .

I hope you can point out my mistake and correct the problem. Thank you

Eagan

Thanks & Best Regards!

Labels (1)
Tags (2)
0 Kudos
2 Replies

1,323 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello Eagan,

Did you configure the channel to working with single-ended side B in the command? The PIO0_16 has the same channel but in the side B of the module, so the only you would need to modify from the example is to define the configuration for the new pin and modify the command to point to the B side.

  /* Set conversion CMD configuration. */
    LPADC_GetDefaultConvCommandConfig(&mLpadcCommandConfigStruct);
    mLpadcCommandConfigStruct.channelNumber = DEMO_LPADC_USER_CHANNEL;
    mLpadcCommandConfigStruct.sampleChannelMode = kLPADC_SampleChannelSingleEndSideB;
    LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, DEMO_LPADC_USER_CMDID, &mLpadcCommandConfigStruct);

Let me know if this helps you.

Best regards,

Alexis Andalon

0 Kudos

1,294 Views
eagan_yu
Contributor III

Hi  Alexis_A

Thank you for your reply

My configuration is exactly what you said

Including the pin configuration to Analog

But I still can't read the data. It's always zero

0 Kudos