loading...
SYSTEM COMMANDS
Save LCD Configuration
Description: This command saves the following parameters to the EEPROM. Once saved, the new parameters are remembered during the next initialization and do not need to be reconfigured by the master. A system reset will also load the new configuration.
| Syntax | 0×60 | |
| Parameter | Length | Description |
| N/A | 0 | N/A |
| Remembered | N/A | |
| Default | Refer to table below | |
| Parameter | Manufacturer’s Default | Description |
| LCD Display Control | 0x0F | |
| LCD Entry Mode | 0×06 | |
| LCD Shift Control | 0×10 | |
| LCD Function Set | 0×38 | |
| LCD Number of Lines | 0×04 | 4 line LCD |
| LCD Number of Characters | 0×14 | 20 character LCD |
| LCD Bits Used | 0×00 | Lower bits used |
| LCD Brightness | 0×32 | Set brightness at 50% |
| LCD Contrast | 0×32 | Set contrast at 50% |
Refer to the HD44780 datasheet for more details on the above commands.
Below is a short extract of the HD44780 datasheet showing the possible configuration settings:
![]()
![]()
Set Baud Rate
Description: This command changes the module’s baud rate when in UART mode to the specified baud rate. Once executed, the module will start communicating with the new baud rate.
| Syntax | 0×63 <baud rate index> | |
| Parameter | Length | Description |
| Baud rate index | 1 | Index for the new baud rate.
Values greater than 0x0E will be set as 0x0E, and values less than 0×01 will be set as 0×01. |
| Remembered | Always | |
| Default | 9600 | |
The following speed values are accepted
-
Index Baud Rate Index Baud Rate 0×01 300 0×08 57600 0×02 1200 0×09 115200 0×03 2400 0x0A 230400 0×04 4800 0x0B 250000 0×05 9600 0x0C 500000 0×06 19200 0x0D 625000 0×07 38400 0x0E 1250000
Set LCD Backlight
Description: This command sets the backlight intensity of the LCD module
| Syntax | 0×64 <% backlight> | |
| Parameter | Length | Description |
| % backlight | 1 | Value in % of the desired backlight.
Values greater than 0×64 (100%) will be set as 0×64, and values less than 0×00 (0%) will be set as 0×00. |
| Remembered | Effective Immediately. Remembered Always AFTER a Save LCD Configuration Command is executed | |
| Default | 50% | |
Set LCD Contrast
Description: This command sets the contrast of the LCD module
| Syntax | 0×65 <% contrast> | |
| Parameter | Length | Description |
| % contrast | 1 | Value in % of the desired contrast.
Values greater than 0×64 (100%) will be set as 0×64, and values less than 0×00 (0%) will be set as 0×00. |
| Remembered | Effective Immediately. Remembered Always AFTER a Save LCD Configuration Command is executed | |
| Default | 50% | |
Save Splash Screen
Description: This command will save the current content of the screen as a splash screen. The content is saved in the EEPROM and can be recalled in the future, even after power cycling the module. Note that this command will overwrite any previously saved splash screens.
| Syntax | 0×66 | |
| Parameter | Length | Description |
| N/A | 0 | N/A |
| Remembered | Always | |
| Default | “Sole-Electronics” on Line 1 of LCD | |
Display Splash Screen
Description: This command will recall the splash screen from EEPROM and display it on the LCD
| Syntax | 0×67 | |
| Parameter | Length | Description |
| N/A | 0 | N/A |
| Remembered | N/A | |
| Default | N/A | |
Request Firmware Version
Description: This command will return the module firmware revision. The module will send 2 bytes upon execution of the command. For example, a module with firmware revision 2.3 would return 0×02 0×03 as a response to this command.
| Syntax | 0×68 | |
| Response | Length | Description |
| First byte | 1 | Firmware major revision index |
| Second byte | 1 | Firmware minor revision index |
| Remembered | N/A | |
| Default | N/A | |
Request Hardware Version
Description: This command will return the module hardware revision. The module will send 2 bytes upon execution of the command. For example, a module with hardware revision 2.3 would return 0×02 0×03 as a response to this command.
| Syntax | 0×69 | |
| Response | Length | Description |
| First byte | 1 | Hardware major revision index |
| Second byte | 1 | Hardware minor revision index |
| Remembered | N/A | |
| Default | N/A | |
Set Acknowledge
Description: This command will set the ACK bit of the module. Once set, the module will respond with an ACK or NACK based on successful command execution. Commands which provide a response by design (such as Request firmware revision) will not ACK a command. The response data is considered as command execution confirmation.
| Syntax | 0x6A | |
| Parameter | Length | Description |
| ACK Setting | 1 | Once executed, the following is the module behavior based on the ACK setting bit sent.
0×00 – No response to command execution 0×01 – 0xA0 – Command ACK 0xAA – Command NACK |
| Remembered | Always | |
| Default | 0×00 | |
System Reset
Description: This command will perform a system reset, and reinitialize the module. If default configurations have been changed, the module will boot with the new configuration, if those were saved prior to executing this command.
| Syntax | 0x6B | |
| Parameter | Length | Description |
| N/A | 0 | N/A |
| Remembered | N/A | |
| Default | N/A | |
Splash Screen Enable Bit
Description: This command will set or clear the Splash Screen enable bit. When set, the display will show the splash screen during startup until the user clears the screen.
| Syntax | 0x6C | |
| Parameter | Length | Description |
| Enable Status | 1 | Once executed, the bit is saved in EEPROM. This setting will take effect in the next initialization cycle after power up or by sending the System reset command (0x6B)
0×00 – No Splash Screen displayed at Startup 0×01 – Splash Screen displayed at Startup |
| Remembered | Always | |
| Default | 0×01 | |
loading...
English
French
German
Spanish
Russian