hwlib icon indicating copy to clipboard operation
hwlib copied to clipboard

stm32f103 says it is normaly configured as pull up but im not convinced that is the case.

Open CvRXX opened this issue 5 years ago • 1 comments

The documentation tells us this:

/// This constructor sets the pin direction to input.
/// By default, the internal weak pull-up is enabled.

The mode cnf wil be set to 1000. image

But as can be seen in above image this depends on the PxODR register. So if it was an output before and it was put low it will be a pull down.

CvRXX avatar Jan 09 '21 09:01 CvRXX

@wovo Am I right?

CvRXX avatar Jan 09 '21 09:01 CvRXX