beautypg.com

9 registers – Rainbow Electronics T89C51CC01 User Manual

Page 123

background image

123

T89C51CC01

Rev. D – 17-Dec-01

17.9 Registers

Table 87. ADCF Register

ADCF (S:F6h)
ADC Configuration

Reset Value=0000 0000b

Table 88. ADCON Register

ADCON (S:F3h)
ADC Control Register

Reset Value=X000 0000b

7

6

5

4

3

2

1

0

CH 7

CH 6

CH 5

CH 4

CH 3

CH 2

CH 1

CH 0

Bit

Number

Bit

Mnemonic

Description

7-0

CH 0:7

Channel Configuration
Set to use P1.x as ADC input.
Clear to use P1.x as standart I/O port.

7

6

5

4

3

2

1

0

-

PSIDLE

ADEN

ADEOC

ADSST

SCH2

SCH1

SCH0

Bit

Number

Bit

Mnemonic

Description

7

-

6

PSIDLE

Pseudo Idle mode (best precision)
Set to put in idle mode during conversion
Clear to convert without idle mode.

5

ADEN

Enable/Standby Mode
Set to enable ADC
Clear for Standby mode (power dissipation 1 uW).

4

ADEOC

End Of Conversion
Set by hardware when ADC result is ready to be read. This flag can generate an
interrupt.
Must be cleared by software.

3

ADSST

Start and Status
Set to start an A/D conversion.
Cleared by hardware after completion of the conversion

2-0

SCH2:0

Selection of channel to convert
see Table 86