Skip to main content
Visitor II
March 2, 2021
Question

How do you write/read from pins Pxx_C ?

  • March 2, 2021
  • 3 replies
  • 748 views

For example, when using the HAL drivers to write to a pin you would normally write:

 HAL_GPIO_WritePin(GPIOA, GPIO_PIN_1, GPIO_PIN_RESET);

But, how would you do that using PA1_C, for instance?

Thank you.

    This topic has been closed for replies.

    3 replies

    Super User
    March 2, 2021

    What is PA1_C? Pins of port A are named PA0-PA15. Pins of port C are named PC0-PC15.

    -- pa

    Graduate II
    March 2, 2021

    These are special bond options on some big BGA packages.

    Super User
    March 3, 2021

    The functionality is completely split between Pxx and Pxx_C, so only to one of them is the GPIO connected, see pin table in datasheet. Unless you switch on the switch which connects the two internally, you cannot use GPIO to read/write the state of other.

    JW