LDX #PORTA
LDAA #$FF
STAA DDRC,X
BCLR PORTC,X,$FF ; actually it is now with $1003 since LDX #PORTA
My now problem is, it is just appearing one row black boxes on first line of LCD JHD162A...no matter how I change the initialization part, it also doesn't work!!
And one more thing, the DDRAM address for line 1 of JHD162A starts from $80? line 2 starts from $C0?
I have set the Set Function as $38...now my LCD can display some characters but still existing error!!
I intend to show "WELCOME", but my LCD just show "LLLLLLLLLLLLLLLLLLLLL" for the whole first line of my LCD, and the cursor repeat and repeat going through in the first line from right to left.
is it my time delay problems? my coding as the asm.file
INI_LCD LDY #INITIAL ;Initialize the LCD
LOOP LDAA 0,Y
BEQ START ;After initialize then go START
BSR INS ;Jump or branch to INS
(delay here)...
INY ;Increment Y with +1
BRA LOOP ;Jump or branch to LOOP