Escolar Documentos
Profissional Documentos
Cultura Documentos
AIM:- Write a program for interfacing Analog Input (ADC) with LPC2148
How to received and interpret analog data (i.e., 'interacting with the Real world')
Almost every dial or knob on any modern electronic device, for example, is probably analog.
Since our microcontrollers are digital, what that means is that we need to find a way to convert
those analog signals into something 'digital' that our microcontroller can actually understand.
LPC2148 has two of them built in. They work by converting voltage to a numeric value that the
microcontroller can understand. For example, with an internal voltage of 3.3V (which is the
Vref on the LPC2148) and your ADC set to return the maximum 10-bit data (meaning you have
possible values between 0 and 1023), 0.0V would return 0, 3.3V (or higher) would return 1023,
and 1.65V would return ~512.