English
Language : 

AMIS-30622_13 Datasheet, PDF (40/50 Pages) ON Semiconductor – I2C Micro-Stepping Motor Driver
AMIS−30622
I2C APPLICATION COMMANDS
Introduction
Communications between the AMIS−30622 and a 2−wire
serial bus interface master takes place via a large set of
commands.
Reading commands are used to:
♦ Get actual status information, e.g. error flags
♦ Get actual position of the stepper motor
♦ Verify the right programming and configuration of
the AMIS−30622.
Writing commands are used to:
♦ Program the OTP memory
♦ Configure the positioner with motion parameters
(max/min speed, acceleration, stepping mode, etc.)
♦ Provide target positions to the Stepper motor
The I2C−bus master will have to use commands to manage
the different application tasks the AMIS−30622 can feature.
The commands summary is given in Table 25.
Commands Table
Table 25. I2C COMMANDS WITH CORRESPONDING ROM POINTER
Command Byte
Command Mnemonic
Function
Binary
Hexadecimal
GetFullStatus1
Returns complete status of the chip
“1000 0001”
0x81
GetFullStatus2
Returns actual, target and secure position
“1111 1100”
0xFC
GetOTPParam
Returns OTP parameter
“1000 0010”
0x82
GotoSecurePosition
Drives motor to secure position
“1000 0100”
0x84
HardStop
Immediate full stop
“1000 0101”
0x85
ResetPosition
Sets actual position to zero
“1000 0110”
0x86
ResetToDefault
Overwrites the chip RAM with OTP contents
“1000 0111”
0x87
SetDualPosition
Drives the motor to two different positions with
different speed
“1000 1000”
0x88
SetMotorParam
Sets motor parameter
“1000 1001”
0x89
SetOTP
Zaps the OTP memory
“1001 0000”
0x90
SetPosition
Programs a target and secure position
“1000 1011”
0x8B
SoftStop
Motor stopping with deceleration phase
“1000 1111”
0x8F
These commands are described hereafter, with their
corresponding I2C frames. Refer to Data Transfer Formats
for more details. A color coding is used to distinguish
between master and slave parts within the frames. An
example is shown below.
Light Gray: Master Data
White: Slave Response
Figure 33. Color Code Used in the Definition of I2C Frames
http://onsemi.com
40