PIC12CE674 Datasheet

  • PIC12CE674

  • 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...

  • 1264.35KB

  • 129页

  • Microchip   Microchip

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC12CE67X
The ADRES register contains the result of the A/D con-
version. When the A/D conversion is complete, the
result is loaded into the ADRES register, the GO/DONE
bit (ADCON0<2>) is cleared, and A/D interrupt 铿俛g bit
ADIF (PIE1<6>) is set. The block diagrams of the A/D
module are shown in Figure 8-3.
After the A/D module has been con铿乬ured as desired,
the selected channel must be acquired before the con-
version is started. The analog input channels must
have their corresponding TRIS bits selected as an
input. To determine sample time, see Section 8.1. After
this acquisition time has elapsed the A/D conversion
can be started. The following steps should be followed
for doing an A/D conversion:
1.
Con铿乬ure the A/D module:
鈥?Con铿乬ure analog pins / voltage reference /
and digital I/O (ADCON1)
鈥?Select A/D input channel (ADCON0)
鈥?Select A/D conversion clock (ADCON0)
鈥?Turn on A/D module (ADCON0)
2.
Con铿乬ure A/D interrupt (if desired):
鈥?Clear ADIF bit
鈥?Set ADIE bit
鈥?Set GIE bit
Wait the required acquisition time.
Start conversion:
鈥?Set GO/DONE bit (ADCON0)
Wait for A/D conversion to complete, by either:
鈥?Polling for the GO/DONE bit to be cleared
OR
6.
7.
鈥?Waiting for the A/D interrupt
Read A/D Result register (ADRES), clear bit
ADIF if required.
For next conversion, go to step 1 or step 2 as
required. The A/D conversion time per bit is
de铿乶ed as T
AD
. A minimum wait of 2T
AD
is
required before next acquisition starts.
3.
4.
5.
FIGURE 8-3:
A/D BLOCK DIAGRAM
CHS1:CHS0
11
V
IN
(Input voltage)
10
GP2/AN2
01
GP1/AN1/V
REF
00
V
DD
V
REF
(Reference
voltage)
PCFG2:PCFG0
000
010
100
110
001
011
101
or
or
or
or
or
or
GP0/AN0
GP4/AN3
A/D
Converter
1998 Microchip Technology Inc.
Preliminary
DS40181B-page 39

PIC12CE674相关型号PDF文件下载

您可能感兴趣的PDF文件资料

热门IC型号推荐

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈
返回顶部

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!