27
Knock Sensor Training TPIC8101 6/27/2011 1 Thomas Cosby

Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Embed Size (px)

Citation preview

Page 1: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Knock Sensor TrainingTPIC8101

6/27/2011 1

Thomas Cosby

Page 2: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Knock Sensor Basics

6/27/2011 2

Page 3: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Knock Sensor - Background

• Almost all cars have knock sensors to meet OBDII emissions control requirements.

• Engine knock can occur when the charge inside the cylinder detonates causing a pinging sound. This can be a result of:

• Improper engine timing• Using the wrong octane gasoline• Worn or defective spark plugs

• Engine knock may damage the engine cylinder

6/27/2011 3

• Engine knock may damage the engine cylinder

• Cars/Trucks have knock sensors mounted on the engine block

• Knock sensors are piezo-electric elements– The vibrations of the engine are converted into electric signals

• Knocking is controlled using spark timing

Page 4: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Knock Sensor - Types

6/27/2011 4

Knock sensor construction

• Piezo element to detect pressure wave.

• Resistor element to for open load

detection

• Signal returns and cable shield.

Page 5: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Knock Sensor – Mounting Location

ENGINE

KNOCK

6/27/2011 5

Most engines

have two knock

sensors

KNOCK

SENSOR

Page 6: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Ignition System Timing

Intake Cycle Compression Cycle

6/27/2011 6

Intake Cycle Compression Cycle

Combustion Cycle Exhaust Cycle

Page 7: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Knock Sensor - Waveforms

6/27/2011 7

Typical noise content in a running engine. Typical flat response type knock signal

Typical places where noise occurs in the ignition cycle. Typical resonant response type signal.

Page 8: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101: Knock Sensor Interface

6/27/2011 8

Page 9: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101: Knock Sensor Interface

• Engine Knock Detector Signal Processing

• Analog Signal Processing With Filter Characteristics

- Piezoelectric sensing

- Accelerometer sensing

• Dual-channel Engine Knock Sensor Interface

• External Clock Frequencies up to 24 MHz– 4, 5, 6, 8, 10, 12, 16, 20, and 24 MHz

• SPI interface (for Microprocessor)

• Programmable Gain

• Programmable Band-Pass Filter Center Freq.

Package: DW (20-pin, 1.27 mm pitch)

6/27/2011 9

• Broad µC selection via 9 selectable ext. clock

frequencies

• Selectable input channels improve accuracy

• Choice of output signal profile: analog or digital

• Can use for general analog signal processing

• Advanced SPI mode capability available

• System-level diagnostics of device capable via

Test Mode

• Programmable Band-Pass Filter Center Freq.

• Programmable Input Frequency Pre-scaler

• Operating Temp. Range: - 40ºC to 125ºC

Page 10: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Knock Sensor Applications Schematic

+

-

+

-

+

-

VDD/2Vref

Mux

3rd Order AAF

SAR

10-bit ADC

fs = 200 kHz

<1:10>

Programmable

Gain

Programmable

Band-Pass Rectifier

Programmable

Integrator

CH1P

CH1N

CH1FB

CH2P

CH2N

CH2FB

100 nF

Knock Sensor 1

3.3 nF

R

R R

R

6/27/2011 10

Microcontroller

A/D

GainFilter

RectifierIntegrator

+

-

R2R

10-bit DAC

fs = 200 kHz

SPI

Test Mode

DSP Control

DSP

VDD GND OUT

XIN

XOUT 1 MΩ

1 kΩ

470 pF

CS__

SCLK SDI SDO TEST____

INT / HOLD

Knock Sensor 2

3.3 nF

Note: R > 25 kΩ

Page 11: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Engine Knock Sensor Key Parameters

Basic DC Quiescent Condition Parameters• Quiescent current (IDDQ): 7.5 mA (typ.)

• Max. Operating current (IDD(OP)): 20 mA

• Hysteresis Voltage (Serial IF & Pre-scaler): 0.4 V (typ.)

Input Amplifier Parameters• Cross-coupling attention: 40 dB (min.)

• Open-loop gain (Av): 100 dB (typ.)

• Gain Bandwidth Product: 2.6 MHz (typ.)

• Offset Voltage @ Input: -10 mV to +10 mV

Output (Buffer) Amplifier Parameters• High-level output volt. (VOH): VDD-0.15 (typ.)

• Low-level output volt. (VOL): 175 mV (max.)

• Ripple voltage: 10 mV (max.)

• Settling time (ts): 20 µs (max.)

Anti-Aliasing Filter Parameters• Frequency response (1 kHz to 20 kHz): ±1 dB

• Attenuation @ 100 kHz: -15 dB to -10 dB

