Pin4 is usually PORTB.4, and not actually Pin4 on the chip.

Which chip are you using?
<br>