欢迎访问ic37.com |
会员登录 免费注册
发布采购

12CE673 参数 Datasheet PDF下载

12CE673图片预览
型号: 12CE673
PDF下载: 下载PDF文件 查看货源
内容描述: 8引脚, 8位CMOS微控制器与A / D转换器和EEPROM数据存储器 [8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory]
分类和应用: 转换器存储微控制器可编程只读存储器电动程控只读存储器电可擦编程只读存储器
文件页数/大小: 116 页 / 649 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号12CE673的Datasheet PDF文件第38页浏览型号12CE673的Datasheet PDF文件第39页浏览型号12CE673的Datasheet PDF文件第40页浏览型号12CE673的Datasheet PDF文件第41页浏览型号12CE673的Datasheet PDF文件第43页浏览型号12CE673的Datasheet PDF文件第44页浏览型号12CE673的Datasheet PDF文件第45页浏览型号12CE673的Datasheet PDF文件第46页  
PIC12CE67X  
Clearing the GO/DONE bit during a conversion will  
abort the current conversion. The ADRES register will  
NOT be updated with the partially completed A/D con-  
version sample. That is, the ADRES register will con-  
tinue to contain the value of the last completed  
conversion (or the last value written to the ADRES reg-  
ister). After the A/D conversion is aborted, a 2TAD wait  
is required before the next acquisition is started. After  
this 2TAD wait, an acquisition is automatically started  
on the selected channel.  
8.4  
A/D Conversions  
Example 8-2 show how to perform an A/D conversion.  
The GP pins are configured as analog inputs.The ana-  
log reference (VREF) is the device VDD. The A/D inter-  
rupt is enabled, and the A/D conversion clock is FRC.  
The conversion is performed on the GP0 channel.  
Note: The GO/DONE bit should NOT be set in  
the same instruction that turns on the A/D.  
EXAMPLE 8-2: DOING AN A/D CONVERSION  
BSF  
CLRF  
BSF  
STATUS, RP0  
ADCON1  
; Select Page 1  
; Configure A/D inputs  
; Enable A/D interrupts  
; Select Page 0  
; RC Clock, A/D is on, Channel 0 is selected  
;
; Clear A/D interrupt flag bit  
; Enable peripheral interrupts  
; Enable all interrupts  
PIE1,  
ADIE  
BCF  
STATUS, RP0  
0xC1  
ADCON0  
MOVLW  
MOVWF  
BCF  
BSF  
BSF  
PIR1,  
ADIF  
INTCON, PEIE  
INTCON, GIE  
;
;
;
;
Ensure that the required sampling time for the selected input channel has elapsed.  
Then the conversion may be started.  
BSF  
:
ADCON0, GO  
; Start A/D Conversion  
; The ADIF bit will be set and the GO/DONE bit  
:
;
is cleared upon completion of the A/D Conversion.  
DS40181B-page 42  
Preliminary  
1998 Microchip Technology Inc.  
 
 复制成功!