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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.