This anomaly applies to IC Rev. Engineering A, build codes QIAA-AA0.
Symptoms
Static current consumption between 400 µA and 450 µA when using SPIM or TWIM in combination with GPIOTE.
Conditions
- GPIOTE is configured in event mode
- TWIM/SPIM utilizes EasyDMA
Consequences
Current consumption higher than specified.
Workaround
Turn the TWIM/SPIM off and back on after it has been disabled. To do so, write 0 followed by 1 to the POWER register (address 0xFFC) of the TWIM/SPIM that must be disabled:
- If TWIM0 or SPIM0 is used:
*(volatile uint32_t *)0x40003FFC = 0; *(volatile uint32_t *)0x40003FFC; *(volatile uint32_t *)0x40003FFC = 1; - If TWIM1 or SPIM1 is used:
*(volatile uint32_t *)0x40004FFC = 0; *(volatile uint32_t *)0x40004FFC; *(volatile uint32_t *)0x40004FFC = 1; - If SPIM2 is used:
*(volatile uint32_t *)0x40023FFC = 0; *(volatile uint32_t *)0x40023FFC; *(volatile uint32_t *)0x40023FFC = 1;