AT89C5115 Atmel Corporation, AT89C5115 Datasheet - Page 85
AT89C5115
Manufacturer Part Number
AT89C5115
Description
Manufacturer
Atmel Corporation
Specifications of AT89C5115
Flash (kbytes)
16 Kbytes
Max. Operating Frequency
40 MHz
Cpu
8051-12C
Max I/o Pins
20
Uart
1
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
62.5
Sram (kbytes)
0.5
Eeprom (bytes)
2048
Self Program Memory
API
Operating Voltage (vcc)
3.0 to 5.5
Timers
4
Isp
UART
Watchdog
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
AT89C5115-UM
Manufacturer:
SANYO
Quantity:
84
Voltage Conversion
Clock Selection
Figure 40. A/D Converter Clock
ADC Standby Mode
IT ADC management
4128G–8051–02/08
CPU Core Clock Symbol
CLOCK
CPU
The bits SCH0 to SCH2 in ADCON register are used for the analog input channel
selection.
Table 60. Selected Analog input
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”).
The ADC clock is the same as CPU.
The maximum clock frequency is defined in the DC parmeter for A/D converter. A pres-
caler is featured (ADCCLK) to generate the ADC clock from the oscillator frequency.
if PRS = 0 then F
if PRS > 0 then F
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 the power dissipation is reduced.
An interrupt end-of-conversion will occurs when the bit ADEOC is activated and the bit
EADC is set. For re-arming the interrupt the bit ADEOC must be cleared by software.
÷
2
SCH2
0
0
0
0
1
1
1
1
ADC
ADC
= F
= F
periph
periph
Prescaler ADCLK
/ 64
/ 2 x PRS
SCH1
0
0
1
1
0
0
1
1
ADC Clock
SCH0
0
1
0
1
0
1
0
1
Converter
A/D
Selected Analog Input
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
85