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.

tms320f2808, CCS 3.3 Setting Gpio from assembly?

Hello,

Some functions in C-software examples are written in Assembly language but I haven't got much experience with Assembly. So I tried to 'learn' writing to the Gpio in assembly by first writing the code in C and selecting the 'mixed mode' option after building.

The result in Mixed mode after build is:

GpioDataRegs.GPBTOGGLE.bit.GPIO34 = 1;

 MOVW     DP,#0x01BF
 OR    @14,#0x0004

When I copy the generated assembly code into a assembly file and build + run, the GPIO pin isn't changing. The Gpio34 pin has been configured as GPIOI (GpioCtrlRegs.GPBMUX1.bit.GPIO34  = 0;    // GPIO).

Is this the right method to toggle GPIO pins in assembly? Could someone help me out?

Best regards,

Tjarco

/edit/ when I try to change GPIO31 of port GPIOA in assembly, the I/O pin changes.