Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Микроконтроллер Motorola 68HC11.pdf
Скачиваний:
38
Добавлен:
26.05.2014
Размер:
985.62 Кб
Скачать

10.1.5 A/D Converter Clocks

The CSEL bit in the OPTION register selects whether the A/D converter uses the system E clock or an internal RC oscillator for synchronization. When E-clock frequency is below 750 kHz, charge leakage in the capacitor array can cause errors, and the internal oscillator should be used. When the RC clock is used, additional errors can occur because the comparator is sensitive to the additional system clock noise.

10.1.6 Conversion Sequence

A/D converter operations are performed in sequences of four conversions each. A conversion sequence can repeat continuously or stop after one iteration. The conversion complete flag (CCF) is set after the fourth conversion in a sequence to show the availability of data in the result registers. Figure 10-3 shows the timing of a typical sequence. Synchronization is referenced to the system E clock.

10

E CLOCK

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MSB

 

BIT 6

 

BIT 5

 

BIT 4

 

 

BIT 3

 

 

BIT 2

 

BIT 1

 

LSB

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12 E CYCLES

 

 

 

 

 

4

 

 

 

 

2

 

 

2

 

 

2

 

 

 

2

 

 

 

2

 

 

2

 

 

2

 

 

 

 

CYC

 

 

 

 

ADCTLTOWRITE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CYCLES

 

 

CYC

 

CYC

 

CYC

 

 

CYC

 

 

CYC

 

CYC

 

CYC

 

 

END

 

 

 

 

 

 

 

 

 

SAMPLE ANALOG INPUT

 

 

 

 

 

 

 

 

 

 

 

 

SUCCESSIVE APPROXIMATION SEQUENCE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CONVERT FIRST

 

 

 

 

CONVERT SECOND

 

 

 

 

 

 

CONVERT THIRD

 

 

 

 

 

CONVERT FOURTH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CHANNEL, UPDATE

 

 

 

 

CHANNEL, UPDATE

 

 

 

 

 

CHANNEL, UPDATE

 

 

 

 

 

CHANNEL, UPDATE

 

0

 

 

 

 

 

 

 

 

ADR1

32

 

 

 

 

 

 

 

 

ADR2

64

 

 

 

 

 

 

 

 

ADR3

 

 

 

 

 

96

 

 

 

 

 

 

 

ADR4

 

 

 

 

 

SET CC FLAG

REPEAT SEQUENCE, SCAN = 1

 

 

 

 

 

 

 

 

 

128 — E CYCLES

A/D CONVERSION TIM

Figure 10-3 A/D Conversion Sequence

10.2 A/D Converter Power-Up and Clock Select

Bit 7 of the OPTION register controls A/D converter power up. Clearing ADPU removes power from and disables the A/D converter system. Setting ADPU enables the A/D converter system. Stabilization of the analog bias voltages requires a delay of as much as 100 s after turning on the A/D converter. When the A/D converter system is operating with the MCU E clock, all switching and comparator operations are inherently synchronized to the main MCU clocks. This allows the comparator output to be sampled at relatively quiet times during MCU clock cycles. Since the internal RC oscillator is asynchronous to the MCU clock there is more error attributable to internal system clock noise. A/D converter accuracy is reduced slightly while the internal RC oscillator is being used (CSEL = 1).

MOTOROLA

ANALOG-TO-DIGITAL CONVERTER

M68HC11 E SERIES

10-4

 

TECHNICAL DATA

Соседние файлы в предмете Радиоприемные устройства