
AN4899 Rev 3 17/31
AN4899 GPIO electrical characteristics and definitions
30
If the pull-up resistor is too high, the I2C line does not rise to a logical high before being
pulled low. The maximum value RPUmax is calculated according to Equation 3.
Equation 3 RPUmax = trmax / (0.8473 x Cb)
The rationale for Equation 3 is described in the following steps:
1. Voltage amplitude over time is RC time-constant dependent according to
V(t) = VDD x (1 - e(-t / RC))
2. With VIH = 0.3 x VDD, the time t1at which VIH is reached satisfies to
V(t1) = 0.3 x VDD = VDD x (1 – e(-t1/ RPUCb))
leading to t1= 0.3566749 x RPU x Cb
3. With VOH = 0.7 x VDD, the time t2at which VOH is reached satisfies to
V(t2) = 0.7 x VDD = VDD x (1 – e(-t2/ RPUCb))
leading to t2= 1.2039729 x RPU x Cb
4. With tr= t2- t1, it comes
tr= 0.8473 x RPU x Cb
5.2 Three-volt tolerant and five-volt tolerant
Electrical characteristics defines GPIO as three-volt tolerant, five-volt tolerant, and also
three-volt capable. Tolerance represents the voltage value which can be accepted by the
GPIO. Capability represents the voltage value which can be output by the GPIO.
5.2.1 Three-volt tolerant GPIO (TT)
For some STM32, electrical specifications define GPIO as three-volt tolerant or three-volt
compliant. From the user point of view, there is no difference between these two kinds of
GPIO.
Input voltage on three-volt tolerant cannot exceed VDD + 0.3 V.
If some analog input function is enabled on the GPIO (I/O structure TT_a with ADC input
active, COMP input, OPAMP input), then the maximum operating voltage on pin cannot
exceed min(VDDA, VREF+) + 0.3 V.
5.2.2 Five-volt tolerant GPIO (FT)
STM32 devices embed five-volt tolerant GPIOs. These GPIOs are actually tolerant to
VDD + 3.6 V. It means that the I/O pins can accept such voltages without causing leakage
current and damages on the GPIOs.
Regardless of the supply voltage, VIN cannot exceed 5.5 V.
When VDD = 0 V, the input voltage on the GPIO cannot exceed 3.6 V.
In case of a multi-supplied and multiplexed GPIO (VDD, VDDUSB, VLCD, VDDA), the GPIO is
tolerant to 3.6 V augmented of the minimum supply voltage among VDD, VDDUSB, VLCD, and
VDDA.
However, a GPIO is five-volt tolerant only in input mode. When the output mode is enabled,
the GPIO is no more five-volt tolerant. For more details about I/O input voltage, refer to VIN
parameters in the general operating conditions table of the datasheet.