SEARCH
TOOLBOX
LANGUAGES
modified on 9 April 2012 at 13:01 ••• 4,374 views

Lincoln ADC Polling Example

From Manuals

Jump to: navigation, search

Analog to Digital Converter (ADC) Polling Example

Compatibility Lincoln 60, Lincoln 60E

The NXP LPC1769 microcontroller used in the Lincoln controller line support eight single ended 12-bit analog inputs with a sampling rate up to 250 kilo-samples/sec (kSPS). These signals are available on the following header:

Lincoln-60
Lincoln: Analog to Digital connector pin out

This example shows you how to read voltages from the 8 ADC channels. The screen output is shown below. Note that the voltages are shown in both integer and floating point formats. In integer format the 12-bit values go between 0 and 4095 (0x0FFF) for the range 0.00V to 3.30V resulting in an accuracy of +/- 402.8 µV. Note that voltages over 3.3V should not be applied to the ADC inputs as they could damage the microcontroller. Op-amps or other alternatives should be used to implement scaling and isolation. The first UART, which is connected to the COM1 on the Lincoln microcontroller board, is configured for 115,200 bits per second, and 8-n-1 mode. When the program is started a message will be printed to the terminal.