Today I would like to present you with the latest firmware changes for AMC.
The difference is so big that I thought it makes a nice piece for the news page.
I was hopping to fix the really noisy ADC function for several years, and I finally
got it. Now it follows closely the potentiometer and the measurements are not
affected by motor power noise or other parasitic noise from environment.
To achieve that noise reduction I made my own routine to access directly the ADC registers
and handle their sampling timing with a interrupt. This gave me a great deal of freedom
to make the sampling time of each channel as fast as 7us (microseconds) or 0.000007sec.
Just for comparison, before was 250us using standard library code.
This allowed me to also increase the program cycle speed up to 9000 times (when not receiving),
and up to 7000 times per second when receiving data from the computer.
See the comparison video and the timing diagrams below:
More info on the Project thread here: http://www.x-sim.de/forum/viewtopic.php?f=39&t=132
Thanks