nRF51 SDK - S110 SoftDevice
|
The SDK provides an implementation of an extension to ARM Keil RTX that is referred to as tickless mode. It allows waking up the MCU only when it is needed.
You should be aware of the following limitations when using RTX:
All interrupts are passed to the application through the SoftDevice, which generates additional interrupt latency. See the SoftDevice and RTX specification for more information.
The following table lists the additional latency according to the specifications for RTX (V4.74) and S110 nRF51822 (v1.2):
Interrupt | S110 (CPU cycles) | RTX (CPU cycles) |
---|---|---|
Open peripheral interrupt | 50 | < 20 |
Blocked or restricted peripheral interrupt | 63 | < 20 |
Application SVC interrupt | 14 | ≈ 35 |
RTX shares the SVC interrupt with the SoftDevice. Therefore, it works on the same interrupt priority (UpperStack) as the SoftDevice API functions.
This example shows how to use the system function in interrupt handlers.
The following example applications demonstrate the use of RTX: