Skip to main content
Leo1986
Associate
September 25, 2019
Question

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

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?

    This topic has been closed for replies.