Display AXE133, what does the command (254,2) do?

jay4708

New Member
Hi

The project I'm working on uses a AXE133 display, I'm learning as a go and I am currently getting a line of text to roll across the display, all is going fine.

I've take examples from the forum and I've come across the command (254,2) (e.g. serout LCD_Data,Baud, (254,2)) and I'm not 100% sure what it's doing? I have Googled it and found someone calling it a "LCD reset" and someone else saying it's "Home (move cursor to top/left character position)", any ideas?

And why is it not listed anywhere as a command?

Thanks
John
 

westaust55

Moderator
Many commands are performed by setting 1 or more bits in data following the 254 instruction.

If you look at page 5 in the document nick12ab linked, on the second line in the Instructions table is:

Cursor at Home (RS=)0 (R/W=)0 (Data=)0000001*
the * indicates it is invalid to have anything other than 0
thus the data component DB7 to DB0 = %00000010 = 2 decimal
and the action is to return the cursor to the home position.

Taken from the AXE033 datasheet here is a partial list:
Control Commands (254)
Control commands are all prefixed by the number 254. They are used to send
commands to the Serial LCD Module (e.g. move to line 2, switch cursor off etc.).

The most common control commands are:

254,1 Clear Display (must be followed by a ‘pause 30’ command)
254,8 Hide Display
254,12 Restore Display
254,14 Turn on Cursor
254,16 Move Cursor Left
254,20 Move Cursor Right
254,128 Move to line 1, position 1
254, y Move to line 1, position x (where y = 128 + x)
254,192 Move to line 2, position 1
254, y Move to line 2, position x (where y = 192 + x
 
Top