Lincoln DAC Example
From Manuals
(Difference between revisions)
(→Compatibility Lincoln 60, Lincoln 60E) |
|||
| Line 5: | Line 5: | ||
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: | 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: | ||
[[Image:Lincoln-60-ADC.png|center|alt=Lincoln-60|frame|<div align="center">'''Lincoln: Analog to Digital connector pin out]] | [[Image:Lincoln-60-ADC.png|center|alt=Lincoln-60|frame|<div align="center">'''Lincoln: Analog to Digital connector pin out]] | ||
| + | </div> | ||
| - | 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. | + | 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. |
[[Image:Lincoln_dac1.png|center|]] | [[Image:Lincoln_dac1.png|center|]] | ||
Revision as of 23:26, 14 March 2011
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:
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.


