LPC2148 Dac
LPC2148 Dac
Mrs. S. A. Pore
Assistant Professor
Electronics Department
DKTES’ TEI, Ichalkaranji
Objectives
• Understand working of DAC.
• Write and execute program to generate sine wave using DAC.
• Discuss logic to generate different waveforms using DAC.
Introduction
• ARM7 LPC2148 MCU incorporates a 10 bit DAC and provides buffered
analog output
• LPC2148 DAC has only 1 output pin, referred to as AOUT.
• The Analog voltage at the output of this pin is given as:
VAOUT = (VALUE * VREF)/ 1024
• VALUE = 10-bit digital value
• VREF = Input reference voltage
• VAOUT = Output of DAC
Pins related to LPC2148 DAC
Sr. No. Pin Description
1 AOUT (P0.25) Analog Output pin. Provides the converted Analog signal which is referenced to VSSA
i.e. the Analog GND. Set Bits[19:18] in PINSEL1 register to [10] to enable this function.
2 VREF This is the voltage reference pin used by DAC for conversion.
3 VDDA, VSSA VDDA is Analog Power pin and VSSA is Ground pin used to power the DAC module.
These are generally same as VCC and GND but with additional filtering to reduce
noise.
DACR (DAC Register)
• DACR is a 32-bit register. 31 17 16 15 6 5 0