beautypg.com

Voltage conversion, Clock selection, Adc standby mode – Rainbow Electronics T89C5115 User Manual

Page 80

background image

80

T89C5115

4128A–8051–04/02

Table 54. Selected Analog Input

Voltage Conversion

When the ADCIN is equals to VAREF the ADC converts the signal to 3FFh (full scale). If
the input voltage equals VAGND, the ADC converts it to 000h. Input voltage between
VAREF and VAGND are a straight-line linear conversion. All other voltages will result in
3FFh if greater than VAREF and 000h if less than VAGND.

Note that ADCIN should not exceed VAREF absolute maximum range! (see section
“AC-DC”)

Clock Selection

The ADC clock is the same as CPU.

The maximum clock frequency for ADC is 700 KHz. A prescaler is featured (ADCCLK)
to generate the ADC clock from the oscillator frequency.

Figure 38. A/D Converter Clock

ADC Standby Mode

When the ADC is not used, it is possible to set it in standby mode by clearing bit ADEN
in ADCON register. In this mode its power dissipation is about 1 uW.

SCH2

SCH1

SCH0

Selected Analog input

0

0

0

AN0

0

0

1

AN1

0

1

0

AN2

0

1

1

AN3

1

0

0

AN4

1

0

1

AN5

1

1

0

AN6

1

1

1

AN7

Prescaler ADCLK

A/D

Converter

ADC Clock

CPU

CLOCK

CPU Core Clock Symbol

ч

2