| 전자부품 데이터시트 검색엔진 |
|
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 |
|
링크 URL |
| 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 |