The Inning isn't over just because you Walk somebody.

If balls = 4 Then over

<hr>
Do you have pull-up resistors on RA.3 and RC.3 ?
Is the PIC even running? Can you Blink an LED ?
<br>