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

Disable interrupts

Hi, I want to do this cycle with GPIO without interrupting it on NRF51 with BLE softdevice:

  1. PIN1 to HIGH level
  2. read value of PIN2
  3. PIN1 to LOW level

Repeat this 25 times (between cycles interrupts can happen)

What is the easiest way to accomplish that?

Parents
  • I apologize. I want to execute steps 1) to 3) without being interrupted by any interrupt (user interrupt or softdevice interrupt), because I have to keep strict timing of the peripheral which is connected to the GPIO (PIN1 HIGH level can't last more than 60 us in no way).

Reply
  • I apologize. I want to execute steps 1) to 3) without being interrupted by any interrupt (user interrupt or softdevice interrupt), because I have to keep strict timing of the peripheral which is connected to the GPIO (PIN1 HIGH level can't last more than 60 us in no way).

Children
No Data