English
Language : 

EFM32WG Datasheet, PDF (749/834 Pages) List of Unclassifed Manufacturers – The EFM32WG Wonder Gecko is the ideal choice for demanding 8-, 16-, and 32-bit energy sensitive applications.
...the world's most energy friendly microcontrollers
• EM4 IO pin retention. This includes
• Output enable
• Output value
• Pull enable
• Pull direction
• EM4 wake-up on selected GPIO pins
• Glitch suppression input filter.
• Analog connection to e.g. ADC or LCD.
• Alternate functions (e.g. peripheral outputs and inputs)
• Routed to several locations on the device
• Pin connections can be enabled individually
• Output data can be overridden by peripheral
• Output enable can be overridden by peripheral
• Toggle, set and clear registers for output data
• Dedicated data input register (read-only)
• Interrupts
• 2 interrupt lines from up to 16 pending sources
• All GPIO pins are selectable
• Separate enable, status, set and clear registers
• Asynchronous sensing
• Rising, falling or both edges
• Wake up from EM0-EM3
• Peripheral Reflex System producer
• All GPIO pins are selectable
• Configuration lock functionality to avoid accidental changes
32.3 Functional Description
An overview of the GPIO module is shown in Figure 32.1 (p. 750) .The GPIO pins are grouped into 16-
pin ports. Each individual GPIO pin is called Pxn where x indicates the port (A, B, C ...) and n indicates
the pin number (0,1,....,15). Fewer than 16 bits may be available on some ports, depending on the total
number of I/O pins on the package. After a reset both input and output is disabled for all pins on the
device, except for debug pins. To use a pin, the port GPIO_Px_MODEL/GPIO_Px_MODEH registers
must be configured for the pin to make it an input or output. These registers can also do more advanced
configuration, which is covered in Section 32.3.1 (p. 750) . When the port is either configured as an
input or an output, the Data In Register (GPIO_Px_DIN) can be used to read the level of each pin in the
port (bit n in the register is connected to pin n on the port). When configured as an output, the value of
the Data Out Register (GPIO_Px_DOUT) will be driven to the pin.
The DOUT value can be changed in 4 different ways
• Writing to the GPIO_Px_DOUT register.
• Writing a 1 to a bit in the GPIO_Px_DOUTSET register sets the corresponding DOUT bit
• Writing a 1 to a bit in the GPIO_Px_DOUTCLR register clears the corresponding DOUT bit
• Writing a 1 to a bit in the GPIO_Px_DOUTTGL register toggles the corresponding DOUT bit
Reading the GPIO_Px_DOUT register will return its contents. Reading the GPIO_Px_DOUTSET,
GPIO_Px_CLR or GPIO_Px_TGL will return 0.
2013-05-08 - Wonder Gecko Family - d0233_Rev0.50
749
www.energymicro.com