Thomas Cosby
6/27/2011
6/27/2011
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
6/27/2011
6/27/2011
KNOCK SENSOR
6/27/2011
Intake Cycle
Compression Cycle
Combustion Cycle
6/27/2011
Exhaust Cycle
6
6/27/2011
Programmable Band-Pass Filter Center Freq. Programmable Input Frequency Pre-scaler Operating Temp. Range: - 40C to 125C
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
6/27/2011
VDD/2
+ -
+ -
Vref
Mux
+ 3rd Order AAF
R
3.3 nF
<1:10>
Knock Sensor 1
Programmable Gain
3.3 nF
DSP
XIN R2R 10-bit DAC fs = 200 kHz SPI
Knock Sensor 2
+ __ CS
470 pF 1M
VDD
GND
OUT
SCLK
SDI
SDO
INT / HOLD
1k
A/D
Note: R > 25 k
Microcontroller
6/27/2011
10
Quiescent current (IDDQ): 7.5 mA (typ.) Max. Operating current (IDD(OP)): 20 mA Hysteresis Voltage (Serial IF & Pre-scaler): 0.4 V (typ.)
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
Prescaler/Oscillator Parameters:
Min. input peak amplitude: 150 mV Input Capacitance: 7 pF Leakage Current: -1 A to +1 A
6/27/2011
11
VIN AIN
AP
ABP AO
AINT
Auto
VO
tINT
(System Transfer Function)
12
6/27/2011
VOUT =
1 * AOUT +VRESET tC
TINT VIN 1 VOUT = * ( cos(fBPt ) * AIN * AP *ABP * AINT * * AOUT +VRESET fBP tC 0 VIN 1 VOUT = * (1 cos(fBPTINT )) * AIN * AP *ABP * AINT * * AOUT +VRESET fBP tC VIN 1 VOUT = * (1 cos(fBPTINT )) * AIN * AP *ABP * AINT * * AOUT +VRESET fBP tC N TINT = f VIN TINT VOUT = * (1 (1)) * AIN * AP *ABP * AINT * * AOUT +VRESET tC VIN TINT VOUT = * 2 * AIN * AP *ABP * AINT * * AOUT +VRESET tC
6/27/2011 13
6/27/2011
14
6/27/2011
15
ABP = 2 at the center frequency. Assumes that AIN = 1. Set to match sensor outputs C Datasheet page 10 AP AP
6/27/2011
16
6/27/2011
17
6/27/2011
18
6/27/2011
19
6/27/2011
20
6/27/2011
21
6/27/2011
22
6/27/2011
23
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 (TC) Set AIN = 1; R1 = R2 TC is typically TINT/(2**VOUT) TC = 3ms / (2**4.5) = 106s
6/27/2011
24
6/27/2011
25
6/27/2011
26
TPIC8101EVM Waveforms
7270KHz, 300mVpp
Output
6/27/2011
27