LM628N-8 National Semiconductor, LM628N-8 Datasheet - Page 14

no-image

LM628N-8

Manufacturer Part Number
LM628N-8
Description
IC,Motor Controller,MOS,DIP,28PIN
Manufacturer
National Semiconductor
Datasheet

Specifications of LM628N-8

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
www.national.com
Interrupt Control Commands
field will mask the corresponding interrupt(s); any one(s)
enable the interrupt(s). Other bits comprising the two bytes
have no effect. The mask controls only the host interrupt
process; reading the status byte will still reflect the actual
conditions independent of the mask byte. See Table 3.
RSTI COMMAND: RESET INTERRUPTS
When one of the potential interrupt conditions of Table 3
occurs, command RSTI is used to reset the corresponding
interrupt flag bit in the status byte. The host may reset one or
all flag bits. Resetting them one at a time allows the host to
service them one at a time according to a priority pro-
grammed by the user. As in the MSKI command, bits 1
through 6 of the second (less significant) byte correspond to
the potential interrupt conditions shown in Table 3. Also see
description of RDSTAT command. Any zero(s) in this 6-bit
field reset the corresponding interrupt(s). The remaining bits
have no effect.
Filter Control Commands
The following two LM628 user commands are used for set-
ting the derivative-term sampling interval, for adjusting the
filter parameters as required to tune the system, and to
control the timing of these system changes.
LFIL COMMAND: LOAD FILTER PARAMETERS
The filter parameters (coefficients) which are written to the
LM628 to control loop compensation are: kp, ki, kd, and il
(integration limit). The integration limit (il) constrains the
contribution of the integration term
TABLE 3. Mask and Reset Bit Allocations for Interrupts
Bits 15 thru 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
(Continued)
Command Code:
Data Bytes:
Data Range:
Executable During Motion: Yes
Command Code:
Data Bytes:
Data Ranges…
Executable During Motion: Yes
Filter Control Word:
Filter Coefficients:
Integration Limit:
Bit Position
Not Used
Breakpoint Interrupt
Position-Error Interrupt
Wrap-Around Interrupt
Index-Pulse Interrupt
Trajectory-Complete Interrupt
Command-Error Interrupt
Not Used
1D Hex
Two
See Text
1E Hex
Two to Ten
See Text
0000 to 7FFF Hex (Pos Only)
0000 to 7FFF Hex (Pos Only)
Function
14
(see Eq. 1) to values equal to or less than a user-defined
maximum value; this capability minimizes integral or reset
“wind-up” (an overshooting effect of the integral action). The
positive-only input value is compared to the absolute mag-
nitude of the integration term; when the magnitude of inte-
gration term value exceeds il, the il value (with appropriate
sign) is substituted for the integration term value.
The derivative-term sampling interval is also programmable
via this command. After writing the command code, the first
two data bytes that are written specify the derivative-term
sampling interval and which of the four filter parameters
is/are to be written via any forthcoming data bytes. The first
byte written is the more significant. Thus the two data bytes
constitute a filter control word that informs the LM628 as to
the nature and number of any following data bytes. See
Table 4.
Bits 8 through 15 select the derivative-term sampling inter-
val. See Table 5. The user must locally save and restore
these bits during successive writes of the filter control word.
Bits 4 through 7 of the filter control word are not used.
Bits 0 to 3 inform the LM628 as to whether any or all of the
filter parameters are about to be written. The user may
choose to update any or all (or none) of the filter parameters.
Those chosen for updating are so indicated by logic one(s) in
the corresponding bit position(s) of the filter control word.
The data bytes specified by and immediately following the
filter control word are written in pairs to comprise 16-bit
words. The order of sending the data words to the LM628
corresponds to the descending order shown in the above
description of the filter control word; i.e., beginning with kp,
then ki, kd and il. The first byte of each word is the more-
significant byte. Prior to writing a word (byte pair) it is nec-
essary to check the busy bit in the status byte for readiness.
The required data is written to the primary buffers of a
double-buffered scheme by the above described operations;
Bit Position
Bit 15
Bit 14
Bit 13
Bit 12
Bit 10
Bit 9
Bit 8
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit 11
TABLE 4. Filter Control word Bit Allocation
Derivative Sampling Interval Bit 7
Derivative Sampling Interval Bit 6
Derivative Sampling Interval Bit 5
Derivative Sampling Interval Bit 4
Derivative Sampling Interval Bit 3
Derivative Sampling Interval Bit 2
Derivative Sampling Interval Bit 1
Derivative Sampling Interval Bit 0
Not Used
Not Used
Not Used
Not Used
Loading kp Data
Loading ki Data
Loading kd Data
Loading il Data
Function

Related parts for LM628N-8