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

How to access the TIMER3 in wireless timer sync?

Hello,

I found this great blog entry about synchronizing timers on different devices: https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices

It works just fine on a nRF52840DK and a nRF52DK. Timers on multiple nRF5 devices are synced by one device (master) sending sync packets containing captured timer values to other devices (nodes). (TIMER3 is free running, TIMER2 counts TIMER3 overflows).

At the moment I am struggeling to access this synchronized TIMER3 on the two boards. I am familiar with setting up a TIMER without wireless timer sync. 

So here are my questions:

1. How can I define CC, Prescaler, Mode, Bitmode, the interrupt handler and so forth when using wireless timer sync?

2. Can anybody provide me some advice how to access this synchronized TIMER3 properly? 

Thank you very much in advance.

Parents Reply Children
  • Hello Audun,

    thank you so much for your quick reply.

    I was expecting average current on the receiver to be in line with the RX scenario outlined here

    I know these current consumption scenarios and I also expected them. That is the reason why I am so curious.

    I am using a DCDC-regulator and it is activated. 

    How are you measuring the current?

    I flashed my peripheral software on my target hardware: BMD-300 (contains nRF52832 chip)

    I measure the current at the supply pins of this module. So there are no other components involved.

    The software works like it should, but with too high current consumption.

    If I comment out sync_timer_init() in the main function, the receiver should not run the radio all the time and the wireless timer sync is "deactivated". Is that correct? 

    I commented sync_timer_init() out and the current consumption stays at ~40mA. So it looks like that the wireless timer sync is not responsible for the huge current draw. Can you confirm that?

    Any kind of feedback is appreciated. Thank you very much.

    Kind regards,

    Michael

    ------------------------------------------------------------------------------------------------------------------

    #Edit (one hour later):

    Hello Audun, I programmed another BMD-300 to check if the actual BMD-300 is faulty:

    Now I can achieve a current consumption of ~7mA @ 2.45 V. When I disable wireless timer sync by comment sync_timer_init() out, I have a consumption of ~1mA @ 2,45V. So it seems like the wireless timer sync cause an extra 6 mA. This sounds reasonable I guess?

    We are still interested in lowering the total current consumption. We would appreciate very much if you could answer our previous questions:

    2. Can you please give me some suggestions what changes do I have to make?

    3. How can I implement that "the receivers only turn on the radio when it expects the transmitter to send a paket"?

    Thank you very much in advance.

    Best regards,

    Michael

Related