General > General Technical Chat
Microchip MCP3550 - is the data sheet a load of tosh?
<< < (5/5)
SiliconWizard:

--- Quote from: peter-h on October 30, 2023, 05:45:02 pm ---
--- Quote ---I don't like the fact that you keep SPI3 locked for the duration of the conversion
--- End quote ---

You are right - I changed it. All still works :)

I struggle to think of a way to avoid the 0xffff case. It means that if you power cycled the unit at ADC chip temp of (what the sensor thinks is) exactly -0.03125C, it would disable the ADC option. I can live with that :)

--- End quote ---

You can issue a few readings instead of just one, the probability that you'd get several times in a row exactly the same temperature reading - if that was actually the measured temperature - given its resolution here, looks very low. This way you won't get into this potential pitfall, which, while probably still a low probability, is higher than getting the same repeatedly.
peter-h:
My code which tests for whether the analog option is present is actually looking for > +150C as meaning "not installed".
Navigation
Message Index
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod