LM628N-6 National Semiconductor, LM628N-6 Datasheet - Page 16

Motor Controller / Driver IC

LM628N-6

Manufacturer Part Number
LM628N-6
Description
Motor Controller / Driver IC
Manufacturer
National Semiconductor
Datasheet

Specifications of LM628N-6

Driver Case Style
DIP
No. Of Pins
28
Peak Reflow Compatible (260 C)
No
Ic Function
Motor Controller / Driver IC
Leaded Process Compatible
No
Mounting Type
Through Hole
Package / Case
28-DIP
Operating Current
110mA
Operating Temperature Classification
Industrial
Package Type
MDIP
Operating Supply Voltage (min)
4.5V
Operating Supply Voltage (max)
5.5V
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LM628N-6
Manufacturer:
NSC
Quantity:
5 510
Part Number:
LM628N-6
Quantity:
5 510
Part Number:
LM628N-6
Manufacturer:
NS
Quantity:
1 000
Part Number:
LM628N-6/NOPB
Manufacturer:
National Semiconductor
Quantity:
135
www.national.com
Trajectory Control Commands
occurs automatically at the end of the specified trajectory.
Under exceptional circumstances it may be desired to manu-
ally intervene with the trajectory generation process to affect
a premature stop. In velocity mode operations, however, the
normal means of stopping is via bits 8 through 10 (usually bit
10). Bit 8 is set to logic one to stop the motor by turning off
motor drive output (outputting the appropriate offset-binary
code to apply zero drive to the motor); bit 9 is set to one to
stop the motor abruptly (at maximum available acceleration,
by setting the target position equal to the current position);
and bit 10 is set to one to stop the motor smoothly by using
the current user-programmed acceleration value. Bits 8
through 10 are to be used exclusively; only one bit should be
a logic one at any time.
Bits 0 through 5 inform the LM628 as to whether any or all of
the trajectory controlling parameters are about to be written,
and whether the data should be interpreted as absolute or
relative. The user may choose to update any or all (or none)
of the trajectory parameters. Those chosen for updating are
so indicated by logic one(s) in the corresponding bit posi-
tion(s). Any parameter may be changed while the motor is in
motion; however, if acceleration is changed then the next
STT command must not be issued until the LM628 has
completed the current move or has been manually stopped.
The data bytes specified by and immediately following the
trajectory control word are written in pairs which comprise
16-bit words. Each data item (parameter) requires two 16-bit
words; the word and byte order is most-to-least significant.
The order of sending the parameters to the LM628 corre-
sponds to the descending order shown in the above descrip-
tion of the trajectory control word; i.e., beginning with accel-
eration, then velocity, and finally position.
Acceleration and velocity are 32 bits, positive only, but range
only from 0 (00000000 hex) to [2
bottom 16 bits of both acceleration and velocity are scaled
as fractional data; therefore, the least-significant integer data
bit for these parameters is bit 16 (where the bits are num-
bered 0 through 31). To determine the coding for a given
velocity, for example, one multiplies the desired velocity (in
counts per sample interval) times 65,536 and converts the
result to binary. The units of acceleration are counts per
sample per sample. The value loaded for acceleration must
not exceed the value loaded for velocity. Position is a signed,
32-bit integer, but ranges only from −[2
[2
The required data is written to the primary buffers of a
double-buffered scheme by the above described operations;
it is not transferred to the secondary (working) registers until
the STT command is executed. This fact can be used ad-
vantageously; the user can input numerous data ahead of
their actual use. This simple pipeline effect can relieve po-
tential host computer data communications bottlenecks, and
facilitates easier synchronization of multiple-axis controls.
STT COMMAND: START MOTION CONTROL
The STT command is used to execute the desired trajectory,
the specifics of which have been programmed via the LTRJ
command. Synchronization of multi-axis control (to within
(Continued)
30
Command Code:
Data Bytes:
Executable During Motion: Yes, if acceleration has not
]−1 (3FFFFFFF Hex).
01 Hex
None
been changed
30
]−1 (3FFFFFFF hex). The
30
] (C0000000 hex) to
16
one sample interval) can be arranged by loading the re-
quired trajectory parameters for each (and every) axis and
then simultaneously issuing a single STT command to all
axes. This command may be executed at any time, unless
the acceleration value has been changed and a trajectory
has not been completed or the motor has not been manually
stopped. If STT is issued during motion and acceleration has
been changed, a command error interrupt will be generated
and the command will be ignored.
Data Reporting Commands
The following seven LM628 user commands are used to
obtain data from various registers in the LM628. Status,
position, and velocity information are reported. With the
exception of RDSTAT, the data is read from the LM628 data
port after first writing the corresponding command to the
command port.
RDSTAT COMMAND: READ STATUS BYTE
The RDSTAT command is really not a command, but is listed
with the other commands because it is used very frequently
to control communications with the host computer. There is
no identification code; it is directly supported by the hard-
ware and may be executed at any time. The single-byte
status read is selected by placing CS , PS and RD at logic
zero. See Table 7.
Bit 7, the motor-off flag, is set to logic one when the motor
drive output is off (at the half-scale, offset-binary code for
zero). The motor is turned off by any of the following condi-
tions: power-up reset, command RESET, excessive position
error (if command LPES had been executed), or when com-
mand LTRJ is used to manually stop the motor via turning
the motor off. Note that when bit 7 is set in conjunction with
command LTRJ for producing a manual, motor-off stop, the
actual setting of bit 7 does not occur until command STT is
issued to affect the stop. Bit 7 is cleared by command STT,
except as described in the previous sentence.
Bit 6, the breakpoint-reached interrupt flag, is set to logic one
when the position breakpoint loaded via command SBPA or
SBPR has been exceeded. The flag is functional indepen-
dent of the host interrupt mask status. Bit 6 is cleared via
command RSTI.
Bit 5, the excessive-position-error interrupt flag, is set to
logic one when a position-error interrupt condition exists.
This occurs when the error threshold loaded via command
Bit Position
Command Code:
Byte Read:
Data Range:
Executable During Motion: Yes
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
TABLE 7. Status Byte Bit Allocation
Motor Off
Breakpoint Reached [Interrupt]
Excessive Position Error [Interrupt]
Wraparound Occurred [Interrupt]
Index Pulse Observed [Interrupt]
Trajectory Complete [Interrupt]
Command Error [Interrupt]
Busy Bit
None
One
See Text
Function

Related parts for LM628N-6