Analog To Digital Converter (ADC) Module
The ADC module relates only with analog voltage value from any analog-output sensors or other analog circuits. Analog voltage value could be scaled to a smaller range value by using a two-resistor voltage divider circuit. For example a 50 V DC voltage could be scale to a range of lower than 5 V DC because the maximum analog reference voltage of ADC module of this device is +5 V DC.ADC Scaling Circuit Using Voltage Divider Rule
For the voltage divider of two resistor, I do a calculation as follow.
Using these two values of resistor, we could measure the analog voltage up to 50 V DC.
Program For Digital Voltmeter
A sample of program. The voltage reading is 26.37 Volts. |
Atmel Studio C source code. Click here to download source file.
Hello, please help me, I need an assembly code for this.
ReplyDeleteHi, I don't have Assembly code for this because I'm not good at Assembly language.
Delete