Other Parts Discussed in Thread: HALCOGEN
Hi,
For my project requirement, I need to generate interrupt using HET (CNT instruction) and call a function when the interrupt is triggered.
Please could you help me in the following:
1)
In HET IDE, I have set the following:
T1_CNT: CNT {next=T2_CNT, reg=NONE, irq=ON, max=1000}
T2_CNT: CNT {next=T1_CNT, reg=NONE, irq=ON, max=3000}
2)
In het.c (generated using halcogen by importing the files from HET IDE)
In hetInit() function, what values do I have to configure for these:
a) hetREG1->PRY
b) hetREG1->INTENAS
3)
In vim.c (generated using halcogen)
I have enabled:
channel 10 - HET high [halcogen generated the function: het1HighLevelInterrupt()]
channel 24 - HET low [halcogen generated the function: het1LowLevelInterrupt()]
Please could you guide me if the steps I am following are correct.
Thanks.