8 appendix: command summary, 1 general, 2 issuing commands – Matrix Orbital PK202-24-USB User Manual

Page 35

Advertising
background image

7.1.9 Set Serial Number (254 52 [byte1][byte2])

Modules may be delivered with the serial number blank. In this case the user may set the desired 2 byte

serial number using this one time only command.

The serial number may be set only once. Any future attempt to execute this command will result in no

change and the module will return to the originally set serial number.

7.1.10 Read Serial Number (254 53)

This command will return a 2 byte hex value.

7.1.11 Read Version Number (254 54)

This command will return a 1 byte hex value.

8 Appendix: Command Summary

8.1 General

The operation of the display is controlled by a simple and consistent command set. Commands control;

Text display

Graphic display

Keypad interface

Miscellaneous operating parameters

This chapter includes summary tables of all commands.

8.2 Issuing Commands

Commands are issued to the display by the controller. In a test setup, commands can be issued to the

display by means of a BASIC program, using the chr$() function. In the tables below, commands are shown

in hex, ASCII and decimal form. All commands begin with the prefix character 0xFE (254 decimal). These

commands are issued on the serial communications link USB, at the currently defined baud rate.

For example (using a BASIC setup), the user could issue the command to clear the screen on the display

by including the line;

x§y

©P¡¦5€f‚S

'2ƒ

6g¡„F…@TBS

'Wƒ

6i§i&@

Or, with C the user could (using Zcomm serial library);

†$‡

 ¡ wfcˆF‰

'



!

)

‡

 ¡ 2354

!

)X68

"

H¡)&@tB

†$‡

 ¡ wfcˆF‰

'



!

)

‡

 ¡ 2354

!

)X65I’‘RIS@“B

Matrix Orbital

PK202-24-USB

31

Advertising