Hi folks.
Just trying to get my head around some things here. I’ve normally used chips/modules that ran directly on 5V and so if the have an analogue output it would be between 0 and 5v(approx)
On many of them the analogue out volts would be from 0 to 4.7v - but the FEZ mini is a 3.3v device.
Can the A/D compensate for the higher voltage and if so what value would I be reading via the A/D i.e. 4.7V > 3.3v so reading 255 for anything above 3.3? or will be 4.7V = 240
you can’t messure past 3.3V. I don’t shure, but you can hurt you mini if you pass 5v to analog.
Luckily there is simple solution for you: put a resistor between mini and your analog output, and a second resistor (exactly double in resistance) wich is connected to mini analog pin and ground. It should make your analog output 0-3.3V from 5V.
I meassured 49.5us per analog read without scaling.
Also, take into account the input impedance of the ADC, I’m not familiar with nxp Specs but input impedance in microcontrollers are in the range of 20 to 100kohm so using 100k and 200k to make a voltage divider would be wrong.