A problem that many people new to PICs may encounter is incorrectly configured ports. A typical example of this is where a port bit is set to 1, however this is not seen on the PIC's pin. This is often due to the fact that some PICs have the port configured to analog mode by default, when digital mode is what is really required. Searching the forums will provide numerous discussions about this. Here is one example.