Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

whats the difference between TRIS and PORT registers in pic16f877a ??

Status
Not open for further replies.
Hello
PORTx is the register of the physical pin you see on your PIC
TRISx is the register used for choosing if a PORTx pin should be an input or an output (1 for input & 0 for output)
Every PORTx pin has its corresponding TRISx bit. If you want PORTx bit 6 as an output, TRISx bit 6 should be 0.
I hope that helped :)
 
Last edited:
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top