Continue to Site

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.

Need Help! PIC16F877A Port Initialization

Status
Not open for further replies.
I think you need to add x to your hex numbers
Can anyone explain and help me to solve that problem? Thanks.
My code is:
BANKSEL TRISA
CLRF TRISA
BANKSEL PORTA
MOVLW 0xFF
MOVWF PORTA
BANSEL TRISA
MOVLW 0xFF
MOVWF TRISA

value of PORTA and TRISA after my code is:
TRISA : 11111111
PORTA : 01000000
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top