mc9s12vr48 Freescale Semiconductor, Inc, mc9s12vr48 Datasheet - Page 98

no-image

mc9s12vr48

Manufacturer Part Number
mc9s12vr48
Description
S12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Port Integration Module (S12VRPIMV2)
2.5.3
Pin PP2 can be used as general-purpose I/O or due to its increased current capability in output mode as a
switchable external power supply pin (EVDD) for external devices like Hall sensors. An over-current
monitor is implemented to protect the controller from short circuits or excess currents on the output which
can only arise if the pin is configured for full drive. Although the full drive current is available on the high
and low side, the protection is only available if the pin is driven high (PTP[PTP2]=1). This is also true if
using the pin with the PWM.
To power up the over-current monitor set PIMMISC[OCPE]=1.
In stop mode the over-current monitor is disabled for power saving. The increased current capability
cannot be maintained to supply the external device. Therefore when using the pin as power supply the
external load must be powered down prior to entering stop mode by setting PTP[PTP2]=0.
An over-current condition is detected if the output current level exceeds the threshold I
The output driver is immediately forced low and the over-current interrupt flag PIFP[OCIF] asserts. Refer
to
2.5.4
The connection of an external pull device on any port L high-voltage input can be validated by using the
built-in pull functionality of the HVI pins. Depending on the application type an external pulldown circuit
can be detected with the internal pullup device whereas an external pullup circuit can be detected with the
internal pulldown device which is part of the input voltage divider.
Note that the following procedures make use of a function that overrides the automatic disable mechanism
of the digital input buffers when using the inputs in analog mode. Make sure to switch off the override
function when using an input in analog mode after the check has been completed.
External pulldown device
98
Section 2.4.4.3, “Over-Current
1. Enable analog function on HVIx in non-direct mode (PTAL[PTAENL]=1, PTAL[PTADIRL]=0,
2. Select internal pullup device on selected HVI (PTAL[PTPSL]=1)
3. Enable function to force input buffer active on selected HVI in analog mode (PTAL[PTTEL]=1)
4. Verify PTILx=0 for a connected external pulldown device; read PTILx=1 for an open input
PTAL[PTAL1:PTAL0]=x, where x is 0, 1, 2, or 3)
Over-Current Protection on EVDD
Open Input Detection on HVI Pins
(Figure
MC9S12VR Family Reference Manual,
Preliminary - Subject to Change Without Notice
Interrupt”.
2-48):
Rev. 2.2
Freescale Semiconductor
OCD
in run mode.

Related parts for mc9s12vr48