AMIS-30621 LIN Micro-stepping Motor Driver
Data Sheet
14.2.8. OTP Register
OTP Memory Structure
Table 16 shows how the parameters to be stored in the OTP memory are located.
Table 16: OTP Memory Structure
Address
0x00
0x01
0x02
0x03
0x04
0x05
0x06
0x07
Bit 7
OSC3
Bit 6
OSC2
TSD2
Bit 5
OSC1
TSD1
Bit 4
OSC0
TSD0
Bit 3
IREF3
BG3
Bit 2
IREF2
BG2
Bit 1
IREF1
BG1
Bit 0
IREF0
BG0
EnableLIN
ADM
PA3
PA2
PA1
PA0
Irun3
Irun2
Vmax2
Irun1
Vmax1
Irun0
Vmax0
Ihold3
Vmin3
Acc3
Ihold2
Vmin2
Acc2
Ihold1
Vmin1
Acc1
Ihold0
Vmin0
Acc0
Vmax3
SecPos10
SecPos7
SecPos9
SecPos6
SecPos8
SecPos5
Shaft
SecPos4
SecPos3
StepMode1
SecPos2
StepMode0
SecPos1
LOCKBT
SecPos0
LOCKBG
Parameters stored at address 0x00 and 0x01 and bit LOCKBT are already programmed in the OTP memory at circuit delivery. They
correspond to the calibration of the circuit and are just documented here as an indication.
Each OPT bit is at ‘0’ when not zapped. Zapping a bit will set it to ‘1’. Thus only bits having to be at ‘1’ must be zapped. Zapping of a bit
already at ‘1’ is disabled.
Each OTP byte will be programmed separately (see command SetOTPparam). Once OTP programming is completed, bit LOCKBGcan
be zapped, to disable future zapping; otherwise any OTP bit at ‘0’ could still be zapped by using a SetOTPparamcommand.
Table 17: OTP Overwrite Protection
Lock Bit
Protected Bytes
0x00 to 0x01
LOCKBT (factory zapped before delivery)
LOCKBG
0x00 to 0x07
The command used to load the application parameters via the LIN bus in the RAM prior to an OTP Memory programming is
SetMotorParam. This allows for a functional verification before using a SetOTPparam command to program and zap separately one
OTP memory byte. A GetOTPparamcommand issued after each SetOTPparamcommand allows verifying the correct byte zapping.
Note: zapped bits will really be “active” after a GetOTPparam or a ResetToDefault command or after a power-up.
Application Parameters Stored in OTP Memory
Except for the physical address PA[3:0]these parameters, although programmed in a non-volatile memory can still be overridden in
RAM by a LIN writing operation.
PA[3:0]
ADM
In combination with HW[2:0] it forms the physical address AD[6:0] of the stepper motor. Up to 128 stepper motors can
theoretically be connected to the same LIN bus.
Addressing mode bit enabling to swap the combination of OTP memory bits PA[3:0] with hardwired address bits
HW[2:0] to form the physical address AD[6:0] of the stepper motor.
StepMode
Indicator of stepping mode to be used.
Step Mode
Step Mode
1/2 stepping
1/4 stepping
1/8 stepping
1/16 stepping
0
0
1
1
0
1
0
1
Shaft
Indicator of reference position. If Shaft= ‘0’, the reference position is the maximum inner position, whereas if
Shaft= ‘1’, the reference position is the maximum outer position.
AMI Semiconductor – Sept. 2007, Rev 1.5
25
www.amis.com