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!
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
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