26.12.2012 Views

Medical Applications User Guide (pdf) - Freescale Semiconductor

Medical Applications User Guide (pdf) - Freescale Semiconductor

Medical Applications User Guide (pdf) - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Freescale</strong> Technologies<br />

• ColdFire MAC architecture enables DSP<br />

algorithms<br />

• IIR and FIR filters gain performance with<br />

MAC instructions<br />

• Single instruction: Multiply-accumulate with<br />

load<br />

• Multiply two 16-bit word or 32-bit<br />

longword operands<br />

• Add 32-bit product to 32-bit accumulator<br />

(ACC) register<br />

• Load 32-bit longword for next instruction<br />

and increment address register (ptr)<br />

• Sample analog accelerometer data with<br />

ADC (3 kHz)<br />

• Execute two parallel digital filters<br />

• Send via USB: raw and filtered data,<br />

timestamp, filter execution cycles<br />

For more information, download the PDF<br />

ColdFire Technology and DSP from<br />

freescale.com/files/dsp/doc/ref_manual/<br />

CFDSPTechnology_DSP.<strong>pdf</strong>.<br />

Instrumentation Amplifier<br />

In medical instrumentation it is common<br />

to process signals with a lot of noise and<br />

small amplitude. For these reasons an<br />

instrumentation amplifier, which has high<br />

entrance impedance and high CMRR, is often<br />

used. This device can be built with discrete<br />

elements or can be obtained pre-built. The<br />

amplifier gets the differential between the<br />

signal and amplifier depending on the gain,<br />

which determines the signal amplitude.<br />

The gain recommended for medical<br />

applications is 1000 because the signal<br />

oscillates around 1 mV, and with this gain<br />

the signal can be amplified up to 1V. It is<br />

also recommended that for the first part you<br />

generate a gain of only 10 to avoid amplifier<br />

common-mode signals. Only filter the noise<br />

signals with this part, and amplify the rest of<br />

the signal with the differential amplifier.<br />

A =1+ 1 R2 R1 R +R 1 2<br />

A = 1<br />

R1 R 2 =(A 1 R 1 )-R 1<br />

A 2 = R 4<br />

R 3<br />

R 4 = A 2 R 3<br />

Appendix<br />

Figure A-6: ColdFire Demo Board (M52221 DEMO)<br />

Figure A-6: ColdFire Demo Board (M52221DEMO)<br />

Accelerometer<br />

Mechanical<br />

Oscillator<br />

A 1 = A 1 A 2<br />

Values to obtain a signal around 1V: Low gain: 10, High gain: 100, Total gain: 1000<br />

freescale .com/medical 107<br />

ADC<br />

Timers<br />

Filter 1<br />

Filter 2<br />

USB<br />

Debug<br />

Lab View<br />

ColdFire V2 MCU Laptop Host<br />

Figure A-7: Instrumentation Amplifier Design Diagram<br />

Figure A-7: Instrumentation Amplifier Design Diagram<br />

Vi 1<br />

Vid=<br />

(Vi 1 -Vi 2 )<br />

Vi 2<br />

2R 1<br />

R 2<br />

Vid/2R1 R2 R 3<br />

R 3<br />

Vid(1+2R 2 /2R 1 )<br />

R 4<br />

R 4<br />

Vo=R 4 /R 3 ( 1+R 2 /R 1 )Vid<br />

A=Vo/Vid

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

Saved successfully!

Ooh no, something went wrong!