SEARCH
TOOLBOX
LANGUAGES
modified on 14 March 2011 at 23:26 ••• 21,726 views

Lincoln DAC Example

From Manuals

Revision as of 23:26, 14 March 2011 by Support (Talk | contribs)
Jump to: navigation, search

Digital to Analog Converter (DAC)

Compatibility Lincoln 60, Lincoln 60E

The NXP LPC1769 microcontroller used in the Lincoln controller line supports one channel of 10-bit DAC that has an update rate of 1 MHz. The DAC signal is available on pin 7 on the following header:

Lincoln-60
Lincoln: Analog to Digital connector pin out

This example shows how to use the DAC to generate triangle and square waves. The signal output is shown below. In integer format the 10-bit outputs go between 0 and 1023 (0x03FF) for the range 0.00V to 3.30V in steps of 3.22 mV. 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.