/MP3_Player_using_ARM_Cortex_M3

👯 MP3_Player_using_ARM_Cortex_M3 👯 this project is an implementation of R2R DAC

Primary LanguageC

# MP3_Player_using_ARM_Cortex_M3

Describtion

this project is an implementation of R2R DAC using Arm Cortex m3 cpu "stm32f108c8"

About DAC

DAC Types

Types of DACs
1. Summing Amplifier
Since digital to analog conversion is simply a weighted sum of the binary input, a circuit called a summing amplifier is used. This is basically an op-amp amplifier with multiple resistors connected to one input. The junction where the resistors meet is called the summing junction or the virtual ground. The binary input goes into the resistors and the analog output is obtained on the output of the op-amp. What makes this circuit work is the resistors – each resistor has to be carefully chosen and matched in order to obtain an accurate analog output. The more bits you have, the more different values of resistors you need – and this is not always practical. The limitations can be overcome by using the next method.
2. R-2R Ladder
This is the simplest type of DAC and needs only two resistor values arranged in a ladder. You can think of this as a somewhat complex voltage divider, though the math is quite complex. The binary input goes into the 2R resistors and the output is obtained at the bottom of the ladder.
3. PWM DAC
This is the type of DAC that most of us have used without even knowing it!

The popular Arduino microcontroller has the capability to output analog signals using a PWM signal. On the outset the PWM signal looks like a binary waveform with only high and low peaks with a variable duty cycle (ratio of on time to time period).

However, this is intended to be used with a RC filter to convert the PWM signal into a voltage value by filtering out the AC component and leaving behind the DC component. The voltage output is proportional to the duty cycle of the input – the higher the duty cycle the greater the output voltage of the filter.

Static Design

Component in MCAL Layer
GPIO,SYSTIC,RCC,UART
Component in HAl
UART,DAC

How to Run this Project and Tool

STM32Cube

Demo

Link_in_YouTube