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.
Because reading the port location always returns the value the is on the port pins and not the value that you previously wrote, Microchip introduced a new register called Latch that keeps track of what was written to the port. The important difference is that if you read from the port register you will get the value that is on the pins. If you read from the Latch register you get the value that was previously written to it or the port register. This really only makes any difference if your pins are heavily loaded and take time to change I.E. driving capacitive loads.
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.