P Ex Valve Controller Pug
P Ex Valve Controller Pug
Contents
1 General Info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Embedded Component Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.1 Component API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.2 Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.4 Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Typical Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 User Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1
1 General Info 2
2.1
This documentation introduces Processor Expert component named MC34ValveController. This
component supports and provides flexible software solution for these analog parts:
NXP offers tower board solutions based on these chips, namely TWR-MC34SB0410 and
TWR-MC34SB0800 boards. Detailed description can be found in related hardware user guides and
datasheets.
Table 1
Method Description
Init Initializes the device with predefined values.
Deinit Deinitializes the device. It sets reset pin (RSTB) to LOW. Valve
controller consequently clears all registers of valve controller de-
vice.
WriteRegister This method writes a value to selected SI register. It allocates
SPI bus and calls internal function VC write register.
ReadRegister This method reads a value from selected SO register. It allo-
cates SPI bus and calls internal function VC read register.
GetControllerStatus Gets selected status information. It reads content of two se-
lected device registers and returns them. Then you can check
possible faults.
ClearDriverFault Clears selected fault flags. This method handles only faults re-
lated to driver modules (all lowside drivers, highside driver,
pump motor predriver). It is not intended to clear faults of
supervision module (i.e. RST WD, RST ALU, RST EXT,
RST CLK, VINT UV, VCC5 UV, DOSV UV, OT, GND LOSS,
VPWR UV, VPWR OV).
SetDriverState This method sets selected driver output value. It handles driver
either by SPI bit (SPI control mode) or directly by output
of the MCU (Direct control mode). In case of PWM control,
”dsON” stands for predefined PWM duty, ”dsOFF” means 0
percent duty.
SetPDPWMDuty This method sets PWM duty cycle for pump motor predriver. It
is available only when property ”Input Control” of pump motor
predriver is set to ”PWM”.
SetLSDPWMDuty This method sets PWM duty cycle for selected lowside driver
(LSD) for inductive loads. An error is returned when the se-
lected LSD is not in PWM mode. It also reports an error when
the PWM duty converted to target current is above limit (see
property ”Maximum Current”).
2.2
2.3
SetLSDPWMFrequency This method sets PWM frequency for selected lowside driver
(LSD) for inductive loads.
SetLSDCurrent This method sets current target for selected lowside driver for
inductive loads (LSD). This method is blocking. When the low-
side driver is in PWM mode the software PI regulation is uti-
lized to reach current target. An error is returned when the cur-
rent target is above limit (see property ”Maximum Current”).
SetPIRegulator This method sets parameters of PI regulator.
GetLSDPWMDuty This method returns PWM duty cycle for selected lowside driver
for inductive loads (LSD). It can be used only when selected
LSD is in current regulation mode.
GetLSDCurrent This method returns current value for selected lowside driver
for inductive loads. It can be used only when selected LSD is in
PWMed mode.
GetADCValue This method gets and interprets selected ADC value from a
valve controller register.
FeedWatchdog This method handles watchdog of valve controller. It sends
MCU monitoring result computed for LFSR output received
from the device.
GetLSDMode This method returns mode for selected lowside driver for induc-
tive loads (LSD).
GetResetPinVal This method returns value of reset pin. When the pin is LOW
the valve controller is in fault state. You can use method Init
for recovery.
FlutterCurrent This method checks whether to adjust the current of lowside
driver and sets new current target to create sinusiodal current
curve. Call this method as often as possible.
2.2 Events
There are no Events in this component
2.3 Methods
Init -Initializes the device with predefined values.
ANSIC prototype: TError Init(void)
Return value:TError - error code ERR OK - success ERR RST EXT - RST pin level is low errors
related to WriteRegister
Deinit -Deinitializes the device. It sets reset pin (RSTB) to LOW. Valve controller consequently clears
all registers of valve controller device.
WriteRegister -This method writes a value to selected SI register. It allocates SPI bus and calls
internal function VC write register.
ANSIC prototype: TError WriteRegister(uint8 t RegNum,uint16 t RegVal)
uint8 t :RegNum- Identifier of register to be written. It corresponds to message ID (MSG ID)
defined in valve controller datasheet. You can use macros defined in MC34SB0410.h or
MC34SB0800.h according to valve controller model. Possible values for MC34SB0410 are in range
[0 - 16] except reserved registers [2]. Possible values for MC34SB0800 are in range [0 - 26] except
reserved registers [2, 19-23].
uint16 t :RegVal - New value of selected register.
Return value:TError - error code ERR OK - success ERR PARAM VALUE - invalid parameter
value ERR BUS OFF - SPI bus not available ERR PARITY - wrong parity of send or received
data errors related to internal functions responsible for SPI communication (for more details see
PE Error.h)
ReadRegister -This method reads a value from selected SO register. It allocates SPI bus and calls
internal function VC read register.
ANSIC prototype: TError ReadRegister(uint8 t RegNum,uint16 t *RegValPtr)
uint8 t :RegNum- Identifier of register to be written. It corresponds to message ID (MSG ID)
defined in valve controller datasheet. You can use macros defined in MC34SB0410.h or
MC34SB0800.h according to valve controller model. Possible values for MC34SB0410 are in range
[0 - 16] except reserved registers [2]. Possible values for MC34SB0800 are in range [0 - 26] except
reserved registers [2, 19-23].
uint16 t : Pointer to RegValPtr - pointer to memory where content of selected 16 bit register is
stored.
Return value:TError - error code ERR OK - success ERR PARAM VALUE - invalid parameter
value ERR PARAM ADDRESS - invalid parameter address (null pointer) ERR BUS OFF - SPI
bus not available ERR PARITY - wrong parity of send or received data errors related to internal
functions responsible for SPI communication (for more details see PE Error.h)
GetControllerStatus -Gets selected status information. It reads content of two selected device
registers and returns them. Then you can check possible faults.
ANSIC prototype: TError GetControllerStatus(TControllerStatus StatusSelection,uint16 t
*StatusDataPtr)
TControllerStatus :StatusSelection- Type of status information to be read (fault status, version of
device, etc.). Common inputs csDEVICE INFO [M0R] version, [M1R] manufacturing data Specific
inputs for MC34SB0410 - csSUPERVISION [M0R] RST EXT, RST CLK, VINT UV, VCC5 UV,
DOSV UV, [M3R] OTW, GND LOSS, VPWR UV, VPWR OV csPD [M3R] PD OT [M4R]
PD OC csLS12 [M6R] VDS LD1, LD1 OT, LD1 OP, LD1 OC [M7R] VDS LD2, LD2 OT,
LD2 OP, LD2 OC csLSD CRERR [M5R] LSD1-4 CRER csLSD12 [M10-13R] VDS LSD1-4,
LSD1-4 OT, LSD1-4 OP, LSD1-4 OC csLSD34 Specific inputs for MC34SB0800 -
csSUPERVISION [M0R] RST WD, RST ALU, RST EXT, RST CLK, VINT UV, VCC5 UV,
DOSV UV, [M3R] OT, GND LOSS, VPWR UV, VPWR OV csPD HD [M5R] PD OC, HD OC
[M18R] HD LKG csLS [M6R] VDS LD, LD OT, LD OP, LD OC csLSD CRERR [M8R]
LSD1-4 CRER csLSD12 [M10-17R] VDS LSD1-8, LSD1-8 OT, LSD1-8 OP, LSD1-8 OC csLSD34
csLSD56 csLSD78 csHS [M24R] VDS HS, HS OT, HS OP, HS OC
uint16 t : Pointer to StatusDataPtr - Two element array to store selected status information (i.e.
Content of two selected device registers)
Return value:TError - error code ERR OK - success ERR PARAM VALUE - invalid parameter
value ERR PARAM ADDRESS - invalid parameter address (null pointer) errors related to
ReadRegister
ClearDriverFault -Clears selected fault flags. This method handles only faults related to driver
modules (all low-side drivers, high-side driver, pump motor pre-driver). It is not intended to clear faults
of supervision module (i.e. RST WD, RST ALU, RST EXT, RST CLK, VINT UV, VCC5 UV,
DOSV UV, OT, GND LOSS, VPWR UV, VPWR OV).
ANSIC prototype: TError ClearDriverFault(TFaultSelection FaultSelection)
TFaultSelection :FaultSelection- Selection of fault to be cleared. It is not allowed to combine faults.
If you want clear all faults, pass fsALL value. Common inputs - fsLSD, fsPD, fsALL Specific
inputs for MC34SB0410 - fsLD1, fsLD2 Specific inputs for MC34SB0800 - fsLD, fsHD, fsHS
Return value:TError - error code ERR OK - success ERR PARAM VALUE - invalid parameter
value errors related to WriteRegister
SetDriverState -This method sets selected driver output value. It handles driver either by SPI bit
(SPI control mode) or directly by output of the MCU (Direct control mode). In case of PWM control,
”dsON” stands for predefined PWM duty, ”dsOFF” means 0 percent duty.
ANSIC prototype: TError SetDriverState(TDriverSelection Driver,TDriverState State)
TDriverSelection :Driver - Selection of valve controller driver. Common inputs - dsPD Specific
inputs for MC34SB0410 - dsLD1, dsLD2 Specific inputs for MC34SB0800 - dsHD, dsHS, dsLD
TDriverState :State- New output value of the selected driver. Possible values are dsON and
dsOFF.
Return value:TError - error code ERR OK - success ERR PARAM VALUE - invalid parameter
value ERR PARAM ADDRESS - invalid parameter address (null pointer) ERR PD DIS - PD
disabled in properties errors related to WriteRegister
SetPDPWMDuty -This method sets PWM duty cycle for pump motor pre-driver. It is available only
when property ”Input Control” of pump motor pre-driver is set to ”PWM”.
SetLSDCurrent -This method sets current target for selected low-side driver for inductive loads
(LSD). This method is blocking. When the low-side driver is in PWM mode the software PI regulation
is utilized to reach current target. An error is returned when the current target is above limit (see
property ”Maximum Current”).
TPCharacteristic :PChar - Proportional characteristic of the PI regulator. For possible values see
definition of TPCharacteristic enumeration.
TICharacteristic :IChar - Integration characteristic of the PI regulator. For possible values see
definition of TICharacteristic enumeration.
TIntegratorLimit :Limit- Limit of the integrator. Possible values are ilLOW (0x03FF) and ilHIGH
(0x07FF).
Return value:TError - error code ERR OK - success ERR PARAM VALUE - invalid parameter
value errors related to WriteRegister
GetLSDPWMDuty -This method returns PWM duty cycle for selected low-side driver for inductive
loads (LSD). It can be used only when selected LSD is in current regulation mode.
FeedWatchdog -This method handles watchdog of valve controller. It sends MCU monitoring result
computed for LFSR output received from the device.
GetResetPinVal -This method returns value of reset pin. When the pin is LOW the valve controller
is in fault state. You can use method Init for recovery.
2.4
Return value:bool - level of RST pin (TRUE - high, FALSE - LOW)
FlutterCurrent -This method checks whether to adjust the current of low-side driver and sets new
current target to create sinusiodal current curve. Call this method as often as possible.
2.4 Properties
Component Name - Name of the component.
Valve Controller Model - Select valve controller model. Model selection affects which properties are
available or hidden, enabled or disabled.
General Settings - Settings of valve controller.
SPI Link - Linked SPI Device component.
Reset Pin Link - Link to a BitIO LDD component.
Reset Pin - Select pin for RSTB. The pin is used for device reset and detection of fault state.
Discharge Slew Rate - Select slew rate used by pump motor pre-driver and high-side driver
modules. When the power FET is switched off, the gate capacitance of the FET is discharged
by a constant current, which is controlled fast or slow.
There are 2 options:
Slow: Slow slew rate (typ. 100 microA)
Fast: Fast slew rate (typ. 2 mA)
Clock Frequency - Select frequency of clock modules, i.e. the main supply clock CLK1 and
auxiliary clock CLK2. Clock frequency is 14 MHz when ”Fixed” option is selected. In other
cases the frequency modulation is used. Two deviation frequencies are available to spread the
oscillators energy over a wide frequency band.
There are 3 options:
Fixed
Modulated with 350 kHz: Deviation frequency is 350 kHz
Modulated with 700 kHz: Deviation frequency is 700 kHz
Internal Clock Monitoring - Set internal clock monitoring function. If disabled, it has no
effect on functionality except clock monitoring function, because auxiliary clock CLK2 is
deactivated. The main clock CLK1 remains active.
There are 2 options:
Enabled
Disabled
HS for Fail-safe Switch - Select initial state of high-side driver intended to control the fail-safe
switch for the overall solenoid path.
There are 2 options:
On: Feature is on
Off: Feature is off
LSD for Inductive Loads - Settings of low-side drivers that control inductive loads.
Rise Time and Fall Time - Set rise time and fall time of low-side drivers.
There are 2 options:
Long: Long rise time (typ. 1.7 micro sec) and fall time (1.35 micro sec)
Short: Short rise time (typ. 0.5 micro sec) and fall time (1.0 micro sec)
Open Load Detection - Set low-side driver’s sink current for open load detection.
There are 2 options:
Enabled
Disabled
PWM Frequency - Settings of output PWM frequency for low-side drivers.
Frequency of LSD 1 - 4 - Select output PWM frequency for low-side drivers 1 - 4.
Integrator Limit - Set integrator limit. Possible values are 1023 (0x03FF) and 2047
(0x07FF).
There are 2 options:
1023: Limit is 1023 (0x03FF)
2047: Limit is 2047 (0x07FF)
Minimum PWM Duty - Select the minimum duty cycle of the low-side drivers 1 - 4
PWM outputs. This option affects time when the current meassurement occurs. Note that
maximum duty cycle is 100%.
There are 4 options:
10%: Minimum PWM duty is 10%
3.12%: Minimum PWM duty is 3.12%
3.12% and 1.56%: Minimum PWM duty is 3.12% and duty 1.56% is forced every two
cycles
3.12% and Skipping: Minimum PWM duty is 3.12% and skipping every two cycles
First PWM Duty - Select the first duty cycle of the low-side drivers 1 - 4 PWM
outputs. The first duty cycle is either controlled by current or limited to a fixed duty cycle
which a target current is transformed in.
There are 2 options:
Controlled by Current
Fixed Duty Cycle
Flutter Frequency Timer - Settings of a timer used by Flutter Frequency function.
The following items are available only if the group is enabled (the value is ”Enabled”):
TimerInt LDD Link - Link to a TimerInt LDD component.
Timing Device - Name of a timing device used by TimerInt LDD component.
LSD - Low-side driver for current regulated or PWMed valves.
Maximum Current - Select current limitation value in mA. This value is applied in
component methods.
Control Mode - Set low-side driver mode. Either current regulation or PWM mode can
be enabled in time. Current Regulation means that a digital current regulation circuitry
compares the actual load current with the target current value and steers the duty cycle of
the low-side power switch.
Target Current - Select target current in mA. Minimum value is 0 mA, maximum
2250.6 mA and step is 2.2 mA. Value is rounded to the nearest available value. In
column ”Details” you can see final value that is put into valve controller register.
Flutter Frequency - Flutter frequency settings.
The following items are available only if the group is enabled (the value is ”Enabled”):
Frequency - Frequency of sinusoidal current curve. When the Flutter Frequency
function is utilized by two or more LSDs the frequency value is corrected. This
corrections is needed, because all LSDs use one interrupt where the current is
adjusted. So frequency of the interrupt must fit to all LSDs.
Points per Period - Number of points per period. One point correspond to a value
of current.
There are 11 options:
8
12
16
20
24
28
32
36
40
44
48
Amplitude - Amplitude of sinusoidal curve in mili Amps.
PWM Duty - Select desired PWM duty cycle. Zero value stands for 0% and value 255
represents 100% duty cycle.
LSD - Low-side driver for current regulated or PWMed valves.
Pump Motor Pre-driver - Settings of DC motor pump module. Registers related to pump
motor pre-driver are initialized to default values defined in datasheet when you select ”Disabled”.
The following items are available only if the group is enabled (the value is ”Enabled”):
Overcurrent Masking Time - Select masking time from direct input turn-on against
malfunction on transient time. This masking time is used by overcurrent detection logic. T2 is
typically 293 micro sec (see datasheet).
There are 2 options:
T2: Overcurrent masking time is equal to T2 (typ. 293 micro sec)
No Masking Time: No masking time
Overcurrent Masking Time - Select masking time from PDI turn-on against malfunction
on transient time. This masking time is used by overcurrent detection logic. T1 is typically
18.2 micro sec (see datasheet).
There are 2 options:
Half of T1: Overcurrent masking time is equal to half of T2 (T1 is typ. 18.2 micro sec)
No Masking Time: No masking time
Overcurrent Filter Time - Select overcurrent filter timer of pump driver. The drain-source
voltage of the FET on PD G is checked if the high-side predriver is switched on. If the
measured drain-source voltage exceeds the overcurrent voltage threshold, the output of the
overcurrent comparator is enabled. If the output of the comparator is active longer than the
defined filter time, the output PD G is switched off. T1 is typically 18.2 micro sec and T2 is
293 micro sec (see datasheet).
There are 2 options:
T2: Overcurrent filter time is T2 (typ. 293 micro sec)
4 x T1: Overcurrent filter time is 4 x T1 (T1 is typ. 18.2 micro sec)
ControlMode - Select control mode. It is driven either directly by MCU pin (”Direct” mode)
or through SPI interface (”SPI” mode). It is not possible to change the mode later when you
select SPI mode due to selection of control pin.
Initial State - Select initial state of driver output.
There are 2 options:
On: Feature is on
Off: Feature is off
Input Control - Select control mode of driver input. Pump motor input pin can be
controlled by GPIO or PWM port.
Control Pin Link - Link to a BitIO LDD component.
Control Pin Link - Link to a PWM LDD component.
3
Control Pin - Select pin to directly control the driver. This is the PDI pin when
MC34SB0410 model is used or ADIN1 pin for MC34SB0800.
PWM Frequency - Select PWM frequency.
PWM Duty - Select PWM duty cycle. Zero value stands for 0 percent and value 255
represents 100 percent duty cycle.
Initial State - Select initial state of driver output.
There are 2 options:
On: Feature is on
Off: Feature is off
LD 1 for Resistive Charge - Settings of low-side driver 1 for general purpose.
There are 2 options:
On: Feature is on
Off: Feature is off
LD 2 for Resistive Charge - Settings of low-side driver 2 for general purpose. This driver is
available only on MC34SB0410 device.
There are 2 options:
On: Feature is on
Off: Feature is off
HS for General Purpose - Select initial state of high-side driver for general purpose. It allows
connecting and disconnecting loads like voltage dividers from the supply line, to reach low
quiescent current of the total ECU or to driver small size relay driver.
There are 2 options:
On: Feature is on
Off: Feature is off
Auto Initialization - Automated initialization of the component. The component Init method is
automatically called from CPU component initialization function PE low level init().
There are 2 options:
yes
no
3 Typical Usage
Examples of typical settings and usage of MC34ValveController component
Content of main.c:
E r r o r = VC Init ( ) ;
i f ( E r r o r != ERR OK) {
/∗ I n i t i a l i z a t i o n was s u c c e s s f u l . ∗/
} else {
/∗ I n i t i a l i z a t i o n was not s u c c e s s f u l . ∗/
}
}
Feeding watchdog.
This example shows how to feed watchdog to preserve communication between MCU and VAPS.
Note that this applies only for MC34SB0800 model.
Required component setup and dependencies:
Properties: None
Methods: FeedWatchdog
Content of main.c:
while (1) {
E r r o r = VC1 FeedWatchdog ( ) ;
i f ( E r r o r != ERR OK) {
/∗ Something went wrong . ∗/
}
}
}
Properties: None
Methods: GetControllerStatus
Content of main.c:
/∗ Reads s u p e r v i s i o n data . ∗/
E r r o r = V C 1 G e t C o n t r o l l e r S t a t u s ( csSUPERVISION , StatusData ) ;
i f ( E r r o r != ERR OK) {
/∗ Something went wrong . ∗/
}
e l s e { /∗ I n t e r p r e t a t i o n o f s t a t u s data . ∗/
i f ( StatusData [ 0 ] & VC M0R RST WD MASK) { /∗ WD RST ( v a l i d MR was not
updated w i t h i n t wd ) ∗/
/∗ Take some a c t i o n . ∗/
}
...
Properties: None
Methods: SetDriverState
Content of main.c:
/∗ S e t s PD ON. ∗/
/∗ Note t h a t d r i v e r s which can be c o n t r o l l e d by SPI o r d i r e c t l y a r e
handled t h e same way . ∗/
E r r o r = V C 1 S e t D r i v e r S t a t e ( dsPD , dsON) ;
i f ( E r r o r != ERR OK) {
/∗ Something went wrong . ∗/
}
...
/∗ S e t s PD OFF. ∗/
E r r o r = V C 1 S e t D r i v e r S t a t e ( dsPD , dsOFF ) ;
i f ( E r r o r != ERR OK) {
/∗ Something went wrong . ∗/
}
Properties: None
Methods: SetLSDCurrent
Content of main.c:
/∗ Waits u n t i l new c u r r e n t v a l u e i s s t a b i l i z e d . ∗/
/∗ Reads c o r r e s p o n d i n g duty v a l u e . ∗/
E r r o r = VC1 GetLSDPWMDuty( 1 , &Duty ) ;
i f ( E r r o r != ERR OK) {
/∗ Something went wrong . ∗/
}
}
Properties: None
Methods: SetLSDPWMDuty
Content of main.c:
/∗ Waits u n t i l new c u r r e n t v a l u e i s s t a b i l i z e d . ∗/
/∗ Reads c o r r e s p o n d i n g c u r r e n t v a l u e . ∗/
E r r o r = VC1 GetLSDCurrent ( 1 , &Current ) ;
i f ( E r r o r != ERR OK) {
/∗ Something went wrong . ∗/
}
}
Properties: None
Methods: SetPDPWMDuty
Content of main.c:
/∗ S e t s PD on . ∗/
E r r o r = V C 1 S e t D r i v e r S t a t e ( dsPD , dsON) ;
i f ( E r r o r != ERR OK) {
/∗ Something went wrong . ∗/
}
...
...
/∗ S e t s PD OFF. ∗/
E r r o r = V C 1 S e t D r i v e r S t a t e ( dsPD , dsOFF ) ;
i f ( E r r o r != ERR OK) {
/∗ Something went wrong . ∗/
}
}
Properties: None
Methods: ClearDriverFault
Content of main.c:
/∗ C l e a r s f a u l t s o f LSD d r i v e r s . ∗/
E r r o r = V C 1 C l e a r D r i v e r F a u l t ( fsLSD ) ;
i f ( E r r o r != ERR OK) {
/∗ Something went wrong . ∗/
}
...
/∗ C l e a r s f a u l t s o f a l l d r i v e r s . ∗/
E r r o r = V C 1 C l e a r D r i v e r F a u l t ( fsALL ) ;
i f ( E r r o r != ERR OK) {
/∗ Something went wrong . ∗/
}
Properties: None
Methods: GetADCValue
Content of main.c:
/∗ Reads d i e t e m p e r a t u r e i n d e g r e e s o f C e l s i u s . ∗/
E r r o r = VC1 GetADCValue ( asDIE TEMP , &R e s u l t ) ;
i f ( E r r o r != ERR OK) {
return Error ;
4
}
...
...
/∗ Reads e x t e r n a l v o l t a g e i n mV. ∗/
/∗ Note t h a t ADIN1−3 i n p u t can be used t o measure e x t e r n a l v o l t a g e , but
a l s o t h o s e p i n s can be used t o d i r e c t l y c o n t r o l some o f d r i v e r s . ∗/
E r r o r = VC1 GetADCValue ( asADIN1 , &R e s u l t ) ;
i f ( E r r o r != ERR OK) {
return Error ;
}
}
4 User Types
ComponentName TLSDMode = enum { lmCR, lmPWM, lmUNDEFINED} Mode of low-side
driver for inductive loads.
ComponentName TADCSelection = enum { asVINT A, asVINT D, asVPRE10, asVPRE12,
asVGS PD, asDIE TEMP, asADIN1, asADIN2, asADIN3, asVCP VPWR} Selection of measured
value from a valve controller register.
ComponentName TIntegratorLimit = enum { ilLOW, ilHIGH} Limit of the integrator used by
LSD current regulator.
ComponentName TPCharacteristic = enum { pch 1 0, pch 1 0312, pch 1 0625, pch 1 0938,
pch 1 125, pch 1 1562, pch 1 1875, pch 1 2188, pch 0 9688, pch 0 9375, pch 0 9062, pch 0 875,
pch 0 8438, pch 0 8125, pch 0 7812} Proportional characteristic of the PI regulator for LSD.
ComponentName TICharacteristic = enum { ich 0 125, ich 0 25, ich 0 1875, ich 0 1562,
ich 0 3125, ich 0 0938, ich 0 0625, ich 0 0312} Integration characteristic of the PI regulator for
LSD.
ComponentName TLSDFrequency = enum { lf 3 9 KHZ, lf 4 5 KHZ, lf 5 0 KHZ, lf 4 2 KHZ,
lf 3 6 KHZ, lf 3 4 KHZ, lf 3 2 KHZ, lf 3 0 KHZ} PWM Frequency values used for LSD.
ComponentName TLSDSelection = enum { lsLSD14, lsLSD58} LSD group selection. Always
four LSDs have common PWM frequency setting.
ComponentName TControllerStatus = enum { csSUPERVISION, csDEVICE, csPD, csLS,
csLSD, csHS} Type of status information to be read (fault status, version of device, etc.).
ComponentName TDriverState = enum { dsOFF, dsON} State of valve controller driver.
ComponentName TDriverSelection = enum { dsPD, dsLD1, dsLD2, dsHD, dsHS, dsLD}
Selection of valve controller driver.
ComponentName TFaultSelection = enum { fsLSD, fsPD, fsLD1, fsLD2, fsLD, fsHD, fsHS,
fsALL} Selection of driver fault. It is intended to clear faults.
NXP, the NXP logo, Freescale and the Freescale logo are trademarks of NXP B.V. All other product or service
names are the property of their respective owners. All rights reserved.
© 2016 NXP B.V.