| Electronic Components Datasheet Search |
|
PICDEM2 Datasheet(PDF) 18 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PICDEM2 Datasheet(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 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |