![](http://datasheet.mmic.net.cn/230000/LM9831CCVJD_datasheet_15593402/LM9831CCVJD_17.png)
17
www.national.com
STEPPER MOTOR CONTROL SETTINGS
43
n (Line Skipping)
Part of the “n out of m” function, consisting of
registers 43, 44, and 54 (bits 3-7).
t
t
t
t
t
t
t
t
n lines saved in DRAM for every m lines (register 44)
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.
n lines (register 43) saved in DRAM for every m lines
scanned. m = 1 to 255.
If m = 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)
WARNING: When idle, this setting leaves the motor
energized for unipolar motors, and will destroy bipolar
motor drivers. Keep this bit set to a 0.
Positive (A/B/A/B Output high = winding energized)
Negative (A/B/A/B output low = winding energized)
WARNING: When idle, this setting leaves the motor
energized for unipolar motors, and will destroy bipolar
motor drivers. Keep this bit set to a 0.
A, B, A, and B output pins in Tri-State
A, B, A, and B output pins active
n n 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 n When scan starts, paper is fed forward n full steps (0 -
32767) at highest speed. For “zooming” in flatbeds
n n n n n n n n
44
m (Line Skipping)
Part of the “n out of m” function, consisting of
registers 43, 44, and 54 (bits 3-7).
m m m m m m m m
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
46
47
48
49
4A
4B
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 SENSE 2
trips -MSB
Fullsteps to Scan after PAPER SENSE 2
trips -LSB
4C
n n n n Adds a delay of n (0-4095) full steps between when
PAPER SENSE 2 trips and when the scanning bit is
reset, terminating the scan/motor movement
n n n n n n n n
4D
4E
Pause scanning, stop/reverse motor
n n n n n n n n
Pause scan when buffer is n*2 (16 x 256k) or
n*8 (16x1M) kbytes full
Resume scan when buffer is n*2 (16 x 256k) or
n*8 (16x1M) 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 (0-3) full steps at 50% speed
n n 18 bit word used to calculate when motor resumes
after reversing and stopping. 1 < n < 262143. 2 bits in
register 51 are the most significant bits of 18 bit word.
n n n n n n n n
n n nreverse (reverse steps = 0)
0
Red sensor data arrives before Green sensor
4F
Resume scanning, start motor
n n n n n n n n
50
Full steps to reverse when buffer is full
Acceleration Profile (stopped)
Acceleration Profile (25%)
Acceleration Profile (50%)
Default Phase Difference - High Byte
Default Phase Difference - Mid Byte
Default Phase Difference - Low Byte
Lines to Process After Pause/
Lines to Discard after Resume
Line Skipping Phase
Part of the “n out of m” function, consisting of
registers 43, 44, and 54 (bits 3-7).
Line Skipping Color Phase Delay
Part of the “n out of m” function, consisting of
registers 43, 44, and 54 (bits 3-7).
Kickstart steps
(fullstepping mode)
Hold Current Timeout
51
n n
52
53
n n n n n n n n
54
1
Blue sensor data arrives before Green sensor
n n n n
n lines, n = 0-15
55
n n n Motor gets maximum current for first n (0-7) full steps
Full step time units (1-31) (do not set to 0)
n n n n n n n n=CRYSTAL OUT/(256*256) (n = 0)
n n n n n n = minimum of n/64 (default = 0)
n n n n n
56
Stepper Motor PWM Frequency
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