This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280049: Order of GPyGMUXn and GPyMUXn

Part Number: TMS320F280049

Dear Champs,

I am asking this for our customer.

In 6.4.1 GPIO Muxed Pins of the datasheet, it says,

The GPyGMUXn register should be configured before the GPyMUXn to avoid transient pulses on GPIOs from alternate mux selections. 

It means first GPyGMUXn and then GPyMUXn.

But in TRM, it seems different.

For example, in 

8.7.2.5 GPAMUX2 Register (Offset = 8h) [reset = 0h], it says,

Pins must be set to GPIO mode using this register before changing the corresponding field in the GPAGMUX2 register.

in 8.7.2.12 GPAGMUX2 Register (Offset = 22h) [reset = 0h], it says,

Pins must be set to GPIO mode using the GPAMUX2 register before changing their configuration in this register.

It means first GPAMUX2 and then GPAGMUX2.

So, what is the correct order?

For example, if we want to show ERRORSTS output on GPIO24, would you please show us the codes?

Wayne Huang

  • I recommend using driverlib or using the driverlib source as a resource for how to write your bitfield code.

    Set GMUX then MUX. In the case of you changing the GPIO mux from an already configured mode, then Switch MUX then GMUX.

    The driverlib code:

    The pin_map.h has the values passed into the function for all modes.