8 Channel Fixed Frequency Constant Current Control With Current Profile Detection
8 Channel Fixed Frequency Constant Current Control With Current Profile Detection
8 Channel Fixed Frequency Constant Current Control With Current Profile Detection
0, Feb 2010
TLE8242-2
8 Channel Fixed Frequency Constant Current
Control With Current Profile Detection
Automotive Power
TLE8242-2
Table of Contents
Table of Contents
Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3.1 Direct PWM Mode Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3.2 Constant Current Mode Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 Pin Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 Pin Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2 Pin Definitions and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 General Product Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.1 Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.2 Functional Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.3 Thermal Resistance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5 Functional Description and Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1 Supply and Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.2 Input / Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.3 Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.3.1 On-State Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.3.2 Off-State Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.4 Output Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.5 Current Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.6 Current Feedback Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
5.7 Direct PWM control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.7.1 Selecting the Frequency of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.7.2 Selecting the Duty Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.8 Current Profile Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.8.1 Zone 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.8.2 Zone 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.8.3 Zone 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.8.4 Current Profile Time out & Detection Interrupted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.9 Serial Peripheral Interface (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.9.1 SPI Signal Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.9.2 SPI Message Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.9.2.1 SPI Message #0 - IC Version / Manufacturer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.9.2.2 SPI Message #1 - Control Method and Fault Mask Configuration . . . . . . . . . . . . . . . . . . . . . . . . 39
5.9.2.3 SPI Message #2 - Diagnostic Configuration (channel 0-3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.9.2.4 SPI Message #3 - Diagnostic Configuration (channel 4-7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.9.2.5 SPI Message #4 - Diagnostic Read (channel 0-3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
5.9.2.6 SPI Message #5 - Diagnostic Read (channel 4-7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
5.9.2.7 SPI Message #6 - PWM Offset (channel 0-3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
5.9.2.8 SPI Message #7 - PWM Offset (channel 4-7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
5.9.2.9 SPI Message #8 - Main Period Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5.9.2.10 SPI Message #9 - Control Variable Set (KP and KI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
5.9.2.11 SPI Message #10 - Current and Dither Amplitude Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
5.9.2.12 SPI Message #11 - Dither Period Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Table of Contents
1 Overview
1.1 Features
• Low side constant current control pre-driver integrated circuit
• Eight independent channels
• Output current programmable with 11 bit resolution
– Current range = 0 to 1.2A (typ) with a 0.2 Ω sense resistor
– Resolution = 0.78125 mA/bit (typ) with a 0.2 Ω sense resistor
– +/- 2% full scale error over temperature when autozero is used
• Programmable PWM frequency via SPI from approximately
10 Hz to 4 kHz (typ) PG-LQFP-64
• Programmable KP and KI coefficients for the PI controller for each
channel
• Programmable superimposed dither
– Dither programmed by setting a dither step size and the number of PWM periods in each dither period
– Programmed via the SPI interface
– The dither for each channel can be programmed independently
• Programmable synchronization of the PWM control signals
– Phase delay time set via the SPI interface
– Synchronization initiated via signal at the PHASE_SYNC input pin
– Channels within one device and between multiple devices can be synchronized
• Each channel can be configured to for constant current control or for direct PWM control via SPI
• In Direct PWM mode, a current profile detection function is engaged
– Verifies solenoid armature movement
– Profile characteristics programmed via SPI
– Pass / Fail Status can be read via SPI
• Interface and Control
– 32 Bit SPI (Serial Peripheral Interface) - Slave only
– ENABLE pin to disable all channels or freeze all channels
– Active low RESET_B pin resets internal registers to their default state and disables all channels
– Open drain FAULT pin can be programmed to transition low when various faults are detected
– 5.0V and 3.3V logic compatible I/O
• Protection
– Over current shutdown - monitored at POSx pin
– Programmable over current threshold
– Programmable over current delay time
– Programmable over current retry time
– Battery pin (BAT) overvoltage shutdown
Overview
• Diagnostics
– Over current
– Open load in on state
– Open load in off state
– Short to ground
– Test complete bit - indicates that fault detection test has completed
• Control loop monitor capabilities
– The average current measurement over the last completed dither cycle for a selected channel can be
accessed via SPI
– The minimum and maximum current measurements over the last completed dither cycle for a selected
channel can be accessed via SPI. This data can be used to measure the achieved dither amplitude
– The duty cycle of each channel can be accessed via SPI
– The auto zero values used to cancel the offsets of the input amplifiers can be accessed via SPI
• Required External Components:
– N-Channel Logic level (5V) MOSFET transistor with typical Ron ≤ 100 mΩ (e.g. SPD15N06S2L-64)
– Recirculation diode (ultrafast)
– Sense resistor (0.2Ω for 1.2A average output current range)
• Green Product (RoHS compliant)
• AEC Qualified
1.2 Applications
• Variable Force Solenoids (e.g. automatic transmission solenoids)
• Other constant current solenoids
– Idle Air Control
– Exhaust Gas Recirculation
– Vapor Management Valve
– Suspension Control
Overview
Electronic Vs
Module
PWM or On/Off
Solenoid
POSx
NEGx
0.2 Ω
OUTx 10nF
Vs Electronic Vs
Module
Constant Current
Solenoid
POSx
NEGx
0.2 Ω
OUTx 10nF
During constant current operation, the PWM control signal driven at the OUTx pin is controlled by the control loop
shown in Figure 3. The PWM Frequency is programmed via the SPI message # 8. In this message the main period
Overview
divider, N, can be set to any value between 79 and 214 -1 and the divider M can be set to 32, 64, or 128. In direct
PWM mode, the value M can also be set to 512. The equation for calculating the PWM frequency is:
F CLK
F PWM =
M ∗ N
In constant current mode, the value of M is the number of A/D samples within one PWM period. Setting the SAM
bit in SPI Message #8 to a “1” will cause the ADC samples immediately following a change in the state of the OUTx
pin to be discarded. If the SAM bit is set to ‘0’, all M A/D samples are used in the average calculation.
The 11 bit Current Set Point is programmed via the SPI message #10. The equation for calculating the current
setpoint is:
setpoint(11bit) 320[mV]
CurrentSetpoint[mA]= ∗
211 R SENSE[ohm]
The Proportional coefficient (KP) and the Integral coefficient (KI) of the control loop are programmed in SPI
message #9. The KP and KI values should be set to values that result in the desired transient response of the
control loop. The duty cycle of the OUTx pin can be calculated from the difference equations:
Rsense [Ohm ]
DutyCycle (k ) = KP ∗ * error (k − 1) [ A] + INT ( k )
0.04 ∗ M ∗ N
Rsense [Ohm ]
INT ( k ) = KI ∗ * error (k − 1) [ A] + INT ( k − 1)
0.04 ∗ M ∗ N
where error is the difference between the commanded average current and measured average current in units of
Amps.
where k indicates the integer number of PWM periods that have elapsed since current regulation was initiated.
Overview
Autozero Autozero
Value Value
“ON” “OFF”
Auto Zero
AVG
CURRENT READ POSx
MIN Current -
CURRENT READ +
Readout Average A/D Amp
MAX
CURRENT READ NEGx
DUTY
CYCLE
CURRENT SET + -
POINT + KP OUTx
+ PWM
+ + Block
DITHER STEP SIZE Dither
DITHER STEPS Generation
KI Σ
CL K
DIRECT PWM
Table 1 describes the effect on the integrator of the PI controller of several events.
Overview
Auto Zero
The TLE8242 includes an autozero feature for each channel. When the setpoint of a channel is set to 0 mA and
the autozero is triggered by an SPI command, the offset of the amplifiers and analog to digital converters are
measured. The time required for the autozero sequence is calculated according to the formula:
4∗M∗ N
TAZ =
FCLK
The measured offsets can be read via SPI message #14. these offsets will be subtracted from the A/D converter
output as shown in Figure 3 when the current set point is greater than 0.
Dither
A triangular dither waveform can be superimposed on the current set point by setting the amplitude and frequency
parameters of the dither waveform via SPI messages #10 and #11. See the SPI message section for details.
The first programmed value is the step size of the dither waveform which is the number of bits added or subtracted
from the setpoint per PWM period. One LSb of the dither step size is 1/4th the magnitude of the nominal setpoint
current value. The second programmed value is the number of steps in one quarter of the dither waveform.
When dither is enabled, a new average current set point will not be activated until the current dither cycle has
completed. The dither cycle is completed on the positive zero crossing of the dither waveform. A new dither
amplitude setting or a new dither frequency setting will also not be activated until the current dither cycle has
completed. See Figure 4.
PWM_START
Dither
Dither
Parameter
Change
Figure 4 New Dither Values Programmed and the Resulting Waveform Timing
Note: The actual measured dither waveform is attenuated and phase shifted according to the frequency response
of the control loop.
Block Diagram
2 Block Diagram
BAT
V5D
GND_D Current Control, POS0
Dither, A/D Converter
V5A1 PWM, NEG0
Power Autozero,
V5A2 Channel Logic, PWM OUT0
V5A3 Current Profile Diagnostics
GNDA1
GNDA2
Current Control, POS1
Dither, A/D Converter
AMUX
Current Control, POS7
Dither, A/D Converter
GNDSA PWM, NEG7
Autozero,
PWM OUT7
GNDSD Channel Logic,
Current Profile Diagnostics
Pin Configuration
3 Pin Configuration
GNDA3
NEG1
NEG2
NEG3
POS1
OUT0
OUT1
OUT2
OUT3
POS2
POS3
V5A3
NC
NC
NC
NC
64 49
1 48
NEG0 NC
POS0 CS_B
NC SCK
V5A1 SI
SCO2 SO
SCO3 V_SIGNAL
GNDA1
GNDSA
TLE8242L FAULT
GNDSD
GNDA2 ADLER2 GND_D
CLK
AMUX
TEST RESET_B
V5A2 PHASE_SYNC
NC V5D
BAT NC
POS4 ENABLE
NEG4 NC
16 33
17 32
NC
NC
NC
NC
NC
NEG5
POS5
OUT4
OUT5
SCI3
OUT6
OUT7
POS6
NEG6
NEG7
POS7
Pin Configuration
Pin Configuration
Pin Configuration
Note: Stresses above the ones listed here may cause permanent damage to the device. Exposure to absolute
maximum rating conditions for extended periods may affect device reliability.
Note: Integrated protection functions are designed to prevent IC destruction under fault conditions described in the
data sheet. Fault conditions are considered as “outside” normal operating range. Protection functions are
not designed for continuous repetitive operation.
Note: Within the functional range the IC operates as described in the circuit description. The electrical
characteristics are specified within the conditions given in the related electrical characteristics table.
Electrical Characteristics:
V5D = 4.75V to 5.25V, Vbat = 5.5V to 42V, Tj = -40 °C to +150 °C, all voltages with respect to ground, positive
current flowing into pin (unless otherwise specified)
1/f clk
t14
VIH min
CLK VILmax
t15
The PHASE_SYNC pin is an input pin that can be used by the microcontroller to synchronize the PWM control
signals of multiple channels. The desired phase delay between the rising edge of the signal applied to the
PHASE_SYNC pin and the rising edge of the PWM signal of each channel can be programmed independently via
SPI message #6. The equation for calculating the offset is:
PhaseSynchOffset
Toffset =
32 * FPWM
Each time a pulse is received on the PHASE_SYNC pin, the IC will latch a bit which is reported via the response
to SPI message #19. (See SPI interface section for bit/message location.) This latch is cleared when the message
is read.
Note: The PWM periods are restarted when a rising edge is detected on the PHASE_SYNC pin. A periodic pulse
train on this pin will disturb the current regulation.
Note: After exiting the reset state, a pulse is needed on the PHASE_SYNC pin in order to synchronize the PWM
periods of the channels
OUTx
T1
PWM/32 CLK
T1
Program m ed delay =
8/32 PWM periods
PHASE_SYNC
Electrical Characteristics:
V5D = 4.75V to 5.25V, Vbat = 5.5V to 42V, Tj = -40 °C to +150 °C, all voltages with respect to ground, positive
current flowing into pin (unless otherwise specified)
n fault * predivider
t DIAG_PERIO D =
FCLK
Three unique fault types are detected using 4 different fault bits
The fault bit is set to a “1“ if the fault is detected.
Note: In order to differentiate between a Short to Ground Failure and an Open Load Failure, the channel must be
turned off (setpoint = 0ma).
Each fault type can be described by the two bits: FAULT and TESTED.
Divider Select
(SPI register) read SPI fault
register
digital filter
VPOS SB-FA short to battery
(only while ON)
VSB
PWM_Start
OUTx
Fault Retry Time
Tested Tested
Timer Timer
SB-T
short
LOAD ok
Vsb
VPOS
Fault
Fault Filter
Filter
SB-F
Load
Current
Diagnostic
Read via SPI
Short to Vbat
Figure 10 On-State Diagnostic Timing - Short to Vbat
PWM_Start
OUTx
VPOS
64 * PWM period
OL-ON-F
SPI
DIAGNOSTIC
READ
Figure 11 Open - On
V SUPPLY
Solenoid
V5A
(Vol+Vsg)/2 Ipu(sg)
(2.5V) + (150ua)
POSx
OA
- Ipd(ol)
(150ua)
Cpos
latch Filter -
SG- OUTx
FAULT
latch SG-FD Digital SG-FA -
CMP
Filter + Vsg (1.7V)
OUTx
Tested Tested
Timer Timer
OFF-T
open
LOAD
ok
Vol
VPOS Vsg
Fault Fault
OL-OFF-F Filter Filter
SPI
Diagnostic
Read
OUTx
Tested Tested
Timer Timer
OFF-T
Short to
ground
LOAD ok
Vol
VPOS Vsg
Fault Fault
Filter Filter
SG-F
SPI Diagnostic
Read
Electrical Characteristics:
V5D = 4.75V to 5.25V, Vbat = 5.5V to 42V, Tj = -40 °C to +150 °C, all voltages with respect to ground, positive
current flowing into pin (unless otherwise specified)
Pos. Parameter Symbol Limit Values Unit Conditions
Min. Typ. Max.
5.3.1 Over voltage shutdown VBATOV 42 – – V Rising voltage on
BAT
5.3.2 Open load detection voltage VPOS(OL) V5A-2.5 – V5A-1.5 V
5.3.3 POS pin OL pull down current IPD(OL) 90 150 225 µA V5A=5V,
VPOS=VNEG=V5A
5.3.4 Short to GND detection voltage VPOS(SHG) V5A-3.8 – V5A-2.8 V
5.3.5 POS pin SG pull-up current IPU(SHG) -280 -150 -90 µA V5A=5V,
VPOS=VNEG=0V
5.3.6 NEG bias current - Low common INEG(L) -40 – 10 µA V5A=5V,
mode VPOS=VNEG=0V
5.3.7 NEG bias current - High common INEG(H) 0 – 60 µA V5A=5V,
mode VPOS=VNEG=V5A
Electrical Characteristics:
V5D = 4.75V to 5.25V, Vbat = 5.5V to 42V, Tj = -40 °C to +150 °C, all voltages with respect to ground, positive
current flowing into pin (unless otherwise specified)
If dither is disabled (Dither Steps = 0 or Dither Amplitude = 0), then the Average Current Feedback value will be
updated every PWM period and will be the same as the 13 bit current feedback value used in the PI controller.
The SPI message #13 includes a VALID bit that indicates whether the average current measurement has
completed since the last register access. When the register is accessed, the VALID bit is cleared. The VALID bit
is set again when the summation is completed and new data has been stored in the register.
The summation process runs continuously on the last selected channel. So if the same channel is repeatedly
selected, new data is always available within one dither period after the SPI register is accessed.
If the selected channel is different than the previously selected channel, the summation process does not begin
until the beginning of the next dither period. So, new data may not be available until two dither cycles have
completed.
The channel selection for the Average Dither Current Feedback Message message will also select the channel for
the Minimum and Maximum Current Over Dither Period function.
TPWM = TCLK * M * N
or
f CLK
f PWM =
M*N
The value N is the divider programmed via the SPI interface. The IC will automatically limit the lower value of N to
79. If a value lower than 79 is programmed, the IC shall default N for that channel to 79 and return a value of 79
in the SPI response. The maximum value of N is 214-1 as it is programmed as a 14-bit number via SPI.
If a new value of N is programmed during operation, the new value of N will be returned on the next SPI message,
and the new value of N will be used at the beginning of the next PWM cycle. The default value for N is 625.
The value of M is the number of A/D samples in one PWM period. M is programmed with the value 32, 64, 128,
or 512 via an SPI message. The default value for M is 32. The PWM frequency multiplied by the value M is the
analog to digital converter sample rate. This sample rate must be no greater than 128 KHz.
M
T ON = T CLK * PWM duty cycle ∗
32
PWM duty cycle is a 19 bit value programmed in SPI message # 15 “PWM duty cycle”.
or
OUTx Voltage
Measured Current
(Differential Voltage )
Zone 2
Zone 1 Zone 3
A/D Samples
Detect Interrupt
Time Out
PASS
OUTx Voltage
Measured Current
(Differential Voltage )
Zone 2
Zone 1 Zone 3
A/D Samples
Detect Interrupt
Time Out
PASS
Figure 16 Current Profile Diagram - Waveform Showing Valve Movement with Non-Zero Threshold in
Zone 2
OUTx Voltage
Measured Current
(Differential Voltage )
Zone 1 Zone 2
A/D Samples
Detect Interrupt
Time Out
PASS
OUTx Voltage
Measured Current
(Differential Voltage )
Zone 2
Zone 1
A/D Samples
Detect Interrupt
Time Out
PASS
5.8.2 Zone 2
In zone 2, the TLE8242 compares the difference between successive A/D samples and calculates the ADDIFF
value. This value is compared with Threshold2 as follows:
– ADDIFF = A/Dm+1 - A/Dm
– IF (ADDIFF <Threshold2) THEN count = count +1
When ADDIFF is less than Threshold2 for Count2 out of Count2 + 1 successive comparisons, zone 2 is passed
and zone 3 is entered. When the thresold2 is set to 0, a negative difference in the A/D samples (negative slope)
must be detected. Note that if one of the tests fails, the actual test performed on the next sample after the single
failure is
– ADDIFF = A/Dm+1 - A/Dm-1
– IF (ADDIFF <2 * Threshold2) THEN count = count +1
This has the effect of filtering out a single noise spike in the A/D measurement.
5.8.3 Zone 3
In zone 3, the TLE8242 sample rate for the CPD function can be altered from the sample rate used for zone 1 and
zone 2. As in zone 1 and zone 2, the TLE8242 compares the difference between two A/D samples and calculates
ADDIFF. The sample rate can be altered in zone 3 such that ADDIFF is calculated as shown in Table 5.This allows
for more noise immunity and also allows the programming of a lower effective slope to be detected. When ADDIFF
is greater than Threshold3 for Count3 output of Count3 + 1 successive comparisons, the test passes and zone 3
is completed. When zone 3 passes, the current profile is passed.
Note that if one of the tests fails, the actual test performed on the next sample after the single failure is
– ADDIFF = A/Dm - A/Dm-2*a (a=1, 2, 3, 4 depending on the settings in Table 6)
– IF (ADDIFF > 2 * Threshold3) THEN count = count +1
This has the effect of filtering out a single noise spike in the A/D measurement.
If the entire CPD test passes (all three zones are passed before the time out), the "Passed Since Last Read" SPI
bit is set SPI message # 18.
Each channel of the Adler 2 is individually configurable for the current profile detection patterns.
The thresholds and counts for each zone must not be changed via SPI while a current profile detection sequence
is active, otherwise an incorrect detection may occur.
In cases where multiple channels require the same message structure, bits 24-25 of the Message Identifier
represent the channel numbers. The structure follows the following pattern
The message from the microcontroller must be sent MSB first. The data from the SO pin is sent MSB first. The
TLE8242 will sample data from the SI pin on the rising edge of SCK and will shift data out of the SO pin on the
rising edge of SCK.
All SPI messages must be exactly 32-bits long, otherwise the SPI message is discarded. The response to an
invalid message (returned in the next SPI message) is the message with identifier 00000 (Manufacturer ID).
When the ENABLE pin is low, all SPI writes commands are executed as read commands.
When RESET_B pin is low, the SPI port is disabled. No SPI messages are received and no responses are sent.
The SO pin remains in a high impedance state.
There is a one message delay in the response to each message (i.e. the response for message N will be returned
during message N+1).
Read/Write operation is referenced from the SPI master. The TLE8242 IC is the slave device.
When bit 31 is = 0 to denote a read operation to the IC, the message data in bits 23-0 of the sent message are
ignored, but will contain valid data in the response message.
All response data (either from a read or write operation) is the direct contents of the addressed internal register,
and is not an echo of the data sent in the previous SPI message.
The response to the first SPI message after a reset is message #0 (IC Version / Manufacturer).
Electrical Characteristics:
V5D = 4.75V to 5.25V, Vbat = 5.5V to 42V, Tj = -40 °C to +150 °C, all voltages with respect to ground, positive
current flowing into pin (unless otherwise specified). Maximum capacitive load on the SO pin = 200 pF.
t1 t2 t3
CS_B time
t4
t5 t6 t7 t8
t9 t 10
SI don’t care
Bit 31
MSB
Bit 30 Bit 29 Bit 1
Bit 0
LSB
don’t care
time
t 11 t 12 t13
Sent Values:
IC Version / Manufacturer
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 0 0 0 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
not used
Response:
IC Version / Manufacturer
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 MSG_ID IC Manuf ID
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Version Number 0 0 0 0 0 0 0 0
Sent Values:
Control Method and Fault Mask Configuration
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
R/W MSG_ID CM0 CM1 CM2 CM3 CM4 CM5 CM6 CM7
0 0 0 0 0 0 1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
FM0 FM1 FM2 FM3 FM4 FM5 FM6 FM7 FMR FME DIAG_TMR unused
msb lsb
Response:
Control Method and Fault Mask Configuration
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 0 0 0 1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
FM0 FM1 FM2 FM3 FM4 FM5 FM6 FM7 FMR FME DIAG_TMR 0 0 0 0
msb
msb lsb
Sent Values:
Diagnostic Configuration (channels 0-3)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
msb lsb msb lsb msb lsb msb lsb msb lsb
Response Values:
Diagnostic Configuration (channels 0-3)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
msb lsb msb lsb msb lsb msb lsb msb lsb
16 ∗ SB_Retryx
Retry Period =
f PWM
Sent Values:
Diagnostic Configuration (channels 4-7)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
msb lsb msb lsb msb lsb msb lsb msb lsb
Response Values:
Diagnostic Configuration (channels 4-7)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
msb lsb msb lsb msb lsb msb lsb msb lsb
16 ∗ SB_Retryx
Retry Period =
f PWM
Sent Values:
Diagnostic Read (channels 0-3)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 0 1 0 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
unused
Response Values:
Diagnostic Read (channels 0-3)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 0 1 0 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SB- OL- OL- OFF- SB- OL- OL- OFF- SB- OL- OL-
SB1 SG2 SB2 SG3 SB3
TST1 OFF1 ON1 TST2 TST2 OFF2 ON2 TST3 TST3 OFF3 ON3
Sent Values:
Diagnostic Read (channels 4-7)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 0 1 0 1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
unused
Response Values:
Diagnostic Read (channels 4-7)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 0 1 0 1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SB- OL- OL- OFF- SB- OL- OL- OFF- SB- OL- OL-
SB5 SG6 SB6 SG7 SB7
TST5 OFF5 ON5 TST6 TST6 OFF6 ON6 TST7 TST7 OFF7 ON7
Sent Values:
PWM Offset (channels 0-3)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 0 1 1 0 msb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
OFFS
OFFSET1 OFFSET2 OFFSET3
ET0
Response Values:
PWM Offset (channels 0-3)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 MSG_ID 0 0 0 0 OFFSET0
0 0 0 0 1 1 0 msb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
OFFS
OFFSET1 OFFSET2 OFFSET3
ET0
OFFSETx
PhaseSynchOffset=
32* f PWM
Equation: Phase Sync Offset (3)
Sent Values:
PWM Offset (channels 4-7)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 0 1 1 1 msb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
OFFS
OFFSET5 OFFSET6 OFFSET7
ET4
Response Values:
PWM Offset (channels 4-7)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 MSG_ID 0 0 0 0 OFFSET4
0 0 0 0 1 1 1 msb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
OFFS
OFFSET5 OFFSET6 OFFSET7
ET4
OFFSETx
Phase Synch Offset =
32 * f PWM
Equation: Phase Sync Offset (4)
Sent Values:
Main Period Set
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 1 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Divider M Divider N
Response:
Main Period Set
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 1 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Divider M Divider N
N∗M
PWM Period = [seconds]
f CLK
Sent Values:
Control Variable Set
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
KP (cont) KI
Response:
Control Variable Set
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 MSG_ID CHAN KP
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
KP (cont) KI
Sent Values:
Current and Dither Amplitude Set
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
unuse
R/W MSG_ID CHAN EN Dither Step Size
d
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Response:
Current and Dither Amplitude Set
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Sent Values:
Dither Period Set
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 1 0 0 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
msb lsb
Response:
Dither Period Set
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 MSG_ID CHAN 0 0 0 0 0 0 0 0
0 1 0 0 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 Number of Steps
msb lsb
4 ∗ Number of Steps
Dither Period =
f PWM
Sent Values:
Max / Min Current Read
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 1 0 1 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
unused
Response:
Max / Min Current Read
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
MAX 320[mV]
Max Current Feedback [mA] = 11
∗
2 Rsense[Ohm]
Note: When M=512 in Direct PWM mode, the following formula applies. The application software must ensure that
the register has not overflowed.
Sent Values:
Average Dither Current Read
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 1 1 0 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
unused
Response:
Average Dither Current Read
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
lsb
Note: When M=512 in Direct PWM mode, the following formula applies. The application software must ensure that
the register has not overflowed.
Equation: Average Dither Current Feedback M=512 with dither disabled (15)
Sent Values:
Autozero Trigger Read
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 1 1 1 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
unused
Response:
Autozero Trigger Read
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 1 1 1 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
When this register is written an Auto-Zero sequence is initiated for the selected channel, and the AZon and AZoff
bits are reset. The AZon and AZoff bits are set after the autozero sequence has completed.
When this register is read, the Auto-Zero sequence is not initiated, but the AZon and AZoff bits are reset.
Note: When a channel transitions from on to off, the autozero sequence for that channel must not be initiated until
the recirculation current has fully decayed to 0 mA. Otherwise, the calculated autozero values will be incorrect
resulting in inaccurate current regulation when a non-zero setpoint is programmed.
AZ_value 320[mV]
Autozero offset [mA] = 11
∗
2 Rsense[Ohm]
Sent Values:
PWM Duty Cycle
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
lsb
Response:
PWM Duty Cycle
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
lsb
Sent Values:
Current Profile Detection Setup 1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Response:
Current Profile Detection Setup 1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Sent Values:
Current Profile Detection Setup 2
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
1 0 1 0 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
msb lsb
Response:
Current Profile Detection Setup 2
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 MSG_ID CHAN 0 0 0 0 0 0 0 0
1 0 1 0 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
msb lsb
Sent Values:
Current Profile Detection Feedback
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
1 0 1 1 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
unused
Response:
Current Profile Detection Feedback
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 MSG_ID CHAN 0 0 0 0 0 0 0 0
1 0 1 1 msb lsb
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Detect Time-
0 0 0 0 0 0 0 0 0 0 0 0 0 PASS
Intrpt out
Sent Values:
Read Generic Flag Bits
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
1 1 1 1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
unused
Response:
Read Generic Flag Bits
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 MSG_ID 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 OV PS EN_L RB_L
Application Information
6 Application Information
Note: The following information is given as a hint for the implementation of the device only and shall not be
regarded as a description or warranty of a certain functionality, condition or quality of the device.
BATTERY Switched
BATTERY Battery
INPUT Power Supply OUT
(example TLE7368) +
uC I/O supply
+5V
+3.3V or +5.0V +5V analog
Solenoid
Channel 7
V_SIGNAL
Channel 6 Control
Current
Channel
Current5 Control
Channel
• Protection 4 Control
Current
••Diagnostic
Protection
••Dither
Current Control
• Diagnostic
Protection
••Current
CS_B • Dither
Diagnostic
Signature
• Protection
•• Current
Dither
•Signature
Diagnostic
SCK SPI •• Current
Dither
Signature
• Current
SI Profile
FAULT
GNDA1 GNDA2 GNDA3 GNDSA TLE 8242
Package Outlines
7 Package Outlines
Figure 21 PG-LQFP-64
You can find all of our packages, sorts of packing and others in our
Infineon Internet Page “Products”: http://www.infineon.com/products. Dimensions in mm
Package Outlines
Revision History
8 Revision History
Legal Disclaimer
The information given in this document shall in no event be regarded as a guarantee of conditions or
characteristics. With respect to any examples or hints given herein, any typical values stated herein and/or any
information regarding the application of the device, Infineon Technologies hereby disclaims any and all warranties
and liabilities of any kind, including without limitation, warranties of non-infringement of intellectual property rights
of any third party.
Information
For further information on technology, delivery terms and conditions and prices, please contact the nearest
Infineon Technologies Office (www.infineon.com).
Warnings
Due to technical requirements, components may contain dangerous substances. For information on the types in
question, please contact the nearest Infineon Technologies Office.
Infineon Technologies components may be used in life-support devices or systems only with the express written
approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure
of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support
devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain
and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may
be endangered.