SEARCH
TOOLBOX
LANGUAGES
modified on 9 April 2012 at 13:36 ••• 3,618 views

Lincoln ADC Hardware Trigger Example

From Manuals

(Difference between revisions)
Jump to: navigation, search
Support (Talk | contribs)
(Created page with '==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]== The NXP LPC1769 microco…')

Current revision as of 13:36, 9 April 2012

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 channel 2 of the ADC by using a hardware trigger from the USER button. Everytime the user button is pressed a reading is taken on channel 2 of the ADC. The screen output is shown below. Note that the voltages are shown in integer format. The 12-bit value goes 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.