26.10.2013 Views

Analog Comparator - Freescale

Analog Comparator - Freescale

Analog Comparator - 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.

Implementation<br />

Emulated ADC Example using <strong>Analog</strong> <strong>Comparator</strong><br />

►Define sampling time and timer<br />

resolution<br />

►Define RC time constant<br />

►Construct lookup table<br />

►Define bus frequency<br />

►Calibration<br />

Step =<br />

Code =<br />

VDD<br />

255<br />

ADCin –<br />

<strong>Freescale</strong> and the <strong>Freescale</strong> logo are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are<br />

the property of their respective owners. © <strong>Freescale</strong> Semiconductor, Inc. 2007-2008. 29<br />

Step<br />

Step<br />

2<br />

+ 1 ; ADCin ≥<br />

0 ; ADCin <<br />

Non-Linearity Compensation Lookup Table<br />

Step<br />

Step<br />

Time (us) ADC In Timer Count Linear ADC<br />

Code<br />

0 0 0 0<br />

4 0.09 1 5<br />

8 0.18 2 10<br />

12 0.26 3 14<br />

16 0.35 4 18<br />

| | | |<br />

1016 4.95 254 253<br />

1020 4.95 255 253<br />

2<br />

2<br />

TM

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

Saved successfully!

Ooh no, something went wrong!