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.

TPS65381A-Q1: Controlling ENDRV signal from ERROR/WDI and SPI

Part Number: TPS65381A-Q1

Hi!

We want to use both the SPI bus AND the ERROR/WDI pin to be able to trigger a low ENDRV output signal. Is this possible? And does both have to use the watchdog Q&A mode then? Or can another mode such as WD trigger mode, MCU Error Mode  or PWM Mode be used for the ERROR/WDI pin at the same time as SPI is used for Q&A? Because if utilizing SPI for health check, Q&A mode has to be used for that correct? 

Br,

Victor

  • Hi Victor,

    I want to make sure I understand your question correctly. You want to know if Watchdog in Q&A mode and MCU Error monitoring can be used at the same time?

    If I understand your question correctly, then the answer is yes. You can use Watchdog in Q&A mode which uses the SPI bus and MCU Error either in TMS570 mode or PWM mode depending on your MCU architecture at the same time.

    Please let me know if this answers your question.

    Regards,
    Ivan

  • Hi,

    Yes, thank you, that answers my question!

    And as a follow-up question: Is it possible to use Watchdog Q&A on SPI and Watchdog Trigger mode on ERROR/WDI pin at the same time? 

    Br,

    Victor

  • Hi Victor,

    The watchdog can only be configured either on Q&A mode OR Trigger mode. This configuration is done via WD_CFG bit field on the SAFETY_FUNC_CFG register.

    When you use Watchdog Q&A instead of the Watchdog in trigger mode you achieve a higher diagnostic coverage in your application using the TPS65381A-Q1 device.

    Regards,
    Ivan

  • Hi ivan,

    Thank you for your answer! How is a reset prevented during programming of the MCU since no communication will be present on the SPI bus? 

    Br,

    Victor 

  • Hi Victor.

    One option could be to put the TPS65381A-Q1 in diagnostic mode and disable exiting from diagnostic state while the device is being programmed (this is controlled via DIAG_EXIT_MASK in the SAFETY_CHECK_CTRL register). Once the MCU is reprogrammed you can re synchronize the Q&A Watchdog and generate good events on the MCU ERROR pin before exiting Diagnostic state

    Please let me know if this option works for you.

    Regards,
    Ivan