mc9s12vr48 Freescale Semiconductor, Inc, mc9s12vr48 Datasheet - Page 408

no-image

mc9s12vr48

Manufacturer Part Number
mc9s12vr48
Description
S12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
High-Side Drivers - HSDRV (S12HSDRV1)
13.4
13.4.1
The HSDRV module provides two high-side drivers able to drive LED or resistive loads. The driver gate
can be controlled directly through register bits or alternatively by dedicated timer or PWM channels. See
PIM section for routing details.
Both drivers feature open-load and over-current detection described in the following sub-sections.
13.4.2
A “High-load resistance Open Load Detection” can be enabled for each driver by setting the corresponding
HSEOLx bit (refer to
be executed when the driver is enabled and it is not being driven (HSDRx = 0). To detect an open-load
condition a small current I
voltage, which is higher than a threshold set by the internal Schmitt trigger, then an open load will be
detected (no load or load >300K under typical power supply) for the corresponding high-side driver and it
can be observed that the current in the pin is I
An open-load condition is flagged with bits HSOL0 and HSOL1 in the HSDRV Status Register (HSSR).
13.4.3
Each high-side driver has an over-current detection while enabled with a current threshold of I
If over-current is detected the related interrupt flag (HSOCIF1 or HSOCIF0) is set in the HSDRV Interrupt
Flag Register (HSIF). As long as the over-current interrupt flag remains set, the related high-side driver
gate is turned off to protect the circuit.
Clearing the related over-current interrupt flag returns back the control of the gate to the selected source
in the PIM module.
13.4.4
This section describes the interrupt generated by HSDRV module. The interrupt is only available in CPU
run mode. Entering and exiting CPU stop mode has no effect on the interrupt flags.
The HSDRV interrupt vector is named in
at MCU level.
408
Functional Description
General
Open Load Detection
Over-Current Detection
Interrupts
Although the gate is turned off by the over-current detection, the open-load
detection might not be active. Open-load detection is only active if the
selected source (e.g. PWM, Timer, HSDRx) for the high-side driver is
turned off.
Section 13.3.4, “HSDRV Configuration Register
HVOLDC
MC9S12VR Family Reference Manual,
Preliminary - Subject to Change Without Notice
will flow through the load. Then if the driving pin HSx stays at high
Table
HS
13-10. Vector addresses and interrupt priorities are defined
<I
NOTE
HLROLDC
.
Rev. 2.2
(HSCR)”. This detection will only
Freescale Semiconductor
LIMHSX
.

Related parts for mc9s12vr48