Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 02:00 08 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : A/D overflow on micromite

Author Message
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2292
Posted: 06:07pm 29 Mar 2014
Copy link to clipboard 
Print this post

a quick question for geoff:

what happens if the A/D converter in the micromite overflows? is this condition handled?

the obvious answer is that, as currently implemented, it can not (on the face of it) overflow. but what if it could due to external noise getting into the system? i'm particularly interested in the possibility of an overflow occurring while reading an analog input within a 10mS timer ISR, and if said overflow could create a delay situation (of tens of milliseconds) that may cause interrupts to be lost.


cheers,
rob :-)
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3669
Posted: 09:03am 30 Mar 2014
Copy link to clipboard 
Print this post

I don't understand how it could? It's just a value in a range and that's it, isn't it? It can hit the end of the range, and stay there at worst - right?

John
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2292
Posted: 07:07pm 30 Mar 2014
Copy link to clipboard 
Print this post

most A/D converts will raise an overflow condition, and may require some sort of 'reset' be performed to recover. i have no knowledge of the details of the converter in the 32MX150, hence why i ask.

it would be undesirable for an A/D converter to peg at the top value, as it would then be producing a measurement that appeared to be valid, but that may be just a fraction of the voltage being applied.

hence, given the micromite appears to return 3.3 as the top value when an analog pin is tied to Vcc, a reading of 3.3 should be taken as an overflow. unless, of course, you already know that the volatge being measured lies between 0v and Vcc.


rob :-)Edited by robert.rozee 2014-04-01
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024