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.

NHET: Can it stop itself?

Is there a way to run the NHET in a one-shot mode?

Can I make my Hercules controller do this:

1. At some point in time, the software gives the NHET some parameters and starts it.

2. The NHET runs until a certain condition is met (could be based on the parameters)

3. The NHET then generates an interrupt and stops itself.

4. The software acts on the interrupt.

5. Later on, the software can start the NHET timer again.

  • Certainly,


    Look at  

    For some ideas, like how the "Start/Stop" is done and how a command queue is setup ...

    Also a great explanation of this can be found

    Thanks to for this blog - his blog makes a complex appnote a lot easier to understand

  • Hello Andun,

    The timer micromachine reads instructions and executes the instructions stored in the NHET TRAM sequentially. The program execution is self-driven by external or internal events, branching to other routines based on input edges or output compares. Several instructions can change the program flow based on internal or external conditions. You can access the instructions and change the parameters at execution time, for example to change the duty cycle of a PWM or to read out the capture value of a specific signal edge. But you can not stop the execution.

     

  • Thanks!

    I have had a vacation break but will look into this in the coming weeks.
  • Also: Does TI offer consultancy services on the NHET, or can TI recommend any companies for this?

    I intend to acquire the necessary competency do design our application on my own.
    However our deadlines on HW development means that it would be useful to have a detailed discussion of what a feasible application of the NHET module would be in our application, as this will impact our HW design.
    (Or should I just ask in these forums?)
  • Hello Audun,

    We like to discuss the NHET questions in this forum. What will you use NHET module for?

    1. The code in NHET RAM keeps running, the user is not able to stop it and restart it
    2. You can modify the instruction parameters while the code is running
    3. The code can jump to conditional address if the condition is met
    4. The code can generate an interrupt is the IRQ is enabled. The HET flag will be set in HETFLG register
    5. The code can either set or clear the pins
    6. The code will not be able to act on an external interrupt, but it can detect the edges (rise or fall) of the external signals and measure its period and pulse duration.
  • Hello Audun,

    Actually it can act on an external interrupt. For example,

    BR instruction will execute a jump to a conditional address on a pin. The branch condition can be: