ADC on LPC2129
Here goes the second post on ' How to program the onboard adc in LPC2129'
As said earlier LPC2129 has 4 onboard 10-bit ADC. Also these ADC's are internally multiplexed. So here i give out a snippet of how you could access the ADC's on LPC21xx.
At the time of writing this post,i dnt believe that any further explanation is needed . In case you need please refer to the end of line comment or feel free to comment ont he post.
#include 'LPC21xx.H' // LPC21xx definitions
static unsigned short ADC_Config(unsigned char channel)
{
unsigned int i;
ADCR = 0x00200300
Related articles
How To to build an ISP for Atmega 128
A microprocessor Program to convert BCD pack and Unpack number for 8085.
Dely loop in AVR
How to measure + and - 5 Volts using PIC microcontroller PIC1F4550
Microprocessor Simulator on Linux [ Screenshot tour ]
