Quote Originally Posted by paul borgmeier
I have read your question now a couple of times and it is not clear (at least to me) what you are asking.

Are you wanting to get rid of your XTAL to gain more input lines? If you do, with the use of RA4 you will have 3 more but have requested 4. Please clarify your request.
I now use 10 dipswitch as input (look at image) and i want to add more dipswitch.
Can i use the pin which are for the xtal (ra6-ra7) as input , if i use the pic16f628.
also the ra4 and the mclr(ra5).
will i have problem if change the XTAL with internal OSC;
Sorry for my English.