SEARCH
TOOLBOX
LANGUAGES
modified on 10 April 2012 at 19:38 ••• 13,974 views

Lincoln SSP DAC Example

From Manuals

Jump to: navigation, search

Compatibility Lincoln 60, Lincoln 60E

The I/O Plus option of the Lincoln controller line includes a 4-channel 12-bit DAC via the SSP serial synchronous port. These signals are available in the following header:

Lincoln-60
Lincoln 60 Digital to Analog connector pin out

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.



This example shows how to use the DAC to generate triangle and square waves. The signal output is shown below. In integer format the 12-bit outputs go between 0 and 4095 (0x0FFF) for the range 0.00V to 3.30V in steps of 806 µV. Op-amps or other alternatives should be used to implement scaling and isolation.