Menu

readad12, readad10

2016-08-26
2016-10-11
  • David Stephenson

    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.

     
  • Anobium

    Anobium - 2016-08-27

    Thanks for the alert. I will investigate now.

    It is one of our goals to maintain backwards compatibility.

    I will look into asap.

     
  • David Stephenson

    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
  • Anobium

    Anobium - 2016-10-11

    @David. Ping me please. I have a replacement a-d.h to provide backwards compatbility.

    :-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.