01.12.2012 Views

Knock Detection - Freescale

Knock Detection - Freescale

Knock Detection - Freescale

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

June, 2010<br />

Reducing System Cost with Integrated MCU Solutions<br />

for Engine and Transmission Applications<br />

FTF-AUT-F0354<br />

Robert Moran<br />

Powertrain Application Engineer<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

2<br />

Introduction<br />

► Lower system cost and increasing system complexity of new technology drives<br />

feature integration within the MCU<br />

► This session explores integrated features on the <strong>Freescale</strong> MPC56xx family used to<br />

reduce system cost and improve flexibility<br />

► Examples of two Applications can be used to demonstrate new integrated features<br />

on the <strong>Freescale</strong> MPC56xx family<br />

• <strong>Knock</strong> <strong>Detection</strong><br />

• Closed Loop Current Control<br />

► Presenter: Robert Moran<br />

► Expertise: Applications Engineer at <strong>Freescale</strong> for the last 6 years<br />

• Worked on the MPC5500 and MPC5600 Powertrain MCU families<br />

• Enabling and supporting customers with new IP<br />

► This presentation should take about one hour.<br />

TM


►This session will demonstrate:<br />

►How to reduce overall system cost by integrating<br />

functionality into the MCU<br />

►The functionality of these integrated features to<br />

illustrate the flexibility they offer<br />

►How integrated functionality is implemented with<br />

minimal impact on run-time CPU loading<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

3<br />

Session Objectives<br />

TM


Agenda<br />

► <strong>Knock</strong> <strong>Detection</strong><br />

• Existing solutions<br />

• The <strong>Freescale</strong> solution<br />

• Specific MCU features for <strong>Knock</strong> <strong>Detection</strong><br />

• A zero CPU loading <strong>Knock</strong> <strong>Detection</strong> solution<br />

► Closed Loop Current Control<br />

• Existing Solutions<br />

• The <strong>Freescale</strong> solution<br />

• Reaction module<br />

• Zero CPU Boosted Injector Control Example<br />

• Zero CPU Solenoid Control Example<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 4<br />

TM


►<strong>Knock</strong> is essentially an abnormal ignition<br />

causing potential damage to the engine<br />

• Economy and Performance suffer<br />

►<strong>Knock</strong> <strong>Detection</strong> is common place on<br />

modern automobiles<br />

• <strong>Knock</strong> Sensor “listens” for a resonant knock frequency<br />

►<strong>Knock</strong> Control is set to detect <strong>Knock</strong> and<br />

alter spark timing appropriately:<br />

• Conversely, a good angle for spark ignition (for<br />

economy/performance) is typically prone to knock<br />

• Thus, there is a trade-off between ideal spark timing<br />

and reducing knock occurrence.<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 5<br />

<strong>Knock</strong> <strong>Detection</strong><br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 6<br />

An Existing <strong>Knock</strong> <strong>Detection</strong> Solution<br />

►<strong>Knock</strong> Control Characteristics<br />

• Capture the voltage of knock sensor<br />

• Evaluate voltage in freq domain and identify presence of knock (resonant freq~7KHz)<br />

• Alter the spark ignition control appropriately<br />

►Custom ASIC (Application Specific IC) for <strong>Knock</strong> <strong>Detection</strong><br />

• Expensive<br />

• Reduced design flexibility<br />

►MCU (Micro Control Unit) and a dedicated DSP (Digital Signal<br />

Processor)<br />

• Expensive and DSP Filter response times are not as good as analog solutions<br />

TM


►Signal Quality<br />

Challenges of Migrating to MCU <strong>Knock</strong> Solution<br />

• ADC has to measure small voltage variations<br />

• Conversion speed and bandwidth of ADC<br />

• Self resonance of sensor<br />

►Filter Response<br />

• DSP filters require settling time, which affects the filter’s response<br />

►CPU Loading<br />

• Desire is to minimize overall CPU bandwidth<br />

►Diagnostics<br />

• Solution is required to determine faults in the knock sensor<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 7<br />

TM


The <strong>Freescale</strong> MCU <strong>Knock</strong> <strong>Detection</strong> Solution<br />

►Immediate cost savings<br />

• No external semiconductors - Discrete components only<br />

• Zero CPU loading<br />

►Improvements in Flexibility<br />

• On-chip features are highly configurable<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 8<br />

TM


►The process of <strong>Knock</strong> <strong>Detection</strong> involves:<br />

