lpcware

adc in lpc1768

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by dariush_abbasi868 on Tue Dec 01 03:38:54 MST 2015
Hi everybody
I am using ADC (LPCOPEN) ifor LPC1768 .
for adc3 I see that dataADC have reasonable numbers that has a bit jumb ( does not mater)
but in adc4  every time that I read it dataADC isnot the same.

I donot know why
I 've done every thing  
such as
{1,   30,  (0x0 << 7) | IOCON_FUNC2},,/* AD4_PS */
{0,   26, (0x0 << 7) | IOCON_FUNC1},/* AD2_VBAT */

is that right ?

Outcomes