參數(shù)資料
型號: T89C51IC2-RLTIL
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: 8-bit Microcontroller with Flash and I2C Interface
中文描述: 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP44
封裝: 1.40 MM HEIGHT, VQFP-44
文件頁數(shù): 136/170頁
文件大?。?/td> 1927K
代理商: T89C51IC2-RLTIL
136
A/T89C51CC01
4129L–CAN–08/05
Figure 61.
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 reduced.
IT ADC Management
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.
Figure 62.
ADC Interrupt Structure
Routines examples
1.
Configure P1.2 and P1.3 in ADC channels
// configure channel P1.2 and P1.3 for ADC
ADCF = 0Ch
// Enable the ADC
ADCON = 20h
Start a standard conversion
2.
// The variable "channel" contains the channel to convert
// The variable "value_converted" is an unsigned int
// Clear the field SCH[2:0]
ADCON and = F8h
// Select channel
ADCON | = channel
// Start conversion in standard mode
ADCON | = 08h
// Wait flag End of conversion
while((ADCON and 01h)! = 01h)
// Clear the End of conversion flag
ADCON and = EFh
// read the value
value_converted = (ADDH << 2)+(ADDL)
3.
Start a precision conversion (need interrupt ADC)
// The variable "channel" contains the channel to convert
// Enable ADC
EADC = 1
Prescaler ADCLK
A/D
Converter
ADC Clock
CPU
CLOCK
CPU Core Clock Symbol
÷
2
ADEOC
ADCON.2
EADC
IEN1.1
ADCI
相關(guān)PDF資料
PDF描述
T89C51CC01 Enhanced 8-bit MCU with CAN controller and Flash
T89C51RD2-3CFC-L 0 to 40MHz Flash Programmable 8-bit Microcontroller
T89C51RD2-3CFC-M 0 to 40MHz Flash Programmable 8-bit Microcontroller
T89C51RD2-3CFI-L 0 to 40MHz Flash Programmable 8-bit Microcontroller
T89C51RD2-3CFI-M 0 to 40MHz Flash Programmable 8-bit Microcontroller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
T89C51IC2-RLTIM 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with Flash and I2C Interface
T89C51IC2-SLSCM 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with Flash and I2C Interface
T89C51IC2-SLSIL 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with Flash and I2C Interface
T89C51IC2-SLSIM 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with Flash and I2C Interface
T89C51RB2 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16K/ 32K Bytes Flash