English
Language : 

THM3561 Datasheet, PDF (17/21 Pages) THine Electronics, Inc. – Stepping Motor Driver with LVDS Interface
THM3561_Rev1.01_E
Communication Protocol
The serial communication of this product is controlled by the following protocol.
Byte Number
Data type
0
IN
OUT
Data type
1
IN
OUT
Data type
2~
IN
OUT
Table 18. Communication Protocol
7
0
-
CMD7
-
DATA7
DATA7
6
1
-
CMD6
-
DATA6
DATA6
5
0
-
CMD5
-
DATA5
DATA5
Bit Number
4
3
Device address
A4
A3
-
-
Run command
CMD4 CMD3
-
-
Read and write data
DATA4 DATA3
DATA4 DATA3
2
A2
-
CMD2
-
DATA2
DATA2
1
A1
-
CMD1
-
DATA1
DATA1
0
A0
-
CMD0
-
DATA0
DATA0
Data
direction
↓
↓
↓
↓
↓
↓
↓
↓
↓
The serial interface is a clock synchronization system, which performs writing in register and reading of sensor
signals (GPIN3 to GPIN0 pin input).
In the case of consolidating GPIN3 to GPIN0 pins to 4-bit, this has been denoted below as “GPIN Pin”.
・ The data length is 8-bit and MSB is first. For the specification method of the header bit (Header Condition), see
the Electrical Characteristics section.
・ The first 8-bit including the header bit are denoted as “byte 0” and the next 8-bit are denoted as “byte 1”.
・ The address of the device that carries out the communication is specified by byte 0. All devices (only motor
driver) are accessed on specifying the device address at 8’h40.
Here, the device for which device address is set as 8’h5F at the pins A4 to A0 is excluded.
・ Execution command is specified by byte 1. For execution command, see Table 19.
・ Byte 2 onwards is writing and reading data. The content of write/read data vary depending upon the execution
command specified by byte 1. Hence, check the details for each command.
write to register
write register
read sensor signals
(address assign mode)
write register / read sensor signals
(address assign mode)
read sensor signals
(shift register mode)
Table 19. Command Descriptions
Command
write
HEX
BIN
register
8’h00
8’b00000000
○
8’h88
8’b10001000
×
8’h80
8’b10000000
○
8’hAA 8’b10101010
×
Run
read sensor signals
(GPIN pin data)
address assign shift register
mode
mode
×
×
○
×
○
×
×
○
Do not specify the commands other than those given above.
If not particularly specified in this paragraph, the communication protocol/data example is seen from the host (CPU,
microcontroller).
Copyright(C)2015 THine Electronics, Inc.
17/21
THine Electronics, Inc.
Security E