English
Language : 

EZR32WG330 Datasheet, PDF (9/87 Pages) Silicon Laboratories – Building and home automation
EZR32WG330 Data Sheet
System Overview
3.1.30.1 EZRadio® and EZRadioPRO® Transceivers GPIO Configuration
The EZRadio and EZRadioPRO Transceivers have 4 General Purpose Digital I/O pins. These GPIOs may be configured to perform
various radio-specific functions, including Clock Output, FIFO Status, POR, Wake-up Timer, TRSW, AntDiversity control, etc.
Two of the radio GPIO pins are directly connected to pins on the package (GPIO2 and GPIO3). However, the remaining two radio GPIO
pins (GPIO0 and GPIO1) connect internally on the EZR32WG to the pins shown in 3.1.30 EZRadio® and EZRadioPro® Transceivers.
These radio GPIOs may be routed to external package pins using the EZR32WG’s peripheral reflex system (PRS). Note that the maxi-
mum frequency of the GPIO pins routed through PRS pins may be limited to ~10 MHz.
Below is some example code illustrating how to configure the EZR32WG PRS system to output the radio GPIO0/GPIO1 functions to
EZR32WG pins PA0 / PA1, respectively. Note that the radio GPIO0/GPIO1 functions could also be connected to EZR32WG pins PF3/
PF4.
/* PRS routing radio GPIO0 and GPIO1 to external pin PA0&PA1 */
/ * Note that this code example uses the emlib library functions for CMU, GPIO, and PRS */
/* Enable PRS clock */
CMU_ClockEnable(cmuClock_PRS, true);
/* Setup input pins */
GPIO_PinModeSet(gpioPortA, 15, gpioModeInput, 0);
GPIO_PinModeSet(gpioPortE, 14, gpioModeInput, 0);
/* Setup output pins */
GPIO_PinModeSet(gpioPortA, 0, gpioModePushPull, 0);
GPIO_PinModeSet(gpioPortA, 1, gpioModePushPull, 0);
/* Configure INT/PRS channels */
GPIO_IntConfig(gpioPortA, 15, false, false, false);
GPIO_IntConfig(gpioPortE, 14, false, false, false);
/* Setup PRS */
PRS_SourceAsyncSignalSet(0, PRS_CH_CTRL_SOURCESEL_GPIOH, PRS_CH_CTRL_SIGSEL_GPIOPIN15);
PRS_SourceAsyncSignalSet(1, PRS_CH_CTRL_SOURCESEL_GPIOH, PRS_CH_CTRL_SIGSEL_GPIOPIN14);
PRS->ROUTE = (PRS_ROUTE_CH0PEN | PRS_ROUTE_CH1PEN);
/* Make sure PRS sensing is enabled (should be by default) */
GPIO_InputSenseSet(GPIO_INSENSE_PRS, GPIO_INSENSE_PRS);
silabs.com | Smart. Connected. Energy-friendly.
Rev. 1.1 | 8