12
6.2.2
PC communicates with single chip microcomputer, PC to single-chip command data
frame is as follows:
Start byte
Instruction type byte
Instruction type
Checksum byte
0xFF
0x15
0x01/control amplifier
(Standby)
0x6B
0x02/Power on and shake
hands with the host
0x68
0x03/Read the hosts
working condition
0x69
0x04/Cancel amplifier
standby
0x6E
Instruction:
Checksum byte=((0xFF-0x80)^0x15)^0x01=0x6B
0x68
0x69
0x6E
6.2.3 Frame PC via RS232 issued under instructions to control the volume of data is as follows:
Starting bytes
Channel byte
Volume attenuation
bytes
Checksum bytes
0xFF
0x00/Channel 1
0-79dB
-10dB/0x75
-10dB/0x76
0x01/Channel 2
0x02/Channel 3
0x03/Channel 4
0-79dB
0-79dB
0-79dB
Instruction:
Checksum byte= ((0xFF-0x80) x channel byte) ^ Volume attenuation bytes
Such as: FF 00 0A 75 channel 1 is configurated to -10dB
FF 00 28 57 channel 1 is configurated to -40dB
FF 01 0A 74 channel 2 is configurated to -10dB
FF 02 0A 77 channel 3 is configurated to -10dB
FF 03 0A 76 channel 4 is configurated to -10dB
FF 03 28 54 channel 4 is configurated to -40dB
RS232 SERIAL PORT COMMUNICATION
-10dB/0x74
-10dB/0x77