Ahmed Fathy

Short circuit detection on MC9S12XDP512

Discussion created by Ahmed Fathy on Dec 5, 2007
Latest reply on Dec 7, 2007 by Ahmed Fathy
Hi;

I'm doing validation for digital input output module on the MC9S12XDP512 microcontroller.

In the microcontroller data sheet; the PTIT, PTIS, PTIM, PTIP, PTIH, and PTIJ registers are used "as written on data sheet" to detect overload or short circuit conditions on output pins.

So, please verify if the next test is an Applicable test:

DDRH = 0xFF;   // Data direction is output
PTH = 0xFF;      // Output Value is HIGH
force eternal LOW signal "Short Circuit" on PortH.
Read PTIH;       // The value read is 0x00

Notes:
The upove test will work correctly and will not harm the microcontroller, or cause any problem.
This test can be done for a long time, as long as it is needed.

If the previous notes is true and the  test is Applicable, please notify me.

Thank you so much.

Outcomes