4/7/2024 0 Comments Atmel 328p pinout![]() In that case the 10 bits value up to will be divided over 2V. This is important for the precision of the 10 bit read value. Bit 6 and 7 tells the Atmegap against what reference the voltage on the pin should be measured. For a proper initialization a few registers have to be set.įor single conversion mode not all registers are used therefor I only describe the used registers in this project. I use the single conversion mode in this project. Free running mode means the ADC samples continuously and single conversion mode means, only sample when you order to do so. ![]() The ADC can be set to free running mode or single conversion mode. ![]() To change the voltage at the analog pin I used a 10k potmeter. There are 6 analog ports and 2 are already used for the lcd.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |