
20
http://www.national.com
STEPPER MOTOR CONTROL SETTINGS 1
44
n (Line Skipping)
Part of the “n out of m” function, consisting of
registers 0B (bits 4-7) 44, 45 (bit 5), and 5A.
t
t
t
t
t
t
t
t
n lines saved in SRAM for every m lines (register 5A)
scanned, function bypassed if register value = 0.
n (lines saved per m lines scanned) = 256 - t
t = 256 - n
If t = 0 then function is bypassed
0 Full Step Mode
1 MicroStepping Mode
1 Phase - No microstepping, just kickstart/stop
functions
2 Phases - necessary for microstepping
Positive (A/B/A/B Output high = winding energized)
Negative (A/B/A/B output low = winding energized)
Positive (A/B/A/B Output high = winding energized)
Negative (A/B/A/B output low = winding energized)
A, B, A, and B output pins in Tri-State
A, B, A, and B output pins active
Red sensor data arrives before Green sensor
45
Full/Microstepping
Current Sensing Phases
= 0 for fullstepping
= 1 for microstepping
0
1
Stepper Motor Phase A Polarity
0
1
Stepper Motor Phase B Polarity
0
1
A, B, A, and B stepper motor status
0
1
Line Skipping Phase
Part of the “n out of m” function, consisting of
registers 0B (bits 4-7) 44, 45 (bit 5), and 5A.
Scanning Step Size - MSB
Scanning Step Size - LSB
Fast Feed Step Size - MSB
Fast Feed Step Size - LSB
Fullsteps to Skip at Start of Scan - MSB
Fullsteps to Skip at Start of Scan - LSB
Fullsteps to Scan after Paper Sensor #2
trips -MSB
Fullsteps to Scan after Paper Sensor #2
trips -LSB
Pause scanning, stop/reverse motor
Resume scanning, start motor
Full steps to reverse when buffer is full
Acceleration Profile (stopped)
Acceleration Profile (25%)
Acceleration Profile (50%)
Default Phase Difference - MSB
Default Phase Difference - LSB
0
1
Blue sensor data arrives before Green sensor
46
47
48
49
4A
4B
n n n n n n The step size of one microstep while scanning, in
units of pixel periods (minimum 2).
n n n n n n n n
n n n n n n The step size of one microstep while fast feeding, in
units of pixel periods (minimum 2).
n n n n n n n n
n n n n n n When scan starts, paper is fed forward n full steps (0 -
16383) at highest speed. For “zooming” in flatbeds
n n n n n n n n
4C
n n n n n n Adds a delay of n (0-16383) full steps between when
Paper Sensor #2 trips and when the scanning bit is
reset, terminating the scan/motor movement.
n n n n n n n n
4D
4E
4F
50
n n n n n n n n Pause scan when buffer is n kbytes full
n n n n n n n n Resume scan when buffer is n kbytes full
n n n n n n n (0-63) full steps (0 = do not reverse)
n n n (0-3) full step time units pause while stopped
n n
n (0-3) full steps at 25% speed
n n
n (0-3) full steps at 50% speed
n n n n n n n n Used to calculate when motor resumes after reversing
and stopping. 1 < n < 65535
n n n n n n n n
n (0-7) lines. This only applies if the motor doesn’t
reverse (reverse steps = 0).
n (0-7) lines. This only applies if the motor doesn’t
reverse (reverse steps = 0).
Should be set to same value as bits 0-2.
n n n Motor gets maximum current for first n (0-7) full steps
n n n n n
Full step time units (1-31), 0 = no hold current
=CRYSTAL IN/(4*n) (0 < n < 256)
=CRYSTAL IN/(4*256) (n = 0)
n n n n n n = n/64 (default = 0)
51
52
53
54
Lines to Process After Pause Scan Signal
n n n
Lines to Discard after Resume Scan
Signal
n n n
55
Kickstart Steps
(fullstepping mode)
Hold Current Timeout
56
Stepper Motor PWM Frequency
n n n n n n n n
57
Stepper Motor PWM Set Duty Cycle
Address
Function
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D
0
Value