Quote Originally Posted by Joe S. View Post
You are sure the config statement is set to HS_OSC, Yes?
In addition to Joe's,

Not all 16f628A chips work at 20Mhz. You MUST make sure its type is 20Mhz.

Also, 15pf instead of 22pf for 20Mhz has always been better in my applications.


--------------------