test program pic16f877

Status
Not open for further replies.

gomathi

New Member
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
 
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
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…