...the world's most energy friendly microcontrollers
2014-07-02 - Gecko Family - d0001_Rev1.30
129
www.silabs.com
13.3.1 Channel Functions
Different functions can be applied to a reflex signal within the PRS. Each channel includes an edge
detector to enable generation of pulse signals from level signals. It is also possible to generate output
reflex signals by configuring the SWPULSE and SWLEVEL bits. SWLEVEL is a programmable level
for each channel and holds the value it is programmed to. The SWPULSE will give out a one-cycle
high pulse if it is written to 1, otherwise a 0 is asserted. The SWLEVEL and SWPULSE signals are
then XOR'ed with the selected input from the producers to form the output signal sent to the consumers
listening to the channel.
Figure 13.1. PRS Overview
A
P
B
I
n
te
rf
a
c
e
Reg
SIGSEL[2:0]
APB bus
Signals from
producer
peripherals
Signals t o
consum er
peripherals
EDSEL[1:0]
SWPULSE[n]
SOURCESEL[5:0]
SWLEVEL[n]
13.3.2 Producers
Each PRS channel can choose between signals from several producers, which is configured in
SOURCESEL in PRS_CHx_CTRL. Each of these producers outputs one or more signals which can
be selected by setting the SIGSEL field in PRS_CHx_CTRL. Setting the SOURCESEL bits to 0 (Off)
leads to a constant 0 output from the input mux. An overview of the available producers is given in
Table 13.1 (p. 129) .
Table 13.1. Reflex Producers
Module
Reflex Output
Output Format
ACMP
Comparator Output
Level
Single Conversion Done
Pulse
ADC
Scan Conversion Done
Pulse
Channel 0 Conversion Done
Pulse
DAC
Channel 0 Conversion Done
Pulse
Pin 0 Input
Level
Pin 1 Input
Level
Pin 2 Input
Level
Pin 3 Input
Level
Pin 4 Input
Level
GPIO
Pin 5 Input
Level
Summary of Contents for EFM32G
Page 505: ......