Page 1 of 1

Problems with analog simulation using arduino mega 2560

Posted: Thu May 22, 2014 7:06 pm
by outlawstc
I am having problems with simulating the arduino mega 2560 analog channels..
I set it up with the regular potentiometer set to channel 0
Then i make a int called Pot1
I use the Getint macro
The simulation debugger will only return 0 at any setting of the simulated pot
I open op the Analog input window and it will return byte, percent and Uint values but will not return a Raw
I change my target chip to arduino uno pdip and all works well.

I have not seen how it reacts on the real micro put i would assume if the simulation has a problem most likely the real chip will to.. plus its not very helpful with testing and debugging when its not working in sim.

Br,
Slade

Re: Problems with analog simulation using arduino mega 2560

Posted: Thu May 22, 2014 10:36 pm
by outlawstc
This is a software bug and not a bug in my flowchart

Re: Problems with analog simulation using arduino mega 2560

Posted: Fri May 23, 2014 1:10 am
by outlawstc
This problem occurs with the arduino1280 , arduino mega 2560 adk, and arduino mega 2560 from the ones i have checked... A simple way to work around this for now is to select the chips from the AVR atmega list and not the arduino list.

Re: Problems with analog simulation using arduino mega 2560

Posted: Fri May 23, 2014 9:09 am
by LeighM
Thanks. I've logged the bug for fixing asap.
Leigh