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.

TMS570LC4357: With N2HET turned off, when does HETDCLR take action?

Part Number: TMS570LC4357

Tool/software:

I am running an N2HET program, but I need to pause the N2HET (using GCR.TO) and clear the output pins. From the documentation, the Turn-off is delayed until the current timer loop is completed, which for me is ~333ns. If I want to clear the N2HET output pins, do I need to wait 333ns after setting GCR.TO to 0 before writing to the HETDCLR register? Otherwise can you tell me the proper sequence to pause the N2HET and clear the timer output pins?

Thanks,

Jim

  • Hi Jim,

    You are right, in the worst-case scenario the turn-off will take one loop resolution period and, in your case, it is 333nS.

    My suggestion would be either you can wait for 333nS or else you can just readback the TO bit and make sure it is 0, if it is 0 means TO was successful and you can proceed for next step.

    --

    Thanks & regards,
    Jagadish.