2023-10-05 05:30 PM
So table 54 Vih for 5V tolerant pins is 0.7Vdd. For Vdd 3.3V this is 2.31V.
I'm having input capture trigger on signals that only reach 1.8V with 100% consistency on 4 pins.
Most stm32f4 the Vih for the same pins is 0.45Vdd + 0.3V, which would be 1.65V, however this is not the case for stm32f401.
So what is going on, did the datasheet incorrectly record Vih for f401 or is something else happening?
The "something else" I worry about is that the chip I'm testing with is of a batch where this is likely to happen but for the rest of the f401 1.8V is insufficient to trigger input capture. If this is the problem it wouldn't help for me to test with the handful of chips I have laying around since the rest of the f401 could be doing something else.
Solved! Go to Solution.
2023-10-06 06:51 AM
Those values are a minimum Vih voltage at which the chip is GUARANTEED to detect a "high" input over the specified VCC voltage AND temperature ranges. It is NOT the minimum voltage that will EVER be detected as a "high" input. The input MAY detect a 'high" at lower voltages, but that is not guaranteed and depends heavily on voltage, temperature and process variations in chip fab. Out of spec signal like you are sending may work at room temperature on the chips you have on hand, but might fail to work at higher (or lower) temps or with chips from a different fab or production lot.
2023-10-06 02:04 AM
Hello @TonyFauci ,
First let me thank you for posting.
I will check this issue internally and I will get back to you with more details as soon as possible.
Thank you.
Kaouthar.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-10-06 05:30 AM
Hello @TonyFauci ,
These 2 formulas are correct Vih = 0.7x Vdd is the threshold tested in production and Vih=0.45xVdd+0.3V is the threshold guaranteed by design.
This behavior is mentioned in data sheet figure 30: in blue the threshold level tested in production and in green the threshold level guaranteed by design.
Could you please give more details about the test issue:
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-10-06 06:51 AM
Those values are a minimum Vih voltage at which the chip is GUARANTEED to detect a "high" input over the specified VCC voltage AND temperature ranges. It is NOT the minimum voltage that will EVER be detected as a "high" input. The input MAY detect a 'high" at lower voltages, but that is not guaranteed and depends heavily on voltage, temperature and process variations in chip fab. Out of spec signal like you are sending may work at room temperature on the chips you have on hand, but might fail to work at higher (or lower) temps or with chips from a different fab or production lot.
2023-10-08 07:44 PM
The vdd value is 3.3V, the pins are GPIOA 0,1,2,6.
2023-10-08 07:45 PM
Bob suggests guaranteed by design doesn't actually mean guaranteed in practice. Is this the case?
2023-10-09 01:22 AM
Hi Kaouthar,
> These 2 formulas are correct Vih = 0.7x Vdd is the threshold tested in production and Vih=0.45xVdd+0.3V is the threshold guaranteed by design.
The 'F401 datasheet says otherwise, and probably it's a documentation error:
I'd recommend to review the DS.
JW
2023-10-09 01:30 AM
Hello @waclawek.jan ,
Yes, I confirm it is a documentation error and I reported internally for correction.
Internal ticket number: 163227(This is an internal tracking number and is not accessible or usable by customers).
Thank you :).
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-10-09 01:58 AM
Thanks, Kaouthar.
Jan
2023-10-09 10:50 AM
> Bob suggests guaranteed by design doesn't actually mean guaranteed in practice. Is this the case?
That is NOT what I said. The only "guarantee" is that Vih levels as sped'd in the data sheet will work across all all chips at all temperature/VCC settings covered in the datasheet. The chips MAY also work with lower Vih levels, but that is not (ever) guaranteed.