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

nrf9160 gpio low is not voltage 0, help

const struct device* gpio_dev = device_get_binding("GPIO_0");
err = gpio_config(gpio_dev,
tx_pin,
NRF_GPIO_PIN_S0S1);

for(i=0 ;; i++)
{
printk("nrf_gpio_pin_write");

if( i%2 == 0 )
nrf_gpio_pin_write(tx_pin, 0);
else
nrf_gpio_pin_write(tx_pin, 1);

k_usleep(100000);
}

the low voltage is 1.2v

/// nRF9160_PS_v2.0.pdf p. 101

nrfjprog -f NRF91 --memrd 0x50842504 --w 16 --n 64
0x50842504: 0002 1400 0002 1400 0002 1400 0043 D400 |............C...|
0x50842514: 8002 1400 8002 1400 8002 1400 0000 0000 |................|
0x50842524: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
0x50842534: 0000 0000 0000 0000 0000 0000 0000 0000 |................|

///

how to change to 0v

Parents Reply Children
No Data
Related