Thursday, 1 November 2018

protection - JTAG Circuit to prevent back powering


Reading a presentation on an MPU evaluation board I found this particular circuit:


back powering prevention on JTAG


Can someone please explain me the logic behind this and what is this "back powering" scenario that the presentations talks about?



Answer



Back Powering is what happens when data entering an un-powered device's input pin is routed up through the internal ESD diodes in the device onto its power rail. This often provides enough power to run the device (escpecially with idle-high signals coming in) but with (often dire) consequences.




  • ESD diodes may burn out

  • IO pin circuitry may be damaged

  • The device providing the errant signals may be damaged


It's hard to tell from that circuit, but I have to assume (due to a process of deduction) that it is in the evaluation board, not the JTAG device.


There are three important power circuits in question here - REG_3V3, the power from the internal voltage regulator, VDDIO_3V3, the JTAG IO port 3.3V power signal, and WALL_5V_IN, the main input power to the board.


The op-amp compares those voltages (actually it compares VDDIO_3V3 to 87% of REG_3V3, thanks to the voltage divider R298 and R306). If VDDIO_3V3 is above that 87% reference voltage, then the output of the op-amp is high. That high signal will enable the MOSFETs in the data path to allow the signals through the interface.


However, when there is no power to the board, and when the JTAG is plugged in and powered, VDDIO_3V3 will be at 3.3V, and REG_3V3 will be at 0V, so you would expect the output of the op-amp to be high. But, we're forgetting WALL_5V_IN. As there's no power to the board, that will also be at 0V, so the op-amp will be unpowered. Therefore it doesn't output anything at all, and the voltage divider formed by R297 and R305 between 0V and GND would pull the output into a low state. That then turns off the MOSFETs isolating the JTAG bus from the rest of the board, protecting it from any signals coming in that could damage it.


As for why there's a comparator in there, and not just monitor the incoming power directly by tying it to the gate of the MOSFETs? The user manual explains it as thus:




The signal lines are disconnected when the i.MX28 shuts down to prevent back powering from the JTAG tool into the i.MX28 processor. The disconnect circuit is triggered by the falling edge of the VDDIO_3V3 supply via comparator U48 when the i.MX28 processor shuts down.



The VDDIO_3V3 supply is generated internally inside the i.MX28 controller. It is possible (by the sounds of things) for the board to be powered up (WALL_5V_IN == 5V, REG_3V3 == 3.3V) but for the chip to be shut down and not running (VDDIO_3V3 == 0V), in which case the MOSFETs should be in an off state - hence the comparator to compare the 3.3V generated by the i.MX28 with the externally regulated 3.3V supply.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...