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.

RM46L852: How to detect short / open error on PWM pin?

Part Number: RM46L852
Other Parts Discussed in Thread: TPS65381A-Q1,

Hi, all:

   I use RM46L852 chip with TPS65381A-Q1 in my project.  

     If PWM pin(connecting to external device) of  the RM  is  in a SHORT /  OPEN  condition,  Can RM46L852 detect this error?  Is there a method(software) to detect this error?

 

Best Regards

Daimb.

  • Hello,

    If your concern is within the MCU, you can use internal loopback to monitor an N2HET output signal (PWM). For example, if a PWM is generated by HR structure 0 on Pin0, then you can use Pin1 to measure back the pulse length of the Pin0 PWM output signal using PCNT instruction. Loopback mode is activated between two high resolution structures by setting LBPSEL[x] to ‘1’ in the HETLBPSEL Register.

    If you want detect if the signal trace is short or open, you can use external loopback using a wire/trace on the PCB.  For example, if the PWM is used to drive a switch,  the signal can be loopback from switch to a GPIO pin of MCU.

  • Hi QJ Wang:

       It is the answer I wanted.

      Thanks very much!

    Best Regards

    Daimb