![Freescale Semiconductor QE128 Скачать руководство пользователя страница 73](http://html1.mh-extra.com/html/freescale-semiconductor/qe128/qe128_quick-reference-user-manual_2330661073.webp)
QE128 Quick Reference User Guide, Rev. 1.0
Freescale Semiconductor
8-1
Chapter 8
Using the Analog to Digital Converter (ADC) for the QE
Microcontrollers
8.1
Overview
This is a quick reference for using a 12-bit analog-to-digital converter (ADC) module for the QE family
microcontrollers (MCUs). Basic information about the functional description and configuration options
are provided. The following example may be modified to suit an application. The ADC project is made for
the MC9S08QE128 and MCF51QE128 MCUs.
ADC Quick Reference
For specific pin control registers and bits on the device, please refer to the
reference manual (MC9S08QE128 or MCF51QE128). It can be found at
www.freescale.com.
Module configuration:
Module configuration:
Result of ADC conversion:
Result of ADC conversion:
Compare value:
ADCSC1
COCO
AIEN
ADCO
ADCH
ACME – conversion complete flag
ADCO – continuous conversion enable
AIEN – Interrupt enable
ADCH– output pin enable.
ADCSC2
ADACT
ADTRG
ACFE
ACFGT
ADACT – conversion active.
ADTRG – conversion trigger select
ACFE – compare function enable.
ACFGT– compare function greater than
enable
ADCRH
ADR11
ADR10
ADR9
ADR8
ADR11-ADR8 – contains the upper four bits of the result of a 12-bit conversion
ADCRL
ADR7
ADR6
ADR5
ADR4
ADR3
ADR2
ADR1
ADR0
ADR7-ADR0 – contains the eight bits of the result of a 12-bit, 10-bit or 8-bit
conversion
ADCCVH
ADCV11
ADCV10
ADCV9
ADCV8
ADCV11-ADCV8 – contains the upper four bits of the 12-bit compare value.
ADCCVL
ADCV7
ADCV6
ADCV5
ADCV4
ADCV3
ADCV2
ADCV1
ADCV0