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?