cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable internal PU/PD resistor in stm32

samir2
Associate II
Posted on October 19, 2016 at 16:39

Hi everybody,

I just connected one resistor in pin PA3 of stm32f091 to read value of a voltage divider.

But when i connected this, my tension is down.

I know there are pull up and pull down internal resistor about 40 kOhms in each pin, but in output mode ou input mode, the result is the same.

Any idea ?

The register GPIOC->PUPDR is setting correctly.

Thank you
2 REPLIES 2
Posted on October 19, 2016 at 17:15

Using an ADC or looking at VIL and VIH?

Use the NOPULL setting, for analogue removing the Schmitt Trigger use also AIN

The PA pins are not on GPIOC

Your own custom board, or something else? Any thing else connected to the pins of interest.

Please be more comprehensive with your presentation of the system, the code configuring it, and the values from the corresponding registers.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
samir2
Associate II
Posted on October 19, 2016 at 17:34

Here a schematic of my project.

I don't use it with ADC but with Vil and Vih.

I use PA3 in GPIO

A

Thanks

________________

Attachments :

Schematic_Prints_2_01.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I19Q&d=%2Fa%2F0X0000000bj4%2FVB4TvXcjWaUXpQf63BSXDfhMujCA_AxWwE8fDsyUgnQ&asPdf=false