how to interface 2 [16x2 jhd 162a] lcd screens with one atmega 8 board

claudiu_mirescu:
As for the code, i used the LCD example in the Arduio IDE, which worked fine with Arduino before.

What about combining and LED flashing or serial print and LCD sample code? This way you know where the program gets stuck.