Why you are not saving the values of STATUS and WREG when you receive an=20 interrupt, and then restoring them on exit? Cheers, -Neil. On Monday 09 June 2003 16:23, Kyrre Aalerud scribbled: > Hi, long time since I've posted, but I've been busy reading all your po= sts > > :-) > > Anyways... I have a problem getting some simple test-code to work with= the > 16F628. > Code uses: > - PWM (Timer2) (Out on RB3) > - Timer0 for a measure > - Interrupt on RB0(INT) > > I don't see anything I have forgotten and still, interrupt only trigger= s on > first pulse after power-on/reset. > (Pulse being sendt via ripple-free switch connected to +5v and pin is > pulled low via 1k for testing...) > > Anyone got a clue to what's wrong? > I thought I knew what I was doing after soo many years using PIC's? > Obviously something is missing, but I reset the flag? What more could = it > ask? > > I've attached an .asm so you can try. It compiles in MPLAB 5.70.40. > > KreAture -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu