Modul 8: ADC (Analog to Digital Conversion)
Amba to Digital
1. Analog vs Digital Signal
1.1 Analog Signals Analog signals are signals that are continuous — meaning their values can chan...
2. Analog to Digital Converter (ADC)
2.1 Understanding ADC ADC (Analog to Digital Converter) is a component or circuit that converts a...
3. Why is ADC Needed in Embedded Systems?
The real world is analog — all physical phenomena (temperature, light, sound, pressure, humidity...
4. ADC In ATmega328p
4.1 ATmega328p ADC Specifications The ATmega328p (used in the Arduino Uno) has a built-in ADC wit...
5. Important ADC Parameters In ATmega328p
5.1 Reference Voltage (Vref) Reference Voltage (Vref) is the maximum voltage that serves as the f...
6. Specific Registers for ADC In ATmega328p
6.1 ADMUX — ADC Multiplexer Selection Register ADMUX is an 8-bit register that handles the basic ...
7. ADC Conversion Flowchart
Here is the complete workflow for using the ADC on the ATmega328p: The flowchart above illustrat...
8. ADC Assembly Code Example
8.1 Full Code Here is an example of AVR Assembly code to read the ADC from the ADC0 pin using the...