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.

TMS570LC4357: a

Part Number: TMS570LC4357

Hi , 

Do you have an example Assembly code which controls GPIO's in TMS570LC4357 micro controller using CCS. 

  • Hi Abhijith,

    No, we don't have an assembly example code. You can write code as below:

    //configure GIOA[3:0] as output
    ldr r0, GIOA_DIR
    ldr r2, GIOA_DIR_VAL
    str r2, [r0]

    //write 0x5 to GIOA port
    ldr r0, GIOA_DOUT
    ldr r2, GIOA_DOUT_VAL
    str r2, [r0]


    GIOA_DIR .word 0xFFF7BC34
    GIOA_DOUT .word 0xFFF7BC3C

    GIOA_DIR_VAL .word 0x0F
    GIOA_DOUT_VAL .word 0x05