Part Number: TMS320F28P550SJ
Other Parts Discussed in Thread: SYSCONFIG
Hi,
I am using TMS320F28P550SJ9 (64 PIN) microcontroller. It is unable to change the configuration state of GPIO28 and GPIO29 pins on theTMS320F28P550SJ even the GPyAMSEL register is used to configure these pins for digital operation. Physically, at controller pin gpio28/29 the value is changing but it do not reflecting the changes when viewed in the CCS register window during a debug session.
- EALLOW/EDIS: I have wrapped my configuration code in EALLOW; and EDIS; instructions.
- Pin Muxing: Set the GPIO mode using the GPxMUX, GPxGMUX registers.
- Direction: Set the GPDIR as input.
- GPyAMSEL : Set the GPyAMSEL register is used to configure these pins for digital (GPIO) operation.
- Register View: I have refreshed the Register window in CCS, but no changes are observed.
EALLOW;
//--------------------------------------------------------------------------------------
GpioCtrlRegs.GPAAMSEL.bit.GPIO28 = 0; // CONFIGURED AS GPIO
GpioCtrlRegs.GPAGMUX2.bit.GPIO28 = 0; // GPIO-28
GpioCtrlRegs.GPAMUX2.bit.GPIO28 = 0; //
GpioCtrlRegs.GPADIR.bit.GPIO28 = 0; // 0-INPUT, 1-OUTPUT
//--------------------------------------------------------------------------------------
GpioCtrlRegs.GPAGMUX2.bit.GPIO29 = 0; // GPIO-29
GpioCtrlRegs.GPAMUX2.bit.GPIO29 = 0; //
GpioCtrlRegs.GPADIR.bit.GPIO29 = 0; // 0-INPUT, 1-OUTPUT
//--------------------------------------------------------------------------------------
EDIS;
what is the issue? the configuration for other gpio pins it is working fine.
Thanks & Regards,
J. Rani