Hi fellows, I'm living in hell since I started to write a D/A interrupt driven subroutine. Does anybody has any tip I don't have? CMCON = 5 : using only 1 comparator Things I observed: 1) if I disable comparators interrupt enable flag (CMIE) inside the interrupt routine, and enable it again later in the main program i do not get any further interrupt (duh?) (I have a bit being forced to one at the entry and to 0 at the int sub routine exit). In the other hand I have T0 interrupt running absolutelly flawlessly refreshing my display 2) Probabily the comparators have no histeresis because I can observe until 1 to 8 pulses in my spy bit( see above), it's not a problem because I'm concerned about the first one so I can disregard the others. I'm relatively confident I'm taking care of GIE, CMIE and CMIF bits, I have to deliver this software tomorrow morning but I'm almost giving up does anybody have any advise???? Thanks in advance Horta -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads