> Hello! Hello > > I have asked the question before but here is > some fact: Ok, test this (I assume you're ussing MPLAB & MPASM) #include "p16f870.inc" ; CP1 CP0 DEBUG - WRT CPD LVP BODEN CP1 CP0 /PWRTE WDTE FOSC1 FOSC0 ; 1 1 1 1 0 1 0 0 1 1 1 0 x x __config b'11110100111011' & _YOUR_OSC_SETTING org 0x0000 movlw b'11111110' ;rb6 input, rb0 output banksel TRISB movwf TRISB banksel PORTB loop btfss PORTB,6 ;test portb.6 and repeat on portb.0 bcf PORTB,0 btfsc PORTB,6 bsf PORTB,0 goto loop end And, if it fails, the chip is wrong. But if it works, you have a bug in your code Sergi Sanchez Barcelona Tecnologia S.A. http://www.piclist.org/techref/member/SSB-BTSA-ES -- 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