cancel
Showing results for 
Search instead for 
Did you mean: 

STM8L050J3 pins with multiple PORTS on the same pin. Doubt.

Leo1986
Associate II

Hi,

For me to set the SWIM pin to (Input Float NO), I need to set all ports attached to pin 1, as follows:

 * NAME |DDR |CR1 |CR2 |ODR | Operation         |FUNC

 * PA.0 - 0  - 0  - 0  - 0  - Input Float NI      - SWIM

 * PA.2 - 0  - 0  - 0  - 0  - Input Float NI      - SWIM

* PC.6 - 0  - 0  - 0  - 0  - Input Float NI      - SWIM

Or I can just set one of the ports attached to pin 1, any of them, like:

 * NAME |DDR |CR1 |CR2 |ODR | Operation         |FUNC

 * PA.0 - 0  - 0  - 0  - 0  - Input Float NI      - SWIM

What is the way to configure a pin of this microcontroller? Do I have to configure only one PIN port or do I have to configure all PIN ports?

0 REPLIES 0