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.
Hi
I want when e0 event is triggered, HLC generate an interrupt to call the function for resetting the CLB.
I don't know how I should implement it, I appreciate if someone guide me through this.
I saw that to do that I should use INTR xx command in HLC program but I don't know how it is work and what is number after INTR command and which interrupt it activate.
Thanks.
Hello,
The expert is on leave. Please expect a reply by 1st April.
Thanks & Regards,
Sinchita
The expert is out of the office and the forthcoming weekend is a long weekend in the US. Please expect a response early next week. In the interim, please check if the below posts provide you any insight. These posts also refer to similar posts that may help you. Please take a look at the posts under the "Similar Topics" section on the right side of the screen.
Hi Hamidreza,
You are correct in your initial thought, in the program code for e0, you can have it execute INTR xx. The xx number is arbitrary and is used to help the CPU distinguish which HLC event issued the interrupt using the getInteruptTag function. If you only have a single HLC event, this number is arbitrary and you can choose whichever value you want
You can register the CLB interrupt and enable it in the PIE using the SysConfig tool. Then you should simply define the interrupt routine in the source code.
__interrupt void INT_myCLB0_ISR(void)
{
}
You can refer to our C2000 Academy (https://dev.ti.com/tirex/global?id=c2000Academy) which has a step-by-step lab on configuring the CLB interrupt and a real-world use case.
Regards,
Peter