Home > other >  STM32 pull-up dropdown input cannot read level value
STM32 pull-up dropdown input cannot read level value

Time:09-20

F1 board, use cubeMX generated PA9 push-pull output port,
Attachment debugging, can input is read with floating level, but with top and bottom will not be able to read values, and set up on the pull in the debug interface see GPIOA - & gt; IDR IO mouth is zero


Bosses can help to see what's the problem?

CodePudding user response:

Depends on how you A0 to meet

CodePudding user response:

reference 1/f, banyan, reply:
depends on how do you pick A0

I am a direct from A0 connected to the board by the dupont thread the GND is 3.3 or above is 5

CodePudding user response:

I put my code and cubeMX project, you can see
https://share.weiyun.com/5rUQho2

CodePudding user response:

Has to solve crimes, the corresponding IO configuration with HAL library can,
But the new problem is coming, I is according to the manual to register, why not?

CodePudding user response:

Since using cubeMX HAL, why to operate register again?

CodePudding user response:

reference 4 floor _ hehe reply Chen: ,
has to solve the corresponding IO configuration with HAL library can,
But the new problem is coming, I is according to the manual to register, why not?

I is according to the two manual configuration registers, and accurate atomic to routine configuration, so in principle should be no problem to o (STM32 F103C8)
Is operation from cubeMX generated engineering section of the register is set to change? Do you have met this kind of phenomenon?

CodePudding user response:

Less code, don't have to write a subroutine, a fix
  • Related