Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Reference voltage for ADC inside ATmega32

2 posters

Go down  Message [Page 1 of 1]

vranik



I have a circuit which contains processor ATmega32. I need external reference voltage 2.5 V. The behaviour in SimulIDE 0.3.12 is correct and the value from ADC corresponds to reference voltage. When I disconnect the reference voltage it is used default voltage 3.3 V. But the behaviour in SimulIDE 0.4.14 is different. I am not able to switch to external reference voltage and the reference voltage 3.3 V is used all the time.
I use the SimulIDE in openSuse 15.2.



Last edited by arcachofo on Fri Dec 24, 2021 3:19 am; edited 1 time in total (Reason for editing : Marked as solved (green color))

arcachofo

arcachofo

Do you have an example at hand (circuit+firmware)?

vranik



The test file is at http://test.vranik.info/Test.simu and the hex file for the MCU is at http://test.vranik.info/main.hex. It is an ampermeter and the measured current in miliamps is displayed at the bottom left corner. When the 1 amp is set the number is "C:998" in the SimulIDE 0.3.12. This is correct. But the number is "C:776" in the SimulIDE 0.4.14. This is wrong and it corresponds to the reference voltage for ADC 3.3 V instead of 2.5 V.

arcachofo

arcachofo

Thanks, i will have a look.

arcachofo

arcachofo

Yes, you are right, it was a bug there.

Solved in 0.4.14 rev 30 and trunk rev 103.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum