if VBD is 16v,the mcu IO will get a 16v*33k/(33k+100k)=3.96v,this is a good value for a 5v powered MCU
but if change VBD to 26v,the mcu IO will get a 26v*33k/(33k+100k)=6.45V,in this case,does the mcu can still get a 5v input(the mcu will think the external power is 5v/33k*(100k+33k)=20.1V)?or the mcu IO will get a low level even damaged?
if VBD is 16v,the mcu IO will get a 16v*33k/(33k+100k)=3.96v,this is a good value for a 5v powered MCU
but if change VBD to 26v,the mcu IO will get a 26v*33k/(33k+100k)=6.45V,in this case,does the mcu can still get a 5v input(the mcu will think the external power is 5v/33k*(100k+33k)=20.1V)?or the mcu IO will get a low level even damaged?
If you asking whether or not the MCU can safely operate with a 6.45V input to an ADC channel, when the devices maximum operating voltage is 5v, the answer is typically no.
And yes it could possibly damage the device.
Another issue I should mention is a relatively large resistance voltage divider can easily exceed the rated source output impedance of the MCU's ADC module.
Typically, the ADC module of a MCU specifies a maximum source output impedance in the 10kΩ range, sometimes less.
A more viable option would be to implement an OPAMP scaler or utilize a OPAMP voltage follower between the voltage divider and the MCU's ADC input.
thank you for your info,and I understand what you said
what I thought is if the mcu don't read the value,the IO may be not damaged,because there is a 100k resistor in series with 26v,so little current.
Using high resistor values will give you wrong results due to the slow charge rate of the S&H capacitor but if the signal you measure is not a rapidly changing one you can use a capacitor at the ADC input that can act as a reserve and present a low impedance to the ADC input
It is also a good idea to use Schottky diodes to protect the inputs
The capacitor is not a requirement and will slow down the rate that the input signal changes (due to the RC) but when you use high value resistors the cap can help because it will charge the S&H cap immediately, the current will not have to go through the resistors so once the cap is charged the voltage will be immediately reflected to the ADC with a very small impedance.
The ADC conversion has two stages , in the first stage a Sample & Hold capacitor charges with the signal that is to be measured , in the second stage the capacitor is isolated from the input and the AD converts the stored voltage of the capacitor to a digital value.