1. Introduction
Previously, we tested the input voltage characteristics of the ports in the STC32C030 microcontroller. A signal source DG1062 was used to generate a peak 10V sine AC signal. It can be observed that the voltage at the microcontroller’s IO port is limited to around 9V. So what are the specific characteristics of the input voltage and current? Below, we will test the IO ports in the F030 microcontroller and calculate the corresponding current characteristics using resistor R1.

▲ Figure 1.1.1 Test Circuit Board
2. Measurement Results
On the produced circuit board, the test port was set as the input port. A voltage signal with a peak of 10V was generated using DG1062. The voltage signal measured after 100 ohms shows a variation. It can be seen that when the input voltage exceeds 4V, the voltage change becomes slower. The highest voltage exceeds 6V.

Next, we measure the input current by measuring the current on the 100 ohm resistor in series with the input port. The DG1766 provides an input voltage from 0V to 10V, allowing us to read the input port voltage and subsequently plot the relationship between input voltage and input current. The measurement results indicate that when the input voltage exceeds 3.7V, the input current begins to rise sharply. Particularly at 5V, the input current reaches 5mA.

▲ Figure 1.2.1 Input Port and Input Current
The input port mode was set to analog input mode. From the measurement results, it can be seen that the relationship between input voltage and current remains unchanged.

※ Conclusion ※
This article tested the volt-ampere characteristics of the IO ports of the F030 microcontroller. From the measurement results, it can be concluded that when the input voltage exceeds 3.7V, an external current begins to flow in. At 5V, the incoming current is approximately 5mA. Therefore, care should be taken to avoid this situation during application.

How to Control an LED Connected to 5V via STM32 Port?: https://blog.csdn.net/zhuoqingjoking97298/article/details/142678285?sharetype=blogdetail&sharerId=142678285&sharerefer=PC&sharesource=zhuoqingjoking97298&spm=1011.2480.3001.8118
[2]5V Tolerant Input Ports of STM32 Microcontrollers: https://zhuoqing.blog.csdn.net/article/details/143141802
[3]What Does MCU 5V Tolerant Mean?: https://blog.csdn.net/ybhuangfugui/article/details/130907983