ADC on LPC1830

cancel
Showing results for 
Search instead for 
Did you mean: 

ADC on LPC1830

23 Views
NXP Employee
NXP Employee
Content originally posted in LPCWare by vincentl on Tue Mar 04 06:17:00 MST 2014
Hi there,

I'm new with these microcontrollers and I need to read out the ADC, where can I find the information needed to initialise and read out the ADC?
Labels (1)
0 Kudos
1 Reply

6 Views
NXP Employee
NXP Employee
Content originally posted in LPCWare by vincentl on Thu Mar 06 05:41:32 MST 2014
So currently I'm using these commands for the initialisation and the start of the conversion:

ADC_Init(LPC_ADC0, 150, 8);
ADC_ChannelCmd(LPC_ADC0, 5, ENABLE);
ADC_StartCmd(LPC_ADC0, ADC_START_CONTINUOUS);

And:

ADC_ChannelGetData(LPC_ADC0, 5)

to read out the data! But without any result
0 Kudos