Posted: Sun Feb 14, 2016 9:08 pm Post subject: The big difference between AVR simulator and Real hardware
Please help,
I work on some time critical project and I found that time (cycl.) need for
GETADC is not like in AVR simulator. With DSO I measured 80 times bigger value !
Simulation time is likely pure execution time of ASM code and does not reflect actual conversion time.
If it's time critical, then the auto setting of config adc and the command GetADC is probably not the right thing anyway.
Reading the data sheet and manually setting the prescaler is self-evident.
The "auto" setting chooses the greatest ADC-prescaler and such the slowest conversion rate, also the GetADC always takes a dummy sample, thus needs two times a sampling cycle.
And btw., your problem whatsoever is in no way more important than others. Coloring the code in red instead of using proper code tags doesn't show most clever behavior.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum