Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

micro second timer of nrf52832

Hi ,

 I need to generate a count data to third party library.

So I create a timer1 ,it can work well.

But I set time_us equal to 1  ,the "timer_led_event_handler" don't work.

Could I set time_us = 1 ?

below is my code,

condition:

  • SDK16
  • ble_app_uart example

  • Hi,

    The interrupt latency is usually above 1 us so it won't be possible to service a new interrupt every 1 us. I think the correct approach would be to keep the timer running without interrupts and use the capture register for retrieving the timestamps (nrf_drv_timer_capture).