AMIS-30624 I2C Microstepping Motordriver
Data Sheet
SetStallParam
This command sets the motion detection parameters and the related steppermotor parameters, such as the minimum and maximum
velocity, the run- and hold current, acceleration and step-mode. See Motion Detection for the meaning of these parameters.
SetStallParamcorresponds to the following I2C command frame:
SetStallParam Command Frame
Byte
Content
Structure
Bit 4
Bit 7
Bit 6
Bit 5
Bit 3
OTP1
0
1
1
Bit 2
OTP0
1
1
1
Bit 1
HW
1
1
1
Bit 0
1
1
1
1
1
0
1
1
OTP3
OTP2
0
0
1
1
0
1
2
3
4
5
6
7
8
Address
Command
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7
0
1
1
1
1
1
Irun[3:0]
Ihold[3:0]
Vmin[3:0]
Acc[3:0]
Vmax[3:0]
MinSamples[2:0]
AbsThr[3:0]
Shaft
DelThr[3:0]
FS2StallEn[2:0]
DC100StEn
AccShape
PWMJEn
StepMode[1:0]
SetMotorParam
This command is provided to the circuit by the I2C master to set the values for the stepper motor parameters (listed below) in RAM.
Refer to Table 18 to see the meaning of the parameters sent by the I2C master.
Important: If a SetMotorParam occurs while a motion is ongoing, it will modify at once the motion parameters (see Position
Controller). Therefore the application should not change parameters other than Vmax and Vmin while a motion is running, otherwise
correct positioning cannot be guaranteed.
SetMotorParamcorresponds to the following I2C command frame:
SetMotorParam Command Frame
Byte
Content
Structure
Bit 4
Bit 7
Bit 6
Bit 5
Bit 3
OTP1
1
1
1
Bit 2
OTP0
0
1
1
Bit 1
HW
0
1
1
Bit 0
1
1
1
1
1
0
1
1
OTP3
OTP2
0
1
1
1
0
1
2
3
4
5
6
7
8
Address
Command
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7
0
1
1
0
1
1
Irun[3:0]
Vmax[3:0]
SecPos[10:8]
Ihold[3:0]
Vmin[3:0]
Acc[3:0]
Shaft
SecPos[7:0]
AccShape
1
1
PWMfreq
1
PWMJEn
StepMode[1:0]
SetOTPParam
This command is provided to the circuit by the I2C master to program and zap the OTP data D[7:0]in OTP address OTPA[2:0].
Important: This command must be sent under a specific Vbb voltage value. See parameter VbbOTP in Table 5. This is a mandatory
condition to ensure reliable zapping.
SetOTPParamcorresponds to the following I2C command frame:
SetOTPParam Command Frame
Byte
Content
Structure
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
1
1
1
1
1
1
0
1
1
1
OTP3
OTP2
OTP1
OTP0
HW
0
1
1
0
0
1
1
0
1
2
3
4
5
Address
Command
Data 1
Data 2
Data 3
0
1
1
1
1
1
1
1
0
1
1
1
0
1
1
OTPA[2:0]
D[7:0]
Data 4
Where:
OTPA[2:0]: OTP address
D[7:0]: Corresponding OTP data
AMI Semiconductor – Apr. 2007, Rev 3.1, M-20664-003
50
www.amis.com