Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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
 

Exo

Active Member
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.

Latest threads

EE World Online Articles

Loading
Top