Hi

This is now ok, I was writing "$FF" for output in the TRISA instead of 0.
But now I have broken a PIC16f628A. When I program it with the WinPic800 software, it says "Error: writing 0x(a size of data) reading 0x0000.....
I've programmed another with the OPTION_REG, that I changed, re-set to 80 and it's ok.

I'll have to understand how function these i/o, fuses and the internal clock.

Thank!