• -3 dB Frequency Range: 35 kHz to 55 kHz

6/27/2011 11

• Offset Voltage @ Input: -10 mV to +10 mV

• CMRR range: 60 – 80 dB

Prescaler/Oscillator Parameters:• Min. input peak amplitude: 150 mV

• Input Capacitance: 7 pF

• Leakage Current: -1 µA to +1 µA

Operating Temperature Range:• -40ºC to +125ºC

• -3 dB Frequency Range: 35 kHz to 55 kHz

Recommended Operation Conditions• Regulated input voltage (VDD): -0.3 V to +5.5 V

• Output voltage range (buffer): -0.3 V to +5.5 V

• Input voltage range: 0.05 V to (VDD-0.05) V

• DC Input Current (IIN): ±1 µA> for CH1P, CH1N, CH2P, and CH2N pins

• DC Input Voltage (VDCIN): ½ VDD> for CH1P, CH1N, CH2P, and CH2N pins

• Continuous Power Dissipation: 100 mW (max.)

Page 12: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 Knock Sensor Block Diagram

AINVIN

6/27/2011 12

Auto

AO

tINTVO

ABPAP AINTτC

(System Transfer Function)

Page 13: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 Transfer Function

IN

RESETOUT

C

INTBPPININTBP

BP

INOUT

RESETOUT

C

INTBPPIN

TINT

BP

BP

INOUT

RESETOUT

C

INTBPPIN

T

BPINOUT

VAAAAATfV

V

VAt

AAAATff

VV

VAt

AAAAtff

VV

VAt

AAAAdttfVV

INT

+−=

+−=

+−=

+= ∫

*1*****))cos(1(*

*1*****))cos(1(*

*1*****)cos((*

*1

*****)sin(

0

0

π

ππ

ππ

π

6/27/2011 13

RESETOUT

C

INTINTBPPIN

INOUT

RESETOUT

C

INTINTBPPIN

INOUT

INT

RESETOUT

C

INTBPPININTBP

BP

INOUT

VAt

TAAAA

VV

VAt

TAAAA

VV

f

NT

VAt

AAAATff

VV

+=

+−−=

=

+−=

******2*

******))1(1(*

*1*****))cos(1(*

π

π

ππ

Page 14: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 Transfer Function, continued

6/27/2011 14

Page 15: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 Input Settings

6/27/2011 15

AIN = R2/R1

VIN

2 channels

Page 16: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 DSP Settings

ABPAP AINT = 2τC

ABP = 2 at the center frequency.

6/27/2011 16

Datasheet

page 10

AP APτC

Set to match sensor outputs

ABP = 2 at the center frequency.

Assumes that AIN = 1.

Page 17: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 Integrator Programming

6/27/2011 17

Page 18: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 Integrator Programming, continued

6/27/2011 18

Page 19: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 SPI Interface

6/27/2011 19

Page 20: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 Default SPI Mode

6/27/2011 20

Page 21: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 Advanced SPI Mode

6/27/2011 21

Page 22: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 Test Mode

6/27/2011 22

Page 23: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101: Application Example

6/27/2011 23

Page 24: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

Application Requirements

Requirements:

• VIN = 7.3KHz, 300mVpp (Knock Sensor specification)

• Oscillator = 6MHz (Microprocessor clock specification)

• Knock window (TINT)= 3ms (system spec)

• OUT = 4.5V (Microprocessor interface specification)

Need to set:

• Input amplifier gain (AIN)

• Programmable gain (AP)

• Integration time constant (T )

6/27/2011 24

• Integration time constant (TC)

Set AIN = 1; R1 = R2

TC is typically TINT/(2*π*VOUT) ⇒

TC = 3ms / (2*π*4.5) = 106µs

4.5V = 0.15*AP*2.55*3ms/100µs + 0.125 ⇒

AP = 0.38

Page 25: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 Application Schematic

6/27/2011 25

Page 26: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101 SPI Settings

Parameter Calculated Programmed Code SPI

Value Value DEC HEX

Oscillator 6MHz 6MHz 01000010

Channel 1 1 11100000

fC0 7.3KHz 7.27KHz 42 2A 00101010

6/27/2011 26

AP 0.38 0.381 34 22 10100010

TC 106µs 100µs 10 0A 10001010

TINT 3ms

Page 27: Knock Sensor Training TPIC8101 - RhinoPower Ltd Sensor - Background • Almost all cars have knock sensors to meet OBDII emissions control requirements. • Engine knock can occur

TPIC8101EVM Waveforms

7270KHz,

300mVpp

INT,

3ms

6/27/2011 27

Output

4.48V3ms