参数资料
型号: PICDEM2
厂商: Microchip Technology Inc.
英文描述: simple board
中文描述: 简洁的主板
文件页数: 18/60页
文件大小: 1037K
代理商: PICDEM2
2001 Microchip Technology Inc.
DS30374D-page 13
A/D Demo
4.2 InitializeAD Routine
The
InitializeAD
routine sets up the A/D converter for use with the
PICDEM 2 board. The routine sets RA0, RA1, and RA4 as analog inputs,
enables the A/D interrupt, sets the A/D to use the internal RC oscillator,
selects channel 0, clears the A/D interrupt flag, enables peripheral interrupts
and then enables global interrupts.
Figure 4.3: Initialize A/D
4.3 SetupDelay Routine
This subroutine delays for greater than one A/D converter clock period (2 to
6
μ
s when using the internal RC clock as this program does) to allow for
sampling time.
Figure 4.4: Setup Delay
InitializeAD
Set Ch0-Ch3 as
analog inputs
Select RC clock
Select Ch0 as input
Turn on A/D
Enable Interrupts
Return
SetupDelay
Initialize loop variable
Decrement
loop variable.
Variable=0
Return
No
Yes
相关PDF资料
PDF描述
PIP500 TRANSIENT ABSORPTION ZENER
PIP440 7,500 & 15,000 Watt TVS Module
PIP500 STEEL BOX
PIP60 7,500 & 15,000 Watt TVS Module
PIP24 Circular Connector; Body Material:Aluminum Alloy; Series:KPSE08; No. of Contacts:12; Connector Shell Size:14; Connecting Termination:Crimp; Circular Shell Style:Right Angle Plug; Circular Contact Gender:Socket RoHS Compliant: No
相关代理商/技术参数
参数描述
PICDEMPIC18 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:PICDEMPIC18 EXPLORER DEMONSTRATION BOARD USERa??S GUIDE
PICE-52-03-ID2-D40 功能描述:EMULATOR 8051 64K 40MHZ 40-DIP RoHS:是 类别:编程器,开发系统 >> 内电路编程器、仿真器以及调试器 系列:- 产品变化通告:Development Systems Discontinuation 19/Jul/2010 标准包装:1 系列:* 类型:* 适用于相关产品:* 所含物品:*
PICE-52-03-ID2-L44 功能描述:EMULATOR 8051 64K 40MHZ 44-PLCC RoHS:是 类别:编程器,开发系统 >> 内电路编程器、仿真器以及调试器 系列:- 产品变化通告:Development Systems Discontinuation 19/Jul/2010 标准包装:1 系列:* 类型:* 适用于相关产品:* 所含物品:*
PICE-52-05-ID2-D40 功能描述:EMULATOR 8051 1M 40MHZ 40-DIP RoHS:是 类别:编程器,开发系统 >> 内电路编程器、仿真器以及调试器 系列:- 产品变化通告:Development Systems Discontinuation 19/Jul/2010 标准包装:1 系列:* 类型:* 适用于相关产品:* 所含物品:*
PICE-52-05-ID2-L44 功能描述:EMULATOR 8051 1M 40MHZ 44-PLCC RoHS:是 类别:编程器,开发系统 >> 内电路编程器、仿真器以及调试器 系列:- 产品变化通告:Development Systems Discontinuation 19/Jul/2010 标准包装:1 系列:* 类型:* 适用于相关产品:* 所含物品:*