TimerInterrupt for Arduino Nano 33 BLE

Hello everyone,

I'm creating a project that needs different timers at once. I was looking for something like the SAMD_TimerInterrupt Library ( GitHub - khoih-prog/SAMD_TimerInterrupt: This library enables you to use Interrupt from Hardware Timers on an SAMD-based board. These SAMD Hardware Timers, using Interrupt, still work even if other functions are blocking. Moreover, they are much more precise (certainly depending on clock frequency accuracy) than other software timers using millis() or micros(). That's mandatory if you need to measure some data requiring better accuracy. It now supports 16 ISR-based Timers, while consuming only 1 Hardware Timer. Timers' interval is very long (ulong millisecs). The most important feature is they're ISR-based Timers. Therefore, their executions are not blocked by bad-behaving functions or tasks. This important feature is absolutely necessary for mission-critical tasks. SAMD21 now can use 6 Timers ), but for Nano BLE's Nordic processor.
I searched online, but I couldn't find any useful solution..... Is there anything like that?

Thank you very much

Currently, AFAIK, there is no ready-made TimerInterrupt library for nRF52840-based Nano-33-BLE.

Because Nano-33-BLE is not so popular, I haven't spent time to write the Nano33BLE_TimerInterrupt library to be similar to those in TimerInterrupt series. The job is easy, you can try to adapt it from NRF52_TimerInterrupt Library by using some commands for mbed-RTOS if you need it urgently.

You can have a look at previous posts in this forum

  1. Cannot get timer on the Nano 33 BLE working
  2. Is there a timer interrupt library that can be used as a nano 33 board?
  3. Setup timer on ARDUINO NANO 33 BLE nRF 52840.

Thanks a lot for the reply.
Since I’m a beginner of Arduino and coding, I’m not sure about what I have to do yet, but I’ll give it a try. I’ll keep this post updated if I will succeed with something!

Hi @helium97

I've just successfully ported the NRF52_TimerInterrupt Library into the new one to support Nano-33-BLE.

The functions and features will be the same as those of other TimerInterrupt Libraries.

Still in the process of testing and porting all the examples, and possibly can finish by tomorrow.

Will keep you posted.

Already posted the new NRF52_MBED_TimerInterrupt Library.

Please test and give feedback.

Hi @khoih-prog, thanks again for the job. I'll try it and ill'let you know.