13.3.3 Consumers
Consumer peripherals (Listed in
Table 13.1 Reflex Consumers on page 337
) can be set to listen to a PRS channel and perform an
action based on the signal received on that channel. While most consumers expect a pulse input, some can handle level inputs as well.
Table 13.1. Reflex Consumers
Module
Reflex Input
Input Format
TIMER
Compare/Capture Channel
Pulse / Level
Alternate Input for DTI
Level
Alternate Input for DTI Fault 0
Level
Alternate Input for DTI Fault 1
Level
USART
RX/TX Trigger
Pulse
Alternate Input for IrDA
Level
Alternate Input for RX
Level
Alternate Input for CLK
Level
ADC
Single Sample Trigger
Pulse
Scan Sequence Trigger
Pulse
IDAC
Alternate Input for OUTMODE
Level
CMU
Alternate Input for Calibration Up-Counter
Level
Alternate Input for Calibration Down-Coun-
ter
Level
LEUART
Alternate Input for RX
Level
PCNT
Compare/Clear Trigger
Pulse/Level
Alternate Input for S0IN
Level
Alternate Input for S1IN
Level
WDOG
Peripheral Watchdog
Pulse
LETIMER
Start LETIMER
Pulse
Stop LETIMER
Pulse
Clear LETIMER
Pulse
RTCC
Compare/Capture Channel
Pulse/Level
PRS
Set Event
Pulse
DMA Request 0
Pulse
DMA Request 1
Pulse
13.3.4 Event on PRS
The PRS can be used to send events to the MCU. This is very useful in combination with the Wait For Event (WFE) instruction. A single
PRS channel can be selected for this using SEVONPRSSEL in PRS_CTRL, and the feature is enabled by setting SEVONPRS in the
same register.
Using SEVONPRS, one can e.g. set up a timer to trigger an event to the MCU periodically, every time letting the MCU pass through a
WFE instruction in its program. This can help in performance-critical sections where timing is known, and the goal is to wait for an
event, then execute some code, then wait for an event, then execute some code and so on.
EFM32JG1 Reference Manual
PRS - Peripheral Reflex System
silabs.com
| Smart. Connected. Energy-friendly.
Preliminary Rev. 0.6 | 337