G gomathi New Member Nov 17, 2003 #1 i am searching a test program i.e i want output FF data into any port of pic 16f877. any configuration is there if it is there means can u send simple test program in assembly language. Thank u
i am searching a test program i.e i want output FF data into any port of pic 16f877. any configuration is there if it is there means can u send simple test program in assembly language. Thank u
Exo Active Member Nov 18, 2003 #2 Code: LIST P=16F877 #include <P16F877.INC> ORG 0x00 BSF STATUS, RP0 ;bank 1 CLRF TRISB ;make all portB pins output BCF STATUS, RP0 ;bank 0 MOVLW 0xFF MOVWF PORTB ;put 0xFF in port B (all pins high) GOTO $ ;endless loop END
Code: LIST P=16F877 #include <P16F877.INC> ORG 0x00 BSF STATUS, RP0 ;bank 1 CLRF TRISB ;make all portB pins output BCF STATUS, RP0 ;bank 0 MOVLW 0xFF MOVWF PORTB ;put 0xFF in port B (all pins high) GOTO $ ;endless loop END
C christophe New Member Mar 11, 2004 #3 Will these test program also work for the PIC 16F877A or will it need altering??? Cheers