I had problem with 16f628a
After repeating to reprogram IC with the same code it start working as has to be.
Possible disadvantage of 16f628a is some bits of reprogrammed memory do not change their state during programming.
Hope it helps.
hardcore