参数资料
型号: T89C51CC02UA-TDSIM
厂商: Atmel
文件页数: 34/159页
文件大小: 0K
描述: IC 8051 MCU FLASH 16K 24-SOIC
标准包装: 31
系列: AT89C CAN
核心处理器: 8051
芯体尺寸: 8-位
速度: 40MHz
连通性: CAN,UART/USART
外围设备: POR,PWM,WDT
输入/输出数: 20
程序存储器容量: 16KB(16K x 8)
程序存储器类型: 闪存
EEPROM 大小: 2K x 8
RAM 容量: 512 x 8
电压 - 电源 (Vcc/Vdd): 3 V ~ 5.5 V
数据转换器: A/D 8x10b
振荡器型: 外部
工作温度: -40°C ~ 85°C
封装/外壳: 24-SOIC(0.295",7.50mm 宽)
包装: 管件
配用: AT89STK-06-ND - KIT DEMOBOARD 8051 MCU W/CAN
其它名称: T89C51CC02UATDSIM
129
AT/T89C51CC02
4126L–CAN–01/08
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 55. ADC interrupt structure
Routine 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
2. Start a standard conversion
// The variable ’channel’ contains the channel to convert
// The variable ’value_converted’ is an unsigned int
// Clear the field SCH[2:0]
ADCON &= F8h
// Select channel
ADCON |= channel
// Start conversion in standard mode
ADCON |= 08h
// Wait flag End of conversion
while((ADCON & 01h)!= 01h)
// Clear the End of conversion flag
ADCON &= 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
// clear the field SCH[2:0]
ADCON &= F8h
// Select the channel
ADCON |= channel
// Start conversion in precision mode
ADCON |= 48h
Note:
To enable the ADC interrupt: EA = 1
ADEOC
ADCON.2
EADC
IEN1.1
ADCI
相关PDF资料
PDF描述
TC520ACOE713 IC SERIAL INTERFACE ADT 16SOIC
TC530COI713 IC DATA ACQ SUBSYSTEM 28SOIC
TDA3653B/N2,112 IC VERT DEFLECT 9-SIL
TLE8262-2E IC SYSTEM BASIS CHIP DSO-36
TMPA910CRAXBG IC MCU 32BIT ARM9 W/ADC 361FBGA
相关代理商/技术参数
参数描述
T89C51CC02UA-TISIM 功能描述:IC 8051 MCU FLASH 16K 28SOIC RoHS:否 类别:集成电路 (IC) >> 嵌入式 - 微控制器, 系列:AT89C CAN 标准包装:9 系列:87C 核心处理器:8051 芯体尺寸:8-位 速度:40/20MHz 连通性:UART/USART 外围设备:POR,WDT 输入/输出数:32 程序存储器容量:32KB(32K x 8) 程序存储器类型:OTP EEPROM 大小:- RAM 容量:256 x 8 电压 - 电源 (Vcc/Vdd):4.5 V ~ 5.5 V 数据转换器:- 振荡器型:内部 工作温度:0°C ~ 70°C 封装/外壳:40-DIP(0.600",15.24mm) 包装:管件
T89C51IC 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit Microcontroller with Flash and I2C Interface
T89C51IC2 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit Microcontroller with Flash and I2C Interface
T89C51IC2-RLTIL 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit Microcontroller with Flash and I2C Interface
T89C51IC2-RLTIM 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit Microcontroller with Flash and I2C Interface