This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Searching For Documentation... NRF_TIMER4->MODE =

Good day to you,

I cannot find any reference/documentation whatsoever that relates to the following type of code... 4 lines of example code is below (from this link https://forum.arduino.cc/t/measuring-pulse-time-with-timers-gpiote-ppi-on-the-arduino-nano-33-ble-sense/699552)

NRF_TIMER4->MODE = TIMER_MODE_MODE_Timer;

NRF_TIMER4->TASKS_CLEAR = 1;

NRF_TIMER4->PRESCALER = 4

NRF_TIMER4->BITMODE = TIMER_BITMODE_BITMODE_16Bit;

From the above link you'll notice that it's related to Arduino, which I've been using so far, but I need to use/learn GPIOTE to achieve 1 micro second precision timing for generating PWM and PPM for servo control.

The above code sample's library is located within Arduino's installation folder structure, i.e., the sample is not directly dependent on Nordic's nRF5 SDK.

My question is... please can someone tell me where to find documentation that explains such instructions as those in the above example?

I'm using a Nano 33 BLE which itself uses a NRF52840

Like I say it'd be really great to get some help with this, thanks, Gary.

Parents
  • That looks like exactly what I needed, and thank you, that really is a great help.

    Final question if I may... specifically the NRF object syntax itself, i.e., "NRF_TIMER4" before the "->". I'm used to creating objects in C++ and creating/accessing data members and member functions of the class, and so with that in mind, I'd like to find where the object itself (or just simply a mention of it) is documented... "NRF_TIMER" syntax?

    Thanks, Gary.

    Edit: maybe all objects are prefixed with "NRF_"? but perhaps that's not it.

    Update: I've been looking here under "Data Structures" and following the links infocenter.nordicsemi.com/index.jsp but I still haven't found reference specifically describing "NRF_TIMER0 or 1 2 3 4"

Reply
  • That looks like exactly what I needed, and thank you, that really is a great help.

    Final question if I may... specifically the NRF object syntax itself, i.e., "NRF_TIMER4" before the "->". I'm used to creating objects in C++ and creating/accessing data members and member functions of the class, and so with that in mind, I'd like to find where the object itself (or just simply a mention of it) is documented... "NRF_TIMER" syntax?

    Thanks, Gary.

    Edit: maybe all objects are prefixed with "NRF_"? but perhaps that's not it.

    Update: I've been looking here under "Data Structures" and following the links infocenter.nordicsemi.com/index.jsp but I still haven't found reference specifically describing "NRF_TIMER0 or 1 2 3 4"

Children
No Data
Related