| Electronic Components Datasheet Search |
|
PICDEM2 Datasheet(PDF) 19 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PICDEM2 Datasheet(HTML) 19 Page - Microchip Technology |
|
19 / 60 page ![]() PICDEM 2 User’s Guide DS30374D-page 14 2001 Microchip Technology Inc. 4.4 Service_Int Routine This subroutine handles the A/D converter interrupt and updating of the LEDs on PORTB. The first thing the routine does is to check if the A/D interrupt flag is set. If it is not, the interrupt was caused by some other peripheral, and the program returns to the main routine with interrupts re-enabled. If the interrupt was caused by the A/D converter, the A/D result register is read, and the value put on the LEDs. The A/D interrupt flag is then reset, and the peripheral interrupts are enabled. The routine then waits for the sample time (2*TAD), starts the next conversion, and returns with global interrupts enabled. Figure 4.5: Service Interrupt Service_int Interrupt Service Routine (SetupDelay) A/D caused interrupt? Get A/D Value Display on LEDs No Yes Reset A/D Flag Re-enable Periph Ints Delay for 2*Tad Start A/D Conversion Return (SetupDelay) |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | 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 |