I'm not using Mplab ICE at all. By too fast I mean: I have a 485 comunication between a master and more slaves. For the moment is just a master and slave. If the master sends commands too fast eg. 2ms interval which is smaller than the transmissin length it seems that program jumps to random locations instead of IRS. Here is my Interruprs handler: interrupts movwf w_temp ; save off current W register contents swapf STATUS,w ; move status register into W register movwf status_temp ; save off contents of STATUS register clrf status ; clear status => bank 0 for shure btfsc intcon,t0if goto do_tmr0 btfsc intcon,intf goto do_int btfsc pir1,tmr1if goto do_tmr1 goto int_exit do_tmr1: bcf pir1,tmr1if ; clear flag bsf i1sf ; set soft flag decfsz cnt1,f goto int_exit bsf i1sf ; set soft flag movlw cnt1val ; reload postscaler movwf cnt1 goto int_exit do_int: bcf intcon,intf ; clear flag bsf readerf bcf intcon,intf goto int_exit do_tmr0: bcf intcon,t0if ; reset the tmr0 interrupt flag decfsz tmrh,f goto int_exit movlw tmrhval movwf tmrh ; reload counter bsf toutf ; set flag int_exit swapf status_temp,w movwf STATUS ; restore pre-isr STATUS register contents swapf w_temp,f swapf w_temp,w ; restore pre-isr W register contents retfie ; return from interrupt ----- Original Message ----- From: "Carlos Ojea" To: Sent: Thursday, May 16, 2002 11:30 AM Subject: Re: [PIC]: 16F628 interrupts problem I think > A friend of mine told me that he has a similar problem using Mplab ICE with > power and clock from target board. > Nothing to do with the "speed" of interrupts, but program seems to jump to > random locations instead of ISR. > Are you using Mplab ICE with power and/or clock from target board? > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu