LPC1768 ADC instability!

caosangdecaldantemxe
Fri, 03 Jan 2020 03:10:28 +0000
Mbed OS

Hello everyone,
I’m developing software for embedded systems for medical supposes. In my latest project, I need to read the ADC value for 6 channels of LPC1768 ADC unit.
I’m having some problems though. The ADC gives me some random conversions even when I connect the ADC pin to ground.
Here is my code:
#include <LPC17xx.H>
#include “ClockConfig.h”
#include <lpc17xx_pinsel.h>
#include <lpc17xx_adc.h>

2 posts - 2 participants