• Amplifying the knock signal to increase resolution<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

<strong>Knock</strong> <strong>Detection</strong> Requirements<br />

• Sampling the knock signal, capturing key frequencies (~


Pull-up<br />

Pull-down<br />

MPC56xx Enhanced Queued Analogue to Digital Converter (eQADC)<br />

40<br />

2:2 or<br />

40x1<br />

Mux<br />

2:2 or<br />

40x1<br />

Mux<br />

Piezo Sensors<br />

Diagnostic Function<br />

+<br />

_<br />

+<br />

_<br />

VGA<br />

Analog Converters<br />

ADC0<br />

ADC1<br />

Variable Gain Amplifier<br />

Multiply Differential Inputs<br />

by x1, x2 or x4<br />

Command<br />

decode,<br />

comms<br />

& ADC<br />

control<br />

Decimator<br />

Module<br />

Pre-fill for FIR<br />

and IIR Filters<br />

Integrator<br />

Next<br />

comnd<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 10<br />

High-speed ADC<br />

12-bit resolution<br />

1Msps / 9-bit accuracy<br />

500Ksps/10-bit accuracy<br />

Priority<br />

Calibration<br />

Last<br />

result 7<br />

DMA<br />

ADCi<br />

6<br />

Decimator<br />

Configurable<br />

filter<br />

Down sample<br />

ADC Triggers<br />

Pins<br />

ETPU<br />

6<br />

MIOS<br />

PIT<br />

S/W<br />

Command FIFO<br />

CFIFO 0<br />

CFIFO 1<br />

CFIFO 2<br />

CFIFO 3<br />

CFIFO 4<br />

CFIFO 5<br />

Results FIFO<br />

RFIFO 0<br />

RFIFO 1<br />

RFIFO 2<br />

RFIFO 3<br />

RFIFO 4<br />

RFIFO 5<br />

6<br />

6<br />

TM


► Circuit is in bias state.<br />

EMC<br />

protection<br />

<strong>Knock</strong> sensor<br />

C2<br />

1000p<br />

0<br />

C3<br />

1000p<br />

0<br />

Low pass<br />

hi-freq noise filter<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

R1<br />

20k<br />

R2<br />

20k<br />

C4<br />

100p<br />

ANP<br />

ANM<br />

Sensor Bias and Diagnostics<br />

5V<br />

R3<br />

100k<br />

R4<br />

100k<br />

0<br />

R5<br />

100k<br />

R6<br />

100k<br />

11<br />

ADC<br />

MCU<br />

Integrated<br />

sensor<br />

bias<br />

resistors,<br />

option of<br />

100k or<br />

200k<br />

TM


► Circuit is in discharge state.<br />

Sensor, cable<br />

and EMC<br />

capacitors<br />

discharged<br />

through filter<br />

resistors<br />

<strong>Knock</strong> sensor<br />

C2<br />

1000p<br />

0<br />

C3<br />

1000p<br />

0<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

R1<br />

20k<br />

R2<br />

20k<br />

Both pins<br />

grounded<br />

C4<br />

100p<br />

ANP<br />

ANM<br />

<strong>Knock</strong> Sensor Diagnostics<br />

5V<br />

0<br />

12<br />

ADC<br />

MCU<br />

TM


► Circuit in charge share state<br />

► Symmetrical – can test either or both inputs<br />

► Short Circuit, short to battery included<br />

R1, R2, C2 have<br />

no effect<br />

<strong>Knock</strong> sensor<br />

Voltage on C3<br />

is charge share<br />

through sensor<br />

and cable<br />

C2<br />

1000p<br />

0<br />

C3<br />

1000p<br />

0<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

R1<br />

20k<br />

R2<br />

20k<br />

C4<br />

100p<br />

ANP<br />

ANM<br />

5V<br />

0<br />

<strong>Knock</strong> Sensor Diagnostics<br />

13<br />

13<br />

ADC<br />

MCU<br />

One side<br />

connected to 5V<br />

Read pin in<br />

single ended<br />

mode<br />

TM


►Diagnostic process: Discharge → Charge share → Read input<br />

2.5V sensor<br />

bias + knock<br />

signal / noise<br />

Discharge<br />

phase<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 14<br />

Charge<br />

sharing<br />

<strong>Knock</strong> Diagnostics<br />

200pF<br />

wiring +<br />

800pF<br />

sensor<br />

200pF<br />

wiring<br />

TM


Enhanced Queued Analogue to Digital Converter (eQADC ) <strong>Knock</strong><br />

Features<br />

►12-bit resolution ADC<br />

• 9-bit accuracy at 1M samples/sec<br />

• 10-bit accuracy at 500K samples/sec<br />

►Abort<br />

• Stops any existing conversions<br />

• High priority conversion can proceed<br />

►Streaming<br />

• Stores common conversion requests in<br />

Command FIFO<br />

• E.g.: a <strong>Knock</strong> conversion command<br />

• Reduces latency of fetching commands<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 15<br />

►Variable Gain Amplifier<br />

• Amplifies the knock signal by:<br />

• x1, x2 or x4<br />

• Improves the resolution of ADC<br />

results<br />

TM


Decimation Filter and Integrator – <strong>Knock</strong> Function<br />

►The decimator down-samples the<br />

Analog-to-Digital Converter’s<br />

(ADC) results to reduce noise<br />

►The knock signal is then passed<br />

through the Finite Impulse<br />

Response (FIR) or Infinite Impulse<br />

Response (IIR) filter (in the<br />

decimator)<br />

►The integrator sums the energy in<br />

the filtered knock signal<br />

►Integrator output is transferred to<br />

the knock strategy routine by the<br />

DMA (Direct Memory Access)<br />

►eTPU spark angle can be updated<br />

based on the result of the knock<br />

detection<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

16<br />

<strong>Knock</strong><br />

Signal<br />

Filter out<br />

TM


►Decimation Filter<br />

• Selectable 4 th order IIR or 8 th order FIR<br />

Decimation Filter and Integrator – Features<br />

• Cascading of 2 or more filters to create complex filters<br />

• ADC results are routed directly to the decimation filter<br />

• “Pre-fill” feature to remove latency of settling time<br />

� Explained on next slide<br />

►Integrator<br />

• Absolute integrator is on the output of the decimation filter<br />

• Halting and Reset of integrator using HW triggers<br />

• DMA triggers to transfer the output of the integrator<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 17<br />

TM


►7kHz sine wave<br />

►150K samples/s<br />

Zeroed filter<br />

takes time to<br />

settle<br />

FIR settles in<br />

one data fill,<br />

1ms<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 18<br />

Filter with Pre-set Data vs Zeroed Data<br />

IIR takes 1.3ms to<br />

reach amplitude, and<br />

3ms to settle fully<br />

Preset filter<br />

settles<br />

immediately<br />

TM


Piezo<br />

Sensor<br />

7khz<br />

Fundamental<br />

RC Filter<br />

22KHz<br />

21khz 2nd<br />

Harmonic<br />

14khz 1st Order Harmonic<br />

Bias and<br />

Diagnostics<br />

<strong>Knock</strong> Signal<br />

Zero CPU Load, <strong>Knock</strong> <strong>Detection</strong> Example<br />

VGA ADC<br />

Variable<br />

Gain Amp<br />

35khz Sensor<br />

Resonance Noise<br />

ADC<br />

Trigger<br />

PIT<br />

200ks/s<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 19<br />

/4<br />

Down<br />

Sample<br />

50ks/s<br />

DECIMATOR<br />

Bandpass<br />

Filter<br />

<strong>Knock</strong> <strong>Detection</strong> Results<br />

sent to <strong>Knock</strong> Strategy<br />

Routine<br />

<strong>Knock</strong><br />

Window<br />

Integrator<br />

eTPU<br />

DMA<br />

∑<br />

TM


►What is Closed Loop Current<br />

Control?<br />

• Modulation and controlling current to<br />

create complex current waveforms<br />

• Required by a wide range of<br />

applications<br />

►Engine Control Applications<br />

• Injector control<br />

• Complex waveforms are required to<br />

comply with emission standards<br />

►Transmission Applications<br />

• Variable Force Solenoids<br />

• Torque Converters<br />

• Control of current levels with dithering<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 20<br />

Closed Loop Current Control<br />

TM


►What is Current Control?<br />

• Allows DC current levels to be varied by a control circuit<br />

• Controlling current by pulsing digital outputs of varying widths<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 21<br />

Current Control<br />

• The control circuit monitors current, and adjusts the ON/OFF timing of the output to<br />

ensure that the desired current level is maintained<br />

TM


►Direct Injection Control<br />

• MCU controls timing<br />

• ASIC controls complex current<br />

waveforms<br />

►Injection Waveforms<br />

• Complex waveforms required to meet<br />

tougher emissions regulations<br />

• Peak and Hold<br />

• Multiple Pulses<br />

►Reducing System Cost<br />

• Move control to the MCU<br />

• Replace an ASIC with cheaper FET<br />

drivers<br />

• Minimal changes to Engine Control Unit<br />

(ECU) hardware<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 22<br />

Existing Solution : Injection Control<br />

Current<br />

Time<br />

Peak<br />

Hold<br />

TM


►Variable Force Solenoid<br />

• Controls the hydraulics<br />

• Controls Clutch / Gears / Shift<br />

►Control Current of Solenoid<br />

• Adjustable current level required<br />

• Dithering of current is used for<br />

control, to reduce static friction in<br />

hydraulic valves<br />

� Dither : ~70-350Hz<br />

►Reducing System Cost<br />

Existing Solution : Transmission Solenoid Control<br />

• Move control to the MCU<br />

• Replace an ASIC with cheaper FET<br />

drivers<br />

• Minimal changes to TCU hardware<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 23<br />

TM


►Timing of feedback loop<br />

• ADC Sample Speed<br />

• ADC Data Path to Control Logic<br />

►Updating of Control Parameters<br />

Key Challenges for Integrating Control in MCU<br />

• Continuous control and modulation of current<br />

• Fast switching of modulation parameters required to reduce latencies<br />

►CPU bandwidth<br />

• Desire to minimize CPU usage for load reduction & optimal performance<br />

• Minimize the routing of the feedback loop to reduce response time<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

24<br />

TM


The <strong>Freescale</strong> Solution: Introducing the Reaction Module<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 25<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 26<br />

Reaction Module Overview<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 27<br />

Reaction Module Channel<br />

►Modulation Control – Determines ON / OFF status<br />

►Pulse Checking – Short or long pulse detection<br />

►Output Control – 3 configurable outputs per channel<br />

TM


►Two types of modulation:<br />

• Threshold to Threshold<br />

� >= Threshold A triggers OFF state<br />

� = Threshold triggers OFF state<br />

� Hold-off Timeout triggers ON state<br />

� Maximum Switching Freq can be<br />

defined<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 28<br />

Modulation Modes<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 29<br />

Modulation Control Words<br />

►Modulation control words are used to configure<br />

modulation<br />

►This configures:<br />

• Threshold modes and levels<br />

• Timer Configuration<br />

• Output states for all 3 outputs<br />

• “Advance”: Allows multiple modulation<br />

words to be used per channel<br />

TM


► 3 Outputs per Reaction Channel –a, b, c<br />

• Modulating Outputs based on ON / OFF state from modulation control<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 30<br />

Reaction Channel Outputs<br />

►Each output can be configured with different ON state and OFF<br />

state per modulation control word<br />

►There exists a configurable “Drive Off” state for each pin, when<br />

modulation is disabled or an error event occurs<br />

TM


► Reaction Channel Outputs can<br />

be gated<br />

• eTPU (12 eTPU channels)<br />

• Software<br />

►Allows modulation to begin<br />

relative to engine timing from<br />

eTPU<br />

• Important for Injector control<br />

• eTPU controls engine timing<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 31<br />

Reaction Channel Output Gating<br />

TM


►Example: Boosted Injection Control<br />

e.g. Diesel Direct Injection<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 32<br />

Example: Booster Injection Control<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 33<br />

Boosted Injector Control – START<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 34<br />

Boosted Injector Control – PEAK<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 35<br />

Boosted Injector Control – HOLD<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 36<br />

Boosted Injector Control – END<br />

TM


►Example: Solenoid Control<br />

e.g. Variable Force Solenoid with Dither<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 37<br />

Example: Solenoid Control<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 38<br />

Triangle Current Wave<br />

TM


►Banked Mode allows reaction<br />

channels to share outputs<br />

• Reduces number of FET’s<br />

required<br />

►Common Boost / Battery<br />

Control for a set of injectors<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Banked Mode Outputs<br />

39<br />

TM


►This session has demonstrated:<br />

►Methods to reduce overall system cost by using integrated<br />

MCU functionality<br />

►The functionality and flexibility offered with the use of<br />

integrated MCU features<br />

►How integrated functionality has been implemented without<br />

impacting run-time CPU loading<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

40<br />

Session Summary<br />

TM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!