Other Parts Discussed in Thread: HALCOGEN
I need to program my own HET code. I have read application node SPRABA0B and have a basic understanding about the PWM example there.
Now I need to code the free running timer from the HalCoGen blackbox driver, which is used in hetResetTimestamp() and hetGetTimestamp() in het.c
I guess the corresponding HET program for this is:
/* CNT: Timebase
* - Instruction = 0
* - Next instruction = 1
* - Conditional next instruction = na
* - Interrupt = na
* - Pin = na
* - Reg = T
*/
{
/* Program */
0x00002C80U,
/* Control */
0x01FFFFFFU,
/* Data */
0xFFFFFF80U,
/* Reserved */
0x00000000U
},
and
/* WCAP: Capture timestamp
* - Instruction = 57
* - Next instruction = 0
* - Conditional next instruction = 0
* - Interrupt = na
* - Pin = na
* - Reg = T
*/
{
/* Program */
0x00001600U,
/* Control */
(0x00000004U),
/* Data */
0x00000000U,
/* Reserved */
0x00000000U
},
Could someone from TI translate that into the HET assembler code? Or is the HET assembler code from the blackbox driver available to look into?
Thank you very much.