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: GIO deactivation in N2HET

Part Number: TMS570LC4357

Hello,

We would like to have more information about N2HET.

As described in the Referendce manual (Figure 23-1.) the N2HET modules can be turn off via the TO bit in the HETGCR register.

GIO functionality of N2HET module seems cannot be turned off.

Is it possible to put the N2HET pins in N2HET functionality rather GIO functionality (in order to cut-off the GIO functionality) ?

Or is there another means to shut-off the N2HET that TO bit to stop globally the NHET ?

Is the HETPINDIS, the good register to disable the N2HET pins ?
E.g :
- Pin disabled if HETPINDIS at 0x00 + HETDIR at 0x00
- Output buffer disabled (Hi-Z) if HETPINDIS at 0x01 and (nDIS at 0x00 or HETDIR at 0x00 or HET Pin ENA at 0x00)

Best regards,

Christopher

  • Hi Christopher,

    There are several ways to ensure that the N2HET module does not respond to any inputs and does not output any signal.

    The N2HET pins are general-purpose inputs by default. The HET module does not respond to any of these inputs unless it is programmed to do so via an N2HET program, and when the HET program execution is turned ON.

    The HETDIN register will also show the status of the pins only once the clock to the module is enabled. This clock is disabled by default and needs to be enabled via the PSPWRDWNCLR register.

    Can I please ask what it is that you are trying to implement? I can help you better with that knowledge.

    Regards,
    Sunil
  • Hello,

    Thanks for your answer.

    For our application, we would like to deactivate completely the N2HET modules. Therefore we would like to deactivate the primary function (N2HET timer) and the GIO functionality without been in low power down mode (i.e. clock off) in order to have still an access to registers.

    For the primary function, the N2HET modules can be turn off via the TO bit in the HETGCR register.
    -> I think that this deactivation do not disable the GIO functionality in the N2HET modules. Is it correct ?

    If the GIO functionality still enabled whereas N2HET normal mode is disabled, we would like also to disable the GIO function.
    -> That is why, we would like to put the N2HET module in functional mode (i.e. not in GIO mode) and deactivate the N2HET module

    Best regards,
    Christopher
  • Hello,

    Could you provide us an answer please ?

    Best regards,

    Christopehr

  • For the primary function, the N2HET modules can be turn off via the TO bit in the HETGCR register.
    -> I think that this deactivation do not disable the GIO functionality in the N2HET modules. Is it correct ?

    >> Yes, the TO bit only controls the program execution engine of the N2HET. The general-purpose I/O functionality is still active. The pins are all tri-stated (or inputs) by default, so the only functionality available is that the HETDIN registers show the pins statuses.

    If the GIO functionality still enabled whereas N2HET normal mode is disabled, we would like also to disable the GIO function.
    -> That is why, we would like to put the N2HET module in functional mode (i.e. not in GIO mode) and deactivate the N2HET module

    Even when N2HET memory is programmed and the N2HET code execution is enabled, the GIO functionality is still active. The timer structure and the general-purpose output form two parallel paths to drive an output timer channel. The general-purpose input functionality is also always active, that is, the HETDIN register still shows the status of each pin.

    Regards,
    Sunil