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

nrf51822 getting started

Hi guys,

I am trying to use the timer 1 on the nrf51822. I found the sample code online which could probably do the job for me. But I wanted to know what is the standard documentation to use if I want to get a timer to work. Generally there would be a datasheet somewehere which would guide me. But here the only thing I see is the NRF_TIMER_Type; defined in nrf51.h. What is the general procedure to activate a timer and enable interrupts ? Where is the timescale specifed. Lets say I want a 200 microsecond interval. Where would I look? Could some please help me out

Parents
  • It's in the nRF51 Series Reference Manual, section 17. Also check the nRF51822 Product Specification (PS) which tells you how many timers there are and their bit widths.

    You should also check the soft device specification to see which timers it uses (if you are using a soft device).

    Finally, I recommend reading the nRF51822 Product Anomaly Notification (PAN) as there are some bugs in the chip (e.g. "Accessing the TIMER’s SHUTDOWN task through PPI does not give the expected result.").

Reply
  • It's in the nRF51 Series Reference Manual, section 17. Also check the nRF51822 Product Specification (PS) which tells you how many timers there are and their bit widths.

    You should also check the soft device specification to see which timers it uses (if you are using a soft device).

    Finally, I recommend reading the nRF51822 Product Anomaly Notification (PAN) as there are some bugs in the chip (e.g. "Accessing the TIMER’s SHUTDOWN task through PPI does not give the expected result.").

Children
Related