This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PIN0 is never high

Hi, we are using the chip nRF51822 CEAAE00. We want to use the pin 0 as output. It is configured as below

NRF_GPIO->PIN_CNF[0] = (GPIO_PIN_CNF_SENSE_Disabled << GPIO_PIN_CNF_SENSE_Pos)
                                        | (GPIO_PIN_CNF_DRIVE_S0S1 << GPIO_PIN_CNF_DRIVE_Pos)
                                        | (GPIO_PIN_CNF_PULL_Disabled << GPIO_PIN_CNF_PULL_Pos)
                                        | (GPIO_PIN_CNF_INPUT_Disconnect << GPIO_PIN_CNF_INPUT_Pos)
                                        | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);

nrf_gpio_pin_set(0);

But, the pin driver is never high.

It is happening only for PIN0. Is there a bug on this pin?

Related