參數(shù)資料
型號(hào): T89C51RC2-SLBCL
廠商: Atmel Corp.
英文描述: 8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
中文描述: 8位微控制器,帶有16字節(jié)/ 32千字節(jié)閃存
文件頁數(shù): 136/170頁
文件大?。?/td> 1927K
代理商: T89C51RC2-SLBCL
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描述
T89C51RC2-SLBCM 8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLTCL 8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLTCM 8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLTIM 8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RD2 0 to 40MHz Flash Programmable 8-bit Microcontroller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
T89C51RC2-SLBCM 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLBIL 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLBIM 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLSCL 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLSCM 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16K/ 32K Bytes Flash