| 数据搜索系统,热门电子元器件搜索 |
|
PICDEM2 数据表(PDF) 18 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PICDEM2 数据表(HTML) 18 Page - Microchip Technology |
|
18 / 60 page ![]() 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 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |