falingtrea,

The condition IF PORTA.1 = 1 never goes true either using 5vdc.I do not think that is level "1" the problem.

I will try to de-install the Microcode Studio Plus + pICKIT2 because it seems to me that the problem is from the pc.

If someboby have any other idea please advice

Regards
Nikos