YEP, PEIE is on and always on because I have another interrupt working ok( TMR0... remember?..). I'm still looking for help but I have D/A routine working ok with pooling aproach, testing C2OUT for end of convertion purpose. The interupt solution would be much more elegant : Thanks a lot for your help so far. [ ]s Horta ----- Original Message ----- From: Rudy Rudy To: Sent: Monday, January 28, 2002 1:32 PM Subject: Re: [PIC]: 628 Comparators, they are devil's creatures or what? > Horta, > > Have you enable PEIE ??? You also need to set PEIE bit (in addition to > GIE, CMIE). Look at spec sheet page 107. > > ------------------ > Rudy Rudy > http://www.rudyrudy.com > rudy@rudyrudy.com > ------------------ > > > > 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: The list server can filter out subtopics > > (like ads or off topics) for you. See http://www.piclist.com/#topics > > > > > > > > > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics