do not type in upper case any more because that means yelling at us. that is what piclist says. Electronics Master wrote: > HALLO EVERYBODY > I WOULD LIKE A PROGRAMME > FOR A PIC 16F84 TO CHECK (OPEN-CLOSE) PORT B,1 > AND IF PORT B,1 IS SET = 1 > THEN MAKE PORT B,4 SET = 1 > it looks like that you didn't even open the data book. > > I USE THIS PROGRAMM > LIST P=16F84 > PORTB EQU 06H > your port initialization is wrong you have to change to bank 1, setup port then change to bank0 since you want to make B0 input then BSF status,RP0 ; change to bank1 movlw B'0000010' ; load I/O movwf TRISB ; do it BCF status,RP0 ; change to bank0 > START > > TRIS PORTB > above line is extra > BTFSS PORTB,1 > GOTO START > BSF PORTB,4 > GOTO START > ORG 3FFF > END > > WHAT IS WRONG ????????? > > Thanks > Andre Abelian > > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.com