Serial interface connections – Linx Technologies LICAL-TRC-MT User Manual
Page 14

–
–
–
–
22
23
MT Series T
ranscoder Serial Interface Engine Command Set
Definition
Command
Reply
Read Local Settings
0x00 -
0x01
- 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B -
A1
-
A2
-
A3
-
IOs
- 0xFF
W
rite Local Settings
0x00 -
0x02
-
A1
-
A2
-
A3
-
IOs
- 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Next User ID
0x00 -
0x11
- 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B -
ID
- 0xFF
W
rite Next User ID
0x00 -
0x12
-
ID
- 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Specific User
0x00 -
0x21
-
ID
- 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B -
A1
-
A2
-
A3
-
CP
- 0xFF
W
rite Specific User
0x00 -
0x22
-
A1
-
A2
-
A3
-
CP
-
ID
- 0xFF
0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read T
arget Addr
ess
0x00 -
0x31
- 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B -
A1
-
A2
-
A3
- 0xFF
W
rite T
arget Addr
ess
0x00 -
0x32
-
A1
-
A2
-
A3
- 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Custom Data V
alue
0x00 -
0x41
- 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B -
Data
- 0xFF
W
rite Custom Data V
alue
0x00 -
0x42
-
Data
- 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Latch Mask V
alue
0x00 -
0x51
- 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B -
Mask
- 0xFF
W
rite Latch Mask V
alue
0x00 -
0x52
-
Mask
- 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Status Outputs
0x00 -
0x61
- 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B -
Outputs
- 0xFF
W
rite Status Inputs
0x00 -
0x62
-
Status
-
Packets
- 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Confirmation EN
0x00 -
0x71
- 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B -
VA
L - 0xFF
W
rite Confirmation EN
0x00 -
0x72
-
VA
L - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Device T
argeting EN
0x00 -
0x81
- 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B -
VAL
- 0xFF
W
rite Device T
argeting EN
0x00 -
0x82
-
VA
L - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Custom Data EN
0x00 -
0x91
- 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B -
VA
L - 0xFF
W
rite Custom Data EN
0x00 -
0x92
-
VA
L - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF
0x00 - 0x41 - 0x43 - 0x4B - 0xFF
A1, A2, A3 = 8-bit values totaling 24-bit addr
ess
IOs = Status line input/output settings (0 = output, 1 = input; line D0 corr
esponds to bit b0)
ID = User ID value (decimal notation, 1 to 60)
CP = Contr
ol permissions for the lear
ned transcoder (0 = not authorized, 1 = authorized; line D0 corr
esponds to bit b0)
Data = value of the custom data byte transferr
ed when the option is enabled
Mask = value used to define which outputs ar
e latched when Latch Mode is enabled (0 = momentary
, 1 = latched; line D0 corr
esponds to bit b0)
Outputs = Curr
ent state of the status line outputs (0 = low
, 1 = high; line D0 corr
esponds to bit b0)
Packets = Number of packets to be sent
VAL = Option enable value (0x00 = Of
f, 0x01 = On)
To delete a specific user
, perform a W
rite Specific User operation with A1, A2, A3, and IOs set to 0xFF
Figure 18: MT Series Transcoder Serial Interface Engine Command Set
Serial Interface Connections
The serial interface on the MT Series can be connected to any device
capable of serial communication, including microcontrollers, RS-232 drivers
and computers. Figure 17 gives an example of connecting the MT to the
Linx QS Series USB module for connection to a computer.
The USB module follows the RS-232 convention of using separate lines
for data input and data output while the transcoder has a single line for all
data. This requires a switch to alternatively connect the transcoder’s SER_
IO line to the DATA_IN and DATA_OUT lines on the module.
The RTS line is used to throw the switch as well as to activate the CRT/
LRN line placing the transcoder into Serial Mode. This gives the PC the
ability to control when communication is initiated.
The MODE_IND line goes high when the transcoder is prepared to send
data, so the CTS line on the USB module is used to monitor the MODE_
IND line. This allows the computer to know when to throw the switch and
look for data from the transcoder.
One point of note is that voltage translation may be necessary if the 5V
USB module is used to communicate with a transcoder operating at 3V.
There are many components and methods for implementing level shifting,
so it is up to the designer to determine the best solution for the product.
USBDP
USBDM
GND
DSR
DATA_IN
DATA_OUT
RTS
CTS
DTR
TX_IND
VCC
SUSP_IND
RX_IND
485_TX
RI
DCD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
VCC
D6
D7
CRT/LRN
ENC_SEL
SER_IO
CONFIRM
TR_PDN
TR_SEL
TR_DATA
GND
D5
D4
D3
LATCH
SEL_BAUD
MODE_IND
D2
D1
D0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
LICAL-TRC-MT
SDM-USB-QS
8
7
6
5
1
2
3
4
V+
NC
NC
GND
MAX4544
USB Type B
Connector
GND
5V
DAT -
DAT+
GND
GSHD
GSHD
1
2
3
4
5
6
VCC
VCC
Figure 17: MT Series Transcoder Serial Interface to a PC