PPI may be configured using the PPI API in the SoC library.
This API is available both when the SoftDevice is disabled and when it is enabled. It is also possible to configure the PPI using the Cortex Microcontroller Software Interface Standard (CMSIS) directly when the SoftDevice is disabled.
When the SoftDevice is disabled, all PPI channels and groups are available to the application. When the SoftDevice is enabled, some PPI channels and groups, as described in the table below, are in use by the SoftDevice.
When the SoftDevice is enabled, the application program must not change the configuration of PPI channels or groups used by the SoftDevice. Failing to comply with this will cause the SoftDevice to not operate properly.
PPI channel allocation | SoftDevice enabled | SoftDevice disabled |
---|---|---|
Application | Channels 0 - 13 | Channels 0 - 15 |
SoftDevice | Channels 14 - 151 | - |
PPI channel allocation | SoftDevice enabled | SoftDevice disabled |
---|---|---|
Application | - | Channels 20 - 31 |
SoftDevice | Channels 20 - 31 | - |
PPI channel allocation | SoftDevice enabled | SoftDevice disabled |
---|---|---|
Application | Groups 0 - 1 | Groups 0 - 3 |
SoftDevice | Groups 2 - 3 | - |