Hi,
I am using nrf_gpio_port_read to read port 1 (pins 8-15), and I want to know how long it takes to read the port, ie. how many instructions. I am doing this in an interrupt handler. Currently, I am measuring this by toggling a GPIO pin before and after nrf_gpio_port_read, and am measuring roughly 320ns. However, the GPIO toggling itself is adding some overhead, so I would like to know how many cycles nrf_gpio_port_read itself takes.
On a related note, what is the fastest way to read pins 8-15 at once? Is it nrf_gpio_port_read or is there a faster way?
Thanks,
-ujwal