RFQ/BOM 0 サインイン / 登録する

所在地を選択してください

ユーザーイメージ

The IO port of STM32F103 is connected to a 5V level. What if the IO port is used as a data port with both output and input?

MCU
11月 19, 2020 by Arman 1998

Connect the 5V level with the IO port of STM32F103.


Set it to GPIO_Mode_IN_FLOAtiNG when inputting because the IO port of STM32F103 can withstand 5V voltage,

Set the output port as GPIO_Mode_Out_OD. Set the IO port as open-drain output and add a pull-up resistor outside.

There are two problems:

1 What should I do if the IO port is used as a data port with both output and input?

2 Why is it set to GPIO_Mode_AF_OD as the output port?

すべてのコメント

user image

Lela ポストする November 19, 2020

1. Use open drain multiplexing function

2. Set to GPIO_Mode_AF_PP

0
user image

Arman ポストする November 19, 2020

Does anyone use the STM32F103's IO to connect to the 5V data port? I use STM32F103, and the screen of TG19264 is always messy. I suspect that the signal is wrong when reading the LCD screen busy. Give it the correct one. It's a drawing board, if it doesn't work, you have to hand in a 3.3V to 5V chip.

0
user image

Kamran ポストする November 19, 2020

I am also experiencing this problem. The FSMC is pulled up by 5V and cannot reach 5V. If it is not applied, the LCD cannot be driven. If you add 5V, you can't reach 5V. I'm afraid of reliability problems.

I heard others say that there is an FT pin, but the FSMC is also an FT pin for data checking, but it cannot output 5V, and the OD is useless.

0
user image

Marwa ポストする November 19, 2020

Use HCT244 level conversion.

0

答えを書く

返信するにはログインする必要があります。 サインイン | 登録する