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.

Regarding the custom HET code using HET IDE

Hi,

I would like to thank Haixiao Weng for the prompt response to my previous post : http://goo.gl/tJHHM5

Another 2 questions I have are :
1) Does the HET code run in background? Can I run my main program after calling this instruction? 

hetREG-GCR = 0x01030001U;

2) How do I access the  registers as mentioned in my HET program? For instance, a line in the HET program says:

L01 WCAP {next=L02, cond_addr=L02, hr_lr=high, reg=A, event=RISE, pin=0, data=0}

And the corresponding entry in the C file is :

HET_MEMORY const HET_INIT0_PST[5] =
{

<others>

/* L01_0 */
{
0x00005600,
0x00004040,
0x00000000,
0x00000000
},

<others>

}

I wish to access the A register in the HET code, and store it in an int variable. How do I do that?

  • We received your post and will get back to you soon.

    Regards.

  • Abhishek Narwekar said:

    Hi,

    I would like to thank Haixiao Weng for the prompt response to my previous post : http://goo.gl/tJHHM5

    Another 2 questions I have are :
    1) Does the HET code run in background? Can I run my main program after calling this instruction? 

    hetREG-GCR = 0x01030001U;

    HW: It is run in the HET module , independant of the R4 CPU.

    2) How do I access the  registers as mentioned in my HET program? For instance, a line in the HET program says:

    L01 WCAP {next=L02, cond_addr=L02, hr_lr=high, reg=A, event=RISE, pin=0, data=0}

    And the corresponding entry in the C file is :

    HET_MEMORY const HET_INIT0_PST[5] =
    {

    <others>

    /* L01_0 */
    {
    0x00005600,
    0x00004040,
    0x00000000,
    0x00000000
    },

    <others>

    }

    I wish to access the A register in the HET code, and store it in an int variable. How do I do that?

    HW: Do you mean you want to save/load some HET instruction field on the fly? you can do sth like:

    hetRAM1->Instruction[2].Data =....

    of,

    xxx = hetRAM1->Instruction[2].Data;