LCD module 8X2 stucks afther 8th char

Hi.i'm still crying on LCD module now i 'm using a Powertip PC0802a based on a ks0076,(it should be compatible with hd44780 8X2 modules...but does it really means that i can swap them without any difference?????)i wrote my routines in assembly language for a pic 16f628,4 bit interface

it works fine except the fact that i f write in the 8th column of a row it stucks


movlw '1' call send_data movlw '2' call send_data ... ... ... movlw '7' call send_data

call Delay ;time to show it


it is ok,but if if i add a

movlw '8' call send_data

well,no way to move out from here

Any hints?

Thank you Diego Italy

Reply to
Loading thread data ...

If the 8th character is on the 2nd line, then its address will continue from 0x40, not 0x08. I believe this is because, many years ago, the controller IC was designed to work with various sizes of LCD and the 64-character line (0x40) was chosen as the maximum length.

-- Joe Legris

Reply to
J.A. Legris




thank you,but the reason was prior to this...once again it is my fault............ drivin the lcd with 4 bits interface i did a mistake in the way i checked the busy flag...

the flag must be checked only on the first nibble....and if the check fails both nibbles must be sent is evident by the timing diagram ,but i interpreted it wrongly....

once i corrected it it wrks fine the 8th char is on the first line ,and the 9th at 0X40 as you said

thanks again

Reply to

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.