(Created page with "category: LPC1768 Tutorials =Objective= In this tutorial we are going to discuss how to use the inbuilt LPC1768 DAC.<br> Finally we will see how to use the ExploreEmbedded...")
 
Line 6: Line 6:
  
 
=LPC7168 DAC Module=
 
=LPC7168 DAC Module=
<br><br><br><br>
+
Lpc1768 has in built DAC with following features.
 +
#10-bit digital to analog converter
 +
#Resistor string architecture
 +
#Buffered output
 +
#Power-down mode
 +
#Selectable speed vs. power
 +
#Maximum update rate of 1 MHz.
  
 +
{| class="table table-striped table-hover table-condensed table-bordered"
 +
|-class="info"
 +
!Adc Channel || Port Pin || Pin Functions || Associated PINSEL Register
 +
|-                                                             
 +
|AD3|| P0.26  || 0-GPIO, 1-<b>AD0[3]</b>, 2-AOUT,        3-RXD3    ||20,21 bits of PINSEL1
 +
|}<br><br> 
  
 +
$$Output voltage of DAC = (Vref * InputValue)/MAX_VALUE =  (3.3 * InputValue)/1023 = InputValue * 3.22 mv.
 +
 +
<br><br><br><br>
  
 
=DAC Registers=
 
=DAC Registers=

Revision as of 18:12, 21 April 2016

Objective

In this tutorial we are going to discuss how to use the inbuilt LPC1768 DAC.
Finally we will see how to use the ExploreEmbedded DAC libraries.




LPC7168 DAC Module

Lpc1768 has in built DAC with following features.

  1. 10-bit digital to analog converter
  2. Resistor string architecture
  3. Buffered output
  4. Power-down mode
  5. Selectable speed vs. power
  6. Maximum update rate of 1 MHz.
Adc Channel Port Pin Pin Functions Associated PINSEL Register
AD3 P0.26 0-GPIO, 1-AD0[3], 2-AOUT, 3-RXD3 20,21 bits of PINSEL1


$$Output voltage of DAC = (Vref * InputValue)/MAX_VALUE = (3.3 * InputValue)/1023 = InputValue * 3.22 mv.





DAC Registers






Steps







Code