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.

How to use the code generated by the HET IDE?

Other Parts Discussed in Thread: RM42L432, HALCOGEN

Hi,

I want to use the RM42L432 Launchpad for obtaining a Timestamp with high resolution (HR bits should show meaningful data) at pins 0, 2 and 4 simultaneously.

The code I wrote in the HET IDE looks like this:


L00 CNT {reg=A, max=1ffffffh}
L01 WCAP {next=L02, cond_addr=L02, hr_lr=high, reg=A, event=RISE, pin=0, data=0}
L02 WCAP {next=L03, cond_addr=L03, hr_lr=high, reg=B, event=RISE, pin=2, data=0}
L03 WCAP {next=L04, cond_addr=L04, hr_lr=high, reg=T, event=RISE, pin=4, data=0}
L04 BR {next=L00, cond_addr=L00, event=NOCOND};

I have assembled it and I have a .h and a .c file for the above code.

I entered their locations in the NHET driver settings of Halcogen.

How do I integrate this code with my main code using CCS? (The main code does operations on these timestamp values.)

Regards,

Nimit.