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

ADC conversion not working in SimulIde 1.0.0

3 posters

Go down  Message [Page 1 of 1]

Fabian I.



Hello,

While working on a project, we have noticed a bug regarding the ADC functionality in SimulIde 1.0.0 with use of an atmega328. The problem which seems to be specific to SimulIde 1.0.0, is that the converted digital value is always 0 for any input voltage.

To illustrate the issue, we have created a minimal working example which is functioning properly in SimulIde 0.4.15 but doesn’t in SimulIde 1.0.0. It consists of a voltage divider and the MCU transmitting the converted value.

We attached the example to this post.

Could you help us with this issue? Thank you a lot and thank you for your great work!
Attachments
ADC conversion not working in SimulIde 1.0.0 AttachmentBug_Example.zip
You don't have permission to download attachments.
(11 Kb) Downloaded 3 times

arcachofo

arcachofo

Hi.
I think this bug is already solved.

Thanks for reporting anyway.

Fabian I.



Ok we have not been on the most recent version, however on revision 891 it doesn’t work for us also.
What is new in revision 891 is that when we load in the circuit there is a couple errors that have not been there before:

ERROR: Register not found: ""
ERROR: Register not found: "EIND"
ERROR: Register not found: "RAMPZ"

arcachofo

arcachofo

891 is not a good revision to build.

Fabian I.



What would be a good version to build? Sorry we are not the most experienced with Launchpad.

arcachofo

arcachofo

I did some test and ADC is working for me.

The problem in your circuit is that Aref Pin is not connected.
In 1.0.0 you need to connect it.

arcachofo

arcachofo

What would be a good version to build? Sorry we are not the most experienced with Launchpad.
Maybe 872 is more stable.

Anyway these errors are not new, just that before they were not reported:

ERROR: Register not found: ""
ERROR: Register not found: "EIND"
ERROR: Register not found: "RAMPZ"

arcachofo

arcachofo

And sorry for the short replies.. I'm in the middle of several things right now.

BTW... Thanks for testing and reportig.

Fabian I.



Thank you very much for your super fast help it works now.

Have a very fine day.

marroja

marroja

ADC conversion not working in SimulIde 1.0.0 330_3312



Built in 1.10

The ADC's I have used in the real world normally stay at the full voltage reading once the reference voltage exceeded.

In the image, the ADC shows full reading on 3.3V but acts like a "modulo" function once the voltage goes higher than the reference.

ADC text is inverted when pin number grows. (Restarting doesn't fix it).

arcachofo

arcachofo

Hi marroja, thanks for reporting.

The ADC's I have used in the real world normally stay at the full voltage reading once the reference voltage exceeded.

In the image, the ADC shows full reading on 3.3V but acts like a "modulo" function once the voltage goes higher than the reference.
Solved at Rev 1934.

ADC text is inverted when pin number grows. (Restarting doesn't fix it).
Good catch, this one affects all Logic Components.
Solved at Rev 1935.

Sponsored content



Back to top  Message [Page 1 of 1]

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