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.

TMS470M HDK LED turns on

Hello 

I can't LEDs turn on by the HDK board. I using CCS 5.4.

Source code of my program:

/*
* main.c
*/

#include "het.h"
#include "gio.h"

int main(void) {

/** - NHET is configured as Master
* - NHET is turned On */
hetREG->GCR = 0x01000001;

/** - PULL functinality is enabled */
hetREG->HETPULDIS = 0x00000000;

/** - Configure NHET[0-5] pins as output */
hetREG->CCDIR = 0x8000003F;

/** Note : --> Always HET31 is set High to function as Active low ESM error Pin */
/** - Clear all pins by taking them to zero */
hetREG->CCDWR = 0x80000000;

/** - Set all NHET[0..5] LEDs */
hetREG->CCDWR = 0x8000003F;

while(1){

}
}

"het.h", "gio.h" - standart files of TMS470M Argoboard Demo project.

What is missing?

Regards, Roman

  • Roman,

    looks like the het codes you have is very old because i dont find the CCDWR register name in latest HET codes.

    can you upload your het.h file?

    Anyway, after you set the direction bits correctly, you can toggle pin by either write directly to HETDOUT register or write 1 to HETDSET (bit-banding) to force any bit in HETDOUT to be set (without doing read modified write) and write 1 to HETDCLR (same concept) to clear any bit in HETDOUT.

    In your codes, look like you write 0 and 1 to the same CDDWR which i am not sure what it is yet.

  • Hi

    I attach a file to this post.

    My project:

    1057.v01.rar

    het.h

    6114.het.h

    I have not found a definition GCR, CCDWR, HETPULDIS e.t.c. registers in TMS470M Argoboard Demo project.