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.

AM2634-Q1: How to configure SAFETY_ERRORn as PWM output

Part Number: AM2634-Q1

Hi, Dear Experts

I already reference this thread, I think we have the same question.

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1161307/am2634-q1-questions-about-esm-and-error-pin/4368194?tisearch=e2e-sitesearch&keymatch=esm%2525252520pwm#4368194

Error/WDI (watch dog input) pin of the PMIC TPS653852 is connected to Safety_ERRORn pin of the AM263x,

How do we generate PWM on SAFETY_ERRORn? We may need :

1. Application note? or

2. How to set register? or

3. Any SDK API support?

Many Thanks

Gibbs

  • Hi Gibbs,

    The ERRORn pin can be configured to operate in either level mode or PWM mode. In level mode, the ERRORn output remains active low (asserted) for a minimum period of time. In PWM mode, the error causes the output pin to maintain the value (H or L) for a minimum period of time. 

    If the ERRORn pin is in PWM mode, then when no error is detected it will toggle according to programmable MMR widths for high and low periods. When an error occurs, the error pin stops toggling and remains constant until the error is cleared. An external PMIC that is detecting the PWM toggles can identify the error if the pin stops toggling. The periods should be programmed such that they fit within the expectation of the external PMIC.

    The PWM mode can be enabled by writing 1 to ESM_PIN_CTRL[7:4] register. 

    There is no API in SDK to configure ESM ERRORn pin to operate in PWM mode.