Hi. How do I know if my 16F877A is a 20 MHz and not a 4 MHz one (I bought a 20 MHz PIC but I think the seller gave me a 4 MHz one instead)? I bought a 20 MHz crystal and connected it to the PIC. When i write a certain delay in my program and simulate it, the stop watch feature in MPLAB shows that the delay is very short, but when I actually place the PIC in-circuit, it is extremely longer than that indicated by the simulation. Where could the problem be?