Exact meaning of VIL and VIH and the resulting switching point between HIGH and LOW
We want to realise a cheap measurement of a external voltage over a voltage divider with a STM32F765ZI processor. We calculate VIL with the formula "0,35*VDD-0,04" which is guaranteed by design. On base of this calulated VIL we calculate our voltage divider, so that at 2,5V external voltage exactly the calculated VIL was at the pin of the µC. But, tested at two pins, the switching level differs from the calculation and also between the two pins:
Pin1:
Low <=3,115V:
High>= 3,90V
Pin2:
Low<=3,37V
High>=3,59V
Is that a normal behaviour?
So it is not possible to use an input pin with internal Schmitt trigger for a halfway exact input threshold?
Best regards
Volker