NEC LCD4010-BK LCD4010 external control command - Page 10

Typical procedure example

Page 10 highlights

Bit 5-2 Bit 1 Bit 0 Reserved (Don't care) 1:Positive Horizontal sync polarity. 0:Negative Horizontal sync polarity. 1:Positive Vertical sync polarity. 0:Negative Vertical sync polarity. H Freq: Horizontal Frequency in unit 0.01kHz V Freq: Vertical Frequency in unit 0.01Hz Ex.) When H Freq is '1''2''A''9' (31h, 32h, 41h, 39h), it means 47.77kHz. 5.5.3 NULL Message STX Command code ETX 'B' 'E' The NULL message returned from the monitor is used in the following cases; A timeout error has occurred. (The default timeout is 10sec.) The monitor receives an unsupported message type. The monitor detects a packet BCC (Block Check Code) error. To tell the controller that the monitor does not have any answer to give to the host (not ready or not expected) Complete "NULL Message" command packet as follows; 01h-30h-30h-41h-41h-30h-34h-02h-42h-45h-03h-CHK-0Dh SOH-'0'-'0'-'A'-'A'-'0'-'4'-STX-'B'-'E'-ETX-CHK- CR 6. Typical procedure example The following is a sample of procedures to control the monitor, these are examples of "Get parameter", "Set parameter" and "Save current settings". 6.1. How to change the "Brightness" setting. Step 1. The controller requests the Monitor to reply with the current brightness setting and capability to support this operation. (Get parameter) Header Message SOH-'0'-Monitor ID-'0'-'C'-'0'-'6' STX-'0'-'0'-'1'-'0'-ETX Check code BCC Delimiter CR Header SOH (01h): Start Of Header '0' (30h): Reserved Monitor ID: Specify the Monitor ID from which you want to get a value. Ex.) If Monitor ID is '1', specify 'A'. '0' (30h): Message sender is the controller 'C' (43h): Message is "Get parameter command" '0'-'6' (30h, 36h): Message length is 6 bytes Message STX (02h): Start of Message '0'-'0' (30h, 30h): Operation code page number is 0 '1'-'0' (31h, 30h): Operation code is 10h (in the OP code page 0) ETX (03h): End of Message Check code BCC: Block Check Code Refer to the section 4.5 "Check code" for a BCC calculation. (10/37)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37

(10/37)
Bit 5-2
Reserved (Don't care)
Bit 1
1:Positive Horizontal sync polarity.
0:Negative Horizontal sync polarity.
Bit 0
1:Positive Vertical sync polarity.
0:Negative Vertical sync polarity.
¾
H Freq: Horizontal Frequency in unit 0.01kHz
¾
V Freq: Vertical Frequency in unit 0.01Hz
Ex.) When H Freq is '1''2''A''9' (31h, 32h, 41h, 39h), it means 47.77kHz.
5.5.3 NULL Message
The NULL message returned from the monitor is used in the following cases;
¾
A timeout error has occurred. (The default timeout is 10sec.)
¾
The monitor receives an unsupported message type.
¾
The monitor detects a packet BCC (Block Check Code) error.
¾
To tell the controller that the monitor does not have any answer to give to the host (not
ready or not expected)
¾
Complete "NULL Message" command packet as follows;
01h-30h-30h-41h-41h-30h-34h—02h-42h-45h-03h-CHK-0Dh
SOH-'0'-'0'-'A'-'A'-'0'-'4'-STX-'B'-'E'-ETX-CHK- CR
6. Typical procedure example
The following is a sample of procedures to control the monitor, these are examples of "Get parameter",
"Set parameter" and "Save current settings".
6.1. How to change the “Brightness” setting.
Step 1. The controller requests the Monitor to reply with the current brightness setting and capability
to support this operation. (Get parameter)
Header
Message
Check code
Delimiter
SOH-'0'-Monitor ID-'0'-'C'-'0'-'6'
STX-'0'-'0'-'1'-'0'-ETX
BCC
CR
Header
SOH (01h): Start Of Header
'0' (30h): Reserved
Monitor ID: Specify the Monitor ID from which you want to get a value.
Ex.) If Monitor ID is '1', specify 'A'.
'0' (30h): Message sender is the controller
'C' (43h): Message is "Get parameter command"
'0'-'6' (30h, 36h): Message length is 6 bytes
Message
STX (02h): Start of Message
'0'-'0' (30h, 30h): Operation code page number is 0
'1'-'0' (31h, 30h): Operation code is 10h (in the OP code page 0)
ETX (03h): End of Message
Check code
BCC: Block Check Code
Refer to the section 4.5 “Check code” for a BCC calculation.
Command code
STX
'B'
'E'
ETX