User Manual

AND8399/D
http://onsemi.com
25
Figure 26. SLA Check
Timer Overflow ?
Power Up
Initialize microcontroller
Set Coil Current
Set Stepping Mode
Enable Motor
Transparent Mode
Send NXT Pulse
Start Timer
Y
N
Y
Delay
Sample SLApin
Read Microstep
Position
SLA below
Threshold ?
Y
N
Stop
If MSP MOD Y = 0
MSP = Microstep Position
MOD = Remainder of a division
Y = 2 for 1/16 microstepping, 4 for 1/8 microstepping
8 for 1/4 microstepping and 16 for half stepping
If MSP =
N
(0 OR 32 OR 64
OR 96)