High-Side Driver Module - HSDRV2C (HSDRV2CV3)
MC9S12VRP Family Reference Manual Rev. 1.3
NXP Semiconductors
369
12.3.9
HSDRV2C Interrupt Flag Register (HSIF)
12.4
Functional Description
12.4.1
General
The HSDRV2C module provides two high-side drivers able to drive LED or resistive loads. The drivers
can be controlled directly through register bits or alternatively by dedicated timer or PWM channels. See
PIM chapter for routing details.
The following sub-section describes the open-load and over-current detection features for both drivers.
12.4.2
Open Load Detection
A “High-load resistance Open Load Detection” can be enabled for the driver by setting the associated
HSCR[HSEOLx] bit (refer to
Section 12.3.4, “HSDRV2C Configuration Register (HSCR)
”. This
detection is only active when the associated driver is enabled and it is not being driven. To detect an
open-load condition a small current I
HVOLDC
will flow through the load. If the driving pin HS[x] stays at
a voltage above an internal threshold then an open load will be detected for the associated high-side driver.
The open-load condition is flagged in the HSDRV Status Register (HSSR).
Module Base + 0x0007
Access: User read/write
1
1
Read: Anytime
Write: Write 1 to clear, writing 0 has no effect
7
6
5
4
3
2
1
0
R
0
0
0
0
0
0
HSOCIF1
HSOCIF0
W
Reset
0
0
0
0
0
0
0
0
= Unimplemented
Figure 12-8. HSDRV2C Interrupt Flag Register (HSIF)
Table 12-10. HSDRV Interrupt Flag Register (HSIF) Field Descriptions
Field
Description
1-0
HSOCIFx
HSDRV2C Over-Current Interrupt Flags
These flags are set when an over-current event occurs on the associated high-side driver (| I
HS
| > | I
OCTHSX
|). While set the associated high-side driver is turned off.
Once the flag is cleared, the driver is controlled again by the source selected in PIM module.
0 No over-current event occurred since last clearing of flag
1 An over-current event occurred since last clearing of flag
Summary of Contents for MC9S12VRP64
Page 16: ...MC9S12VRP Family Reference Manual Rev 1 3 16 NXP Semiconductors ...
Page 46: ...Device Overview S12VRP Series MC9S12VRP Family Reference Manual Rev 1 3 46 NXP Semiconductors ...
Page 236: ...S12S Debug Module S12DBGV2 MC9S12VRP Family Reference Manual Rev 1 3 236 NXP Semiconductors ...
Page 244: ...Interrupt Module S12SINTV1 MC9S12VRP Family Reference Manual Rev 1 3 244 NXP Semiconductors ...
Page 358: ...Timer Module TIM16B2CV3 MC9S12VRP Family Reference Manual Rev 1 3 358 NXP Semiconductors ...
Page 436: ...Supply Voltage Sensor BATSV2 MC9S12VRP Family Reference Manual Rev 1 3 436 NXP Semiconductors ...
Page 528: ...NVM Electrical Parameters MC9S12VRP Family Reference Manual Rev 1 3 528 NXP Semiconductors ...
Page 530: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 530 NXP Semiconductors ...
Page 531: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 NXP Semiconductors 531 ...
Page 532: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 532 NXP Semiconductors ...