element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Experts and Guidance
  • Technologies
  • More
Experts and Guidance
Ask an Expert Forum How to interpret MAX11203 AD-converter self calibration bitvalue?
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Experts and Guidance requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 6 replies
  • Subscribers 42 subscribers
  • Views 430 views
  • Users 0 members are here
  • ad converter
  • MAX11203
  • self calibration
Related

How to interpret MAX11203 AD-converter self calibration bitvalue?

Engztrom
Engztrom 3 days ago

Hi,

What is the exact relationship between the self calibration gain bitvalue and the actual scaling it does?
E.g.what bitvalue would be measured with a saturated input (maximum voltage measured) and
the self calibration gain set to, say, 0xBFFFFF and the self calibration offset set to 0x000000?
The datasheet is very vague about that. This is all it says:
:
"SCGC: Self-Calibration Gain Register

The self-calibration gain register is a 24-bit read/write register. The data written/read to/from this register is clocked
in/out MSB first. This register holds the self-calibration gain calibration value. The format is always in two’s complement
binary format. A write to the self-calibration register is allowed. The written value remains valid until it is either rewritten
or until an on-demand self-calibration operation is performed, which overwrites the user-supplied value. Any attempt
to write to this register during an active calibration operation is ignored.
The self-calibration gain value is used to scale the self-calibration offset corrected conversion result before the system
offset and gain calibration values have been applied, provided the NOSCG bit in the CTRL3 register is set to 0. The
self-calibration gain value scales the self-calibration offset corrected conversion result by up to 2x or can correct a gain
error of approximately -50%. The gain is corrected to within 2 LSB."

And it also mention SCGC=0xBFD345 and SCOC=0x00007E as an example of values you can get when the self calibration is carried out.

Thanks for any help!

  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett 2 days ago +1
    I had a look at the data sheet yesterday and it didn't make too much sense to me either ! I think your best bet is to get the part connected up with an adjustable DC input and some means of tweeking…
  • Engztrom
    Engztrom 9 hours ago in reply to shabaz +1 verified
    It is important because (whatever the datasheet says) it seems to be necessary to have some kind of calibration values set. In theory (as we interpret the very fuzzy datasheet) it should work fine skipping…
  • shabaz
    shabaz 8 hours ago in reply to Engztrom +1 verified
    Hi, Regarding " But what exactly does these written down bitvalues represent? " That's my point - why does it matter? _If_ you deem that you have to do calibration anyway (whether it is self calibration…
  • shabaz
    0 shabaz 3 days ago

    Hi,

    Just adding an answer for now unless you find a better one.. I don't know the relationship you request, but I'm curious, is it important? If it is not in the datasheet, it may vary slightly from part to part. I have not read the datasheet, but it seems to me that if you're not doing auto-calibration and are instead doing self-calibration, then any value could be written and then adjusted/trimmed up or down until the output is at the expected value. If it takes too long to trim then an algorithm could be coded to home in to a value within (say) a couple of dozen value attempts worst-case.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett 2 days ago

    I had a look at the data sheet yesterday and it didn't make too much sense to me either !

    I think your best bet is to get the part connected up with an adjustable DC input and some means of tweeking the registers and reading the ADC  - then have  a play with it to see what it does,

    The thing that confused me about the desctiption was the refence to the register values being 2s compliment - which implies signed and then the example gain settings are negative. My guess is that the offset is 2s compliment but that the gain is unsigned - but you'll need to test it.

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Engztrom
    +1 Engztrom 9 hours ago in reply to shabaz

    It is important because (whatever the datasheet says) it seems to be necessary to have some kind of calibration values set.
    In theory (as we interpret the very fuzzy datasheet) it should work fine skipping both self calibration and system calibration (this is actually the default setting) and settle with the 60% scale that will then be given (presumably to have margins for component variations), but... we can't get that to work at all!
    Without any calibration factors set the output from the AD-converter becomes very non-linear (why??)
    And with the ratiometric connection we use it's not possible to carry out any of the built-in calibration methods either.
    But it seems to work fine when writing down the hardcoded calibration values 0xBFFFFF and 0x000000 (or something close to that) and then do our own factory calibration in software. But what exactly does these written down bitvalues represent?
    And will it always work with these values, with respect to component variations?
    (I.e. what are the margins?)
    .
    .

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Engztrom
    0 Engztrom 8 hours ago in reply to michaelkellett

    Yes, the datasheets are very crude, confusing and (possibly) erroneous!
    In order to implement self- or system calibration we would have to tweak the hardware so ratiometric connection is not used during calibration (that is Plan B...)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    +1 shabaz 8 hours ago in reply to Engztrom

    Hi,

    Regarding "But what exactly does these written down bitvalues represent?"

    That's my point - why does it matter? _If_ you deem that you have to do calibration anyway (whether it is self calibration, or auto calibration), then that can be achieved with zero knowledge of what the values represent, although as Michael says, you could just try it and see if you can identify the pattern as you adjust the value.

    Regarding "And will it always work with these values, with respect to component variations?" that would be an assumption that I do not think one can make unless it was explicitly in the datasheet. Are you trying to assume that it might be similar within a batch or something? I think it is expected to be a different calibration value per part.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Engztrom
    0 Engztrom 8 hours ago in reply to shabaz

    Well, if it only worked as the datasheet suggests, then a 60% scale should give sufficient margins without calibration, which would be sufficient for us.
    But if calibration values to get 60% must be written down (despite what the datasheet says), then I would have to know what values to use for 60%.
    Else we would have to launch "Plan B"...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube