Problem with connecting an LCD 16x2

floresta:
The single row of blocks means that your LCD controller is not being initialized properly. This is almost always due to incorrect or defective connections.
By the way, your display is still upside down - but you will discover this when you get it working.

mass(pin5),

What does this mean? Pin 5 must be connected to GND (pin 1).

Don

Sorry, i meant GND. But i've see on the guide the same initialization with a single row of 'black' blocks.

takao21106:
Well I meant if you checked the signals using LEDs or logic analyzer.

I use LEDs + 4.7k, tag them to ICs or displays using just a little solder.

Maybe you can slow down the software, and then you can see specific flashes,
otherwise also they should be observeable to light up for an instant.

I often had trouble with PIC ICSP in past years, or tristate/alternate pheripherals,
tagging LEDs cleared that up.

You have connected a resistance of 4.7k between vcc and +LEDs pin?
Can you explain me how i can slow software? I need to change parameters in the liquidcrystal library?