Yuri Flores Blanco wrote: > > Hi all, > > Having some problems,my problem is 16C74a slave port and interuption . > thank you There has been an errata sheet concerning the interrupts generated by the slaveport. Spurious interrupts are generated. The solution is given in the sheet. A copy/paste from an operational source : interrupt: .... btfsc PIR1,PSPIF ; slaveport interrupt? goto psp_int psp_exit equ $ .... retfie ;----------- psp_int: bcf PIR1,PSPIF ; clear request PSPIF regbank1 btfsc TRISE,IBF ; was there pcwrite? goto pcwr1 btfsc TRISE,OBF ; 0 if pc has read data (SEE ERRATA!) goto pcwr1 ; see errata sheet pcrd1: regbank0 ; pc has read data movlw 0 movwf slaveport ; clear OBF (set) goto psp_exit ; back. No reads yet. pcwr1: btfss TRISE,IBOV ; was there overflow? goto pspwr2 ; no bcf TRISE,IBOV ; yes, clear IBOV pspwr2: regbank0 bsf slavestat,pc2pic ; set flag movf slaveport,W ; get byte, clear IBF movwf slavebyte ; save byte goto psp_exit ; jump back in service routine may the source be with you. Bye.