SEARCH
TOOLBOX
LANGUAGES
modified on 10 April 2012 at 14:32 ••• 10,329 views

Lincoln DAC Wave Generation Example

From Manuals

(Difference between revisions)
Jump to: navigation, search
(Compatibility Lincoln 60, Lincoln 60E)
 
Line 8: Line 8:
[[Image:Lincoln_dacwavegenerate.png|center|]]
[[Image:Lincoln_dacwavegenerate.png|center|]]
 +
[[Image:Lincoln_dac_sine.png|center|]]
[[Image:Lincoln_dac_sine.png|center|]]
 +
[[Image:Lincoln_dacwavegenerate3.png|center|]]
[[Image:Lincoln_dacwavegenerate3.png|center|]]
 +
[[Image:Lincoln_dacwavegenerate4.png|center|]]
[[Image:Lincoln_dacwavegenerate4.png|center|]]

Current revision as of 14:32, 10 April 2012

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 a sine, a triangle, or a escalator wave. 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.