Hi Ingvar,

Thank you very much. You are right. The LCD needs to be reset after the power is restored. I can use

lcdout $fe,$38
lcdout $fe,$0c
lcdout $FE, 1

to restore 8 data line LCD display. But the above did not make 4 data line LCD display work. Could you please give me some suggestion how to fix the problems.

Thank you very much.

Yuantu