Just to alert anybody else who may have been caught out by this change. Readad10 now does what is says. In previous version this would also return a 12 bit number from chips so equiped.
I was doing some tweaking to my spectrometer and it stopped giving the correct reading, naturally I thought that the alignment had gone out and wasted a lot of time.
So if you've been using readad10 for 12-bit ADC chips this needs to be changed to readad12 for newer versions of the compiler.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's difficult to see how backward campatibility could be achieved as readad10 was fortuitiously working for 12 bit ADCs. Though would anybody with a 12 bit ADC would want to truncate to 10 bits? Maybe we should have a 'readadword' which would work for both 10 and 12 bit devices.
Last edit: David Stephenson 2016-08-31
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just to alert anybody else who may have been caught out by this change. Readad10 now does what is says. In previous version this would also return a 12 bit number from chips so equiped.
I was doing some tweaking to my spectrometer and it stopped giving the correct reading, naturally I thought that the alignment had gone out and wasted a lot of time.
So if you've been using readad10 for 12-bit ADC chips this needs to be changed to readad12 for newer versions of the compiler.
Thanks for the alert. I will investigate now.
It is one of our goals to maintain backwards compatibility.
I will look into asap.
It's difficult to see how backward campatibility could be achieved as readad10 was fortuitiously working for 12 bit ADCs. Though would anybody with a 12 bit ADC would want to truncate to 10 bits? Maybe we should have a 'readadword' which would work for both 10 and 12 bit devices.
Last edit: David Stephenson 2016-08-31
@David. Ping me please. I have a replacement a-d.h to provide backwards compatbility.
:-)