I am using the nrf51822 with a latching circuit as shown controlled by P0.05 pin.
I am using the following code SDK 10.0 S110 softdevice to Power ON the circuit (PowerPin P0.05.
#define powerPin 5
NRF_GPIO->PIN_CNF[powerPin] = (GPIO_PIN_CNF_DRIVE_H0D1 << GPIO_PIN_CNF_DRIVE_Pos)
|(GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
nrf_delay_ms(1000);
nrf_gpio_pin_clear(powerPin);
nrf_delay_ms(400);
nrf_gpio_pin_set(powerPin);
nrf_delay_ms(1000);
nrf_gpio_pin_clear(powerPin);
nrf_delay_ms(400);
nrf_gpio_pin_set(powerPin);
However, the latching circuit does not come on.
When I use an external wire to connect P0.05 to groud and then to 3.3V the latching circuit powers on.
It appears that despite using H0D1 the pin is not able to provide power / drain
Request some advice