Andre Abelian wrote: >Hi to all, > >I got bar graph meter done without A/D interrupt enabled then >I decided to use A/D interrupt and I can't get ADCON0,ADIF flag set. >any help will highly appreciated. > > >see attached file >Andre > >Attachment Converted: C:\WIN31APP\SUPERNET\EUDORA\ATTACH\bargraph.asm > Andre, Found these in your file: list p=16c74A #include c:\mplab\p16c74A.inc If you "are" using a PIC74, maybe try changing the following lines: BCF ADCON0,ADIF ; RESET A/D INIT FLAG (ADIF) LOOP BTFSC ADCON0,ADIF ; A/D OVER ? BTFSS ADCON0,ADIF ; A/D INTERUUPT BSF INTCON,ADIE ; ENABLE A/D INIT to these: BCF pir1,ADIF ; RESET A/D INIT FLAG (ADIF) LOOP BTFSC pir1,ADIF ; A/D OVER ? BTFSS pir1,ADIF ; A/D INTERUUPT BSF pie1,ADIE ; ENABLE A/D INIT also, check that you are re-initializing everything after this instr: CLRF INTCON ; CLEAR ALL INTERRUPTS also, is this a defined variable, or do you really mean < pir1 >? UPDATE: BCF ADIF,6 ; RESET SOFTWARE A/D FLAG -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST