Ahmadabuomar,

Another possible problem ...

According to your picture ...
Low Voltage Programming (LVP) is Enabled.
You could put a pull-down resistor on RB5/PGM, but you probably want to disable it completely since you are using the full PORTB in your program.

And pedja089, you can't use a 48Mhz resonator with the 4550's.
Maximum frequency using the main oscillator is 25Mhz.
You can use an external TTL (canned) 48Mhz oscillator with EC mode.
<br>