Memory transfer to peripheral(DAC) using DMA

This is one of the recent projects involving microcontrollers to develop new experiments for COE 306: Embedded Systems. This project fills the gap in the course where there is no lab experiment involving Direct Memory Access (DMA). I have taken a portion of a PCM WAV file of mario song and converted to C array. Next, I configured the DMA to send the bytes one by one to the Digital to Analog (DAC) register. Programming the LPC1768 was done in a bare metal way. Each register was configured by hand (i.e. no external libraries were used). The DAC of the LPC1768 did not have enough power to drive the speakers. I needed to add an audio amplifier and connect the output to headphones.


Demo Video: