Datasheet

www.robot
-electronics.co.uk LCD05 datasheet 1.0
Page 4 of 6 Devant
ech Ltd, Mar 2013
Serial operation
The Seri
al mode operates over a link with a baud rate of 9600 bps (no parity, 2 stop bits) and 5v signals, Do NOT connect RS232 directly to
the module - you will destroy it. Use a MAX232 or equivalent to convert the RS232 levels to 5v. Operation is with the same command set as
the I2C mode with an additional set of commands to request data to be sent i.e. the software version.
Serial commands
Decimal Command Description
0 null (ignored) Ignored as a no operation
1 Cursor home Sets the cursor to the home position (top left)
2 Set cursor (1-80/32) Set cursor using the next byte, where 1 is the top left and 80/32 is the bottom right
3 set cursor (row, column) Sets cursor using two bytes, where first byte is the row and the second byte is the column
4 Hide cursor Stops the position cursor from appearing on the display
5 Show underline cursor Changes the cursor to the underline type
6 Show blinking cursor Changes the cursor to the blinking type
8 Backspace Deletes the preceding character from the current position on the display
9 Horizontal tab (by tab set) Moves the cursor position to next tab point set by command 18 (default tab space 4)
10 Smart line feed Moves the cursor down one line to the position beneath in the same column
11 Vertical tab Moves the cursor up one line to the position above in the same column
12 Clear screen Clears the screen and sets cursor to the home position
13 Carriage return Moves the cursor to the start of the next line
14 FIFO status Returns the FIFO status, the number of free bytes up to 100
15 Software version Returns a single byte module version
16 Keypad status Returns keypad input status, two bytes low byte first (see keypad input section)
17 Clear column Clears the contents of the current column and moves cursor right by one column
18 Tab set Sets the required tab size, the following byte can be a size of between 1 and 10
19 Backlight on Turns the backlight of the LCD05 on
20 Backlight off (default) Turns the backlight of the LCD05 off
21 Disable start-up message Disables the display of setup information at power up
22 Enable start-up message Enables the display of setup information at power up
23 Save as start-up screen Saves current screen and displays it on power up
24 Set display type Sets which display is connected to the LCD05 (see changing display type below)
25 Change address First byte of sequence to change LCD05 address (see changing address below)
27 Custom char generator Allows 8 custom chars to be built. See custom char generator section
28 Double keypad scan rate Increases the frequency of the keypad scan to 20hz
29 Normal keypad scan rate Returns to the default keypad scan frequency of 10hz
30 Contrast set Byte following this command will be contrast level (0-255)
31 Brightness set Byte following this command will be brightness level (0-255)
32-255 ASCII chars Writes ASCII chars straight to the display