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.

Not able to toggle LED

Other Parts Discussed in Thread: TMS320F2808

Iam using TMS320F2808. I want to set GPIO 30 as output port and want to make LED ON connected to it.

I have written following code but I cant set 1 value to Data register. Please guide me

GpioCtrlRegs.GPAPUD.bit.GPIO30 = 0;        //


        GpioCtrlRegs.GPAQSEL2.bit.GPIO30 = 0;   //


        GpioCtrlRegs.GPAMUX2.bit.GPIO30 = 0;    // Configure GPIO30 forGPIO =0 and CANTXA =1


    GpioDataRegs.GPADAT.bit.GPIO30 = 1; //make LED ON

I cant see 1 value for GPADAT at debug window. Where I am wrong here?

newbee