JAJSJA4L June 2011 – February 2021 F28M35E20B , F28M35H22C , F28M35H52C , F28M35H52C-Q1 , F28M35M22C , F28M35M52C
PRODUCTION DATA
The eight pins of the GPIO_MUX2 block can be selectively mapped to eight General-Purpose Inputs, eight General-Purpose Outputs, or six COMPOUT outputs from the Analog Comparator peripheral. Each GPIO_MUX2 pin can have a pullup enabled or disabled. On reset, all pins of the GPIO_MUX2 block are configured as analog inputs, and the GPIO function is disabled. The GPIO_MUX2 block is programmed through a separate set of registers from those used to program GPIO_MUX1.
The multiple registers responsible for configuring the GPIO_MUX2 pins are organized in register set E. They are accessible by the C28x CPU only. The middle portion of Figure 8-17 shows set G of Control Subsystem registers, plus muxing logic for the associated eight GPIO pins. The GPEMUX1 register selects one of six possible digital output signals from analog comparators, or one of eight general-purpose GPIO digital outputs. The GPEPUD register disables pullups for the GPIO_MUX2 pins when a corresponding bit of that register is set to “1”. Other registers of set G allow reading and writing of the eight GPIO bits, as well as setting the direction for each of the bits (read or write). See Table 8-30 for the mapping of comparator outputs and GPIO to the eight pins of GPIO_MUX2.
Peripheral Modes 0, 1, 2, and 3 are chosen by setting selected bit pairs of GPEMUX1 register to “00”, “01”, “10”, and “11”, respectively. For example, setting bits 5–4 of the GPEMUX1 register to “00” (Peripheral Mode 0) assigns pin GPIO130 to internal signal GPIO130 (digital GPIO). Setting bits 5–4 of the GPEMUX1 register to “11” (Peripheral Mode 3) assigns pin GPIO130 to internal signal COMP6OUT coming from Analog Comparator 6. Peripheral Modes 1 and 2 are reserved and are not currently available.
DEVICE PIN NAME(1) | C28x PERIPHERAL MODE 0 |
C28x PERIPHERAL MODE 1 |
C28x PERIPHERAL MODE 2 |
C28x PERIPHERAL MODE 3 |
---|---|---|---|---|
GPIO128 | GPIO128 | – | – | – |
GPIO129 | GPIO129 | – | – | COMP1OUT |
GPIO130 | GPIO130 | – | – | COMP6OUT |
GPIO131 | GPIO131 | – | – | COMP2OUT |
GPIO132 | GPIO132 | – | – | COMP3OUT |
GPIO133 | GPIO133 | – | – | COMP4OUT |
GPIO134 | GPIO134 | – | – | – |
GPIO135 | GPIO135 | – | – | COMP5OUT |