Section number Title Page
28.5 Initialization information..............................................................................................................................................491
28.5.1 ADC module initialization example............................................................................................................491
28.6 Application information................................................................................................................................................493
28.6.1 External pins and routing.............................................................................................................................493
28.6.2 Sources of error............................................................................................................................................495
Chapter 29
Comparator (CMP)
29.1 Introduction...................................................................................................................................................................501
29.2 CMP features................................................................................................................................................................501
29.3 6-bit DAC key features.................................................................................................................................................502
29.4 ANMUX key features...................................................................................................................................................503
29.5 CMP, DAC and ANMUX diagram...............................................................................................................................503
29.6 CMP block diagram......................................................................................................................................................504
29.7 Memory map/register definitions..................................................................................................................................506
29.7.1 CMP Control Register 0 (CMPx_CR0).......................................................................................................506
29.7.2 CMP Control Register 1 (CMPx_CR1).......................................................................................................507
29.7.3 CMP Filter Period Register (CMPx_FPR)...................................................................................................509
29.7.4 CMP Status and Control Register (CMPx_SCR).........................................................................................509
29.7.5 DAC Control Register (CMPx_DACCR)....................................................................................................510
29.7.6 MUX Control Register (CMPx_MUXCR)..................................................................................................511
29.8 Functional description...................................................................................................................................................512
29.8.1 CMP functional modes.................................................................................................................................512
29.8.2 Power modes................................................................................................................................................521
29.8.3 Startup and operation...................................................................................................................................522
29.8.4 Low-pass filter.............................................................................................................................................523
29.9 CMP interrupts..............................................................................................................................................................525
29.10 DMA support................................................................................................................................................................525
29.11 CMP Asyncrhonous DMA support...............................................................................................................................526
29.12 Digital-to-analog converter...........................................................................................................................................526
KL34 Sub-Family Reference Manual, Rev. 3, July 2013
20 Freescale Semiconductor, Inc.