Can anyone help in generating delay using n2het?
I am using a TMS570ls1224 controller and have followed how to use n2het for PWM generation but I am finding it difficult to use it for a basic simple delay.
Please help
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.
Can anyone help in generating delay using n2het?
I am using a TMS570ls1224 controller and have followed how to use n2het for PWM generation but I am finding it difficult to use it for a basic simple delay.
Please help
Hi Ronak,
Firstly, sorry for the delay.
You will need to use the HET IDE to write your own code for this. You can use a CNT instruction for a simple delay. The CNT instruction can be configured to generate an interrupt. The instruction will count up and generate an interrupt when reaches the specified value. [Please keep in mind that you need more than one instruction in an NHET program for it to work correctly]. You can check the TRM (page 1122)for more info on CNT instruction. Please don't hesitate to reply if you need more help.
Thanks and Regards,
Vineeth