Beruflich Dokumente
Kultur Dokumente
TPIC8101
Thomas Cosby
6/27/2011
6/27/2011
6/27/2011
6/27/2011
KNOCK
SENSOR
Most engines
have two knock
sensors
6/27/2011
Intake Cycle
Combustion Cycle
6/27/2011
Compression Cycle
Exhaust Cycle
6
6/27/2011
Programmable Gain
6/27/2011
100 nF
CH1P
CH1N
+
-
Mux
CH1FB
CH2P
CH2N
3.3 nF
Vref
+
-
SAR
+
-
<1:10>
10-bit ADC
fs = 200 kHz
CH2FB
Knock Sensor 1
Programmable
Programmable
Programmable
Band-Pass
Gain
Rectifier
Integrator
Filter
3.3 nF
DSP
XIN
Knock Sensor 2
R2R
SPI
10-bit DAC
fs = 200 kHz
+
-
Test Mode
470 pF
DSP Control
XOUT
VDD
GND
OUT
__
CS
SCLK
SDI
SDO
____
TEST
1 M
INT / HOLD
1 k
A/D
Note: R > 25 k
6/27/2011
Microcontroller
10
Prescaler/Oscillator Parameters:
6/27/2011
-40C to +125C
11
VIN AIN
AP
ABP
AINT
AO
Auto
VO
tINT
(System Transfer Function)
6/27/2011
12
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
VIN
2 channels
AIN = R2/R1
6/27/2011
15
ABP
AINT = 2
AP
AP
Datasheet
page 10
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
AP = 0.38
TC is typically TINT/(2**VOUT)
TC = 3ms / (2**4.5) = 106s
6/27/2011
24
6/27/2011
25
Calculated
Value
6MHz
Programmed
Value
6MHz
Channel
fC0
7.3KHz
7.27KHz
42
2A
00101010
AP
0.38
0.381
34
22
10100010
TC
106s
100s
10
0A
10001010
TINT
3ms
6/27/2011
Code
DEC HEX
SPI
01000010
11100000
26
TPIC8101EVM Waveforms
7270KHz,
300mVpp
INT,
3ms
4.48V
Output
6/27/2011
27