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

using RTC in nRF51822

hi all,

I am using the following example:

"..\nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral\ble_app_uart_adc_scan_mode" to send via bluetooth data coming from ADC.

I have a question. Could it possibile to introduce an RTC in that example? If answer is yes, could you explain me how can I do it? (i.e. what function is necessary?, what is the right place to put the function? and so on.)

Thanks a lot and best regards

Angelo

Parents
  • Hi,

    I assume you are referring to the example from this post? It is possible to use the RTC in this example. Ther are a few things to note, though. The nRF51 has only two RTC peripherals. RTC0 is used by the SoftDevice, so that is already taken in this example, which uses a SoftDevice. RTC1 is used by the app_timer library, which is also used in this example, as it is used by the BSP module.

    If you need to use an RTC your options are to either use it via the app_timer library, or to remove the app_timer library, and use it directly. Which makes most sense depends on your requirements.

Reply
  • Hi,

    I assume you are referring to the example from this post? It is possible to use the RTC in this example. Ther are a few things to note, though. The nRF51 has only two RTC peripherals. RTC0 is used by the SoftDevice, so that is already taken in this example, which uses a SoftDevice. RTC1 is used by the app_timer library, which is also used in this example, as it is used by the BSP module.

    If you need to use an RTC your options are to either use it via the app_timer library, or to remove the app_timer library, and use it directly. Which makes most sense depends on your requirements.

Children
Related