C281x GPIO Digital Output

General-purpose I/O pins for digital output

Library

Embedded Coder® Support Package for Texas Instruments™ C2000™ Processors/ C281x

Embedded Coder Support Package for Texas Instruments C2000 Processors/F28004x

Description

This block configures the general-purpose I/O (GPIO) registers that control the GPIO shared pins for digital output. Each I/O port has one MUX register, which is used to select peripheral operation or digital I/O operation.

Note

Fixed-point inputs are not supported for this block.

Note

To avoid losing new settings, click Apply before changing the IO Port parameter.

Parameters

IO Port

Select the input/output port to use: GPIOPA, GPIOPB, GPIOPD, GPIOPE, GPIOPF, or GPIOPG and select the I/O Port bits to enable for digital input. (There is no GPIOPC port on the C281x.) If you select multiple bits, vector input is expected. Cleared bits are available for peripheral functionality. Multiple GPIO DO blocks cannot share the same I/O port.

Note

The input function of the digital I/O and the input path to the related peripheral are enabled on the board. If you configure a pin as digital I/O, the corresponding peripheral function cannot be used.

The following tables show the shared pins.

GPIO A MUX

Bit

Peripheral Name
(Bit =1)

GPIO Name
(Bit = 0)

0

PWM1

GPIOA0

1

PWM2

GPIOA1

2

PWM3

GPIOA2

3

PWM4

GPIOA3

4

PWM5

GPIOA4

5

PWM6

GPIOA5

8

QEP1/CAP1

GPIOA8

9

QEP2/CAP2

GPIOA9

10

CAP3

GPIOA10

GPIO B MUX

Bit

Peripheral Name
(Bit =1)

GPIO Name
(Bit = 0)

0

PWM7

GPIOB0

1

PWM8

GPIOB1

2

PWM9

GPIOB2

3

PWM10

GPIOB3

4

PWM11

GPIOB4

5

PWM12

GPIOB5

8

QEP3/CAP4

GPIOB8

9

QEP4/CAP5

GPIOB9

10

CAP6

GPIOB10