AMIS-30623 LIN Microstepping Motordriver
SetMotorParam()
Data Sheet
This command is provided to the circuit by the LIN master to set the values for the stepper motor parameters (listed below) in RAM.
Refer to
to see the meaning of the parameters sent by the LIN master.
Important:
If a
SetMotorParam
occurs while a motion is ongoing, it will modify at once the motion parameters (see
Therefore the application should not change other parameters than
Vmax
and
Vmin
while a motion is running, otherwise
correct positioning cannot be guaranteed.
SetMotorParam
corresponds to the following LIN writing frame with
0x3C
identifier (type #4).
SetMotorParam Writing Frame
Structure
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
0
0
1
1
1
1
0
AppCMD = 0x80
1
CMD[6:0] = 0x09
Broad
AD[6:0]
Irun[3:0]
Ihold[3:0]
Vmax[3:0]
Vmin[3:0]
SecPos[10:8]
Shaft
Acc[3:0]
SecPos[7:0]
AccShape
PWMfreq
1
1
StepMode[1:0]
1
Byte
0
1
2
3
4
5
6
7
8
Content
Identifier
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7
Data 8
Bit 0
0
PWMJEn
Where:
Broad:
If Broad = ‘0’ all the circuits connected to the LIN bus will set the parameters in their RAMs as
requested
SetOTPparam()
This command is provided to the circuit by the LIN master to program the content
D[7:0]
of the OTP memory byte
OTPA[2:0],
and to
zap it.
Important:
This command must be sent under a specific Vbb voltage value. See parameter VbbOTP in
This is a
mandatory condition to ensure reliable zapping.
SetMotorParam
corresponds to a
0x3C
LIN writing frames (type #4).
HardStop Writing Frame
Structure
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
1
1
1
1
0
0
AppCMD = 0x80
1
CMD[6:0] = 0x10
Broad
AD[6:0]
1
1
1
1
1
OTPA[2:0]
D[7:0]
0xFF
0xFF
0xFF
Byte
0
1
2
3
4
5
6
7
8
Content
Identifier
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7
Data 8
Where:
Broad:
If Broad = ‘0’ all the circuits connected to the LIN bus will set the parameters in their OTP memories
as requested
AMI Semiconductor
– June 2006, Rev 3.0
58
www.amis.com