|
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
|
▷ |