GPIO configuration to drive led

Hi Nordic, 

I want to control an LED with the nrf GPIO, the LED Anode is connected to VDD, through a resistor, and the cathode is connected to the GPIO. Under this configuration, the LED should be ON when the GPIO is LOW but i cannot get the signal to be really low. It is always minimum 0.8V when it should be completely 0V. I know there is something on the configuration that I'm missing but i have tried all configurations. 

  nrf_gpio_cfg(LED,
  NRF_GPIO_PIN_DIR_OUTPUT,
  NRF_GPIO_PIN_INPUT_DISCONNECT,
  NRF_GPIO_PIN_PULLDOWN  ,
  GPIO_PIN_CNF_DRIVE_H0D1 , // (high drive low, disconnected high).
  NRF_GPIO_PIN_NOSENSE);
  
  nrf_gpio_pin_clear(LED);

Could you please give me a hint of what is the problem? I am using the nrf52840, s140 and sdk_15.3

Thanks you in advance! 

Related