075582814553
LM628N-8 Precision Motion Controller: Technical Analysis and Integration Guide

FREE-SKY (HK) ELECTRONICS CO.,LIMITED / 12-02 17:41

The LM628N-8 represents a dedicated digital motion control solution designed for servo motor applications requiring precise position and velocity control. This 28-pin device integrates a 32-bit position processor, programmable PID filtering, and trajectory generation in a single package, reducing the component count and design complexity for DC brushed and brushless servo systems. Engineers evaluating this device must understand its clock frequency requirements, interface timing constraints, and obsolescence status to make informed design decisions.

Catalog

1. Product Overview
2. Product Features
3. Typical Applications
4. Architecture and Signal Processing
5. Clock Frequency and Timing Requirements
6. Host Interface and Communication Protocol
7. Encoder Interface Specifications
8. Output Configuration and DAC Interface
9. PID Control and Trajectory Generation
10. Power Supply and Electrical Specifications
11. Design Considerations and Limitations
12. Obsolescence and Replacement Strategy

LM628N-8 Texas Instruments

LM628N-8 Texas Instruments

Product Overview

The LM628N-8 is a precision motion controller manufactured by Texas Instruments, designed specifically for closed-loop servo control applications. This device operates with a clock frequency range of 1.0 MHz to 8.0 MHz, distinguishing it from the LM628N-6 variant which supports up to 6.0 MHz. The IC is housed in a 28-pin through-hole DIP package with 0.600" (15.24mm) row spacing.

The device requires a single 4.5V to 5.5V power supply and operates across an industrial temperature range of -40°C to 85°C. Its core function is to perform intensive real-time computations for digital motion control, offloading trajectory planning and PID loop calculations from the host processor. The LM628N-8 provides an 8-bit parallel asynchronous interface to the host and supports both 8-bit and 12-bit DAC outputs for motor control signals.

Product status is listed as obsolete, requiring careful consideration for new designs and planning for existing installations.

Product Features

The LM628N-8 incorporates several computational and interface capabilities optimized for servo control:

Computational Resources:

  • 32-bit position, velocity, and acceleration registers provide extended range and resolution for motion calculations

  • Programmable digital PID filter with 16-bit coefficients enables precise tuning of control loop response

  • Programmable derivative sampling interval allows optimization of D-term calculation for different system dynamics

  • Internal trapezoidal velocity profile generator automates acceleration and deceleration planning

Interface Capabilities:

  • 8-bit parallel asynchronous host interface simplifies connection to microprocessors and microcontrollers

  • Quadrature incremental encoder interface with index pulse input supports standard two-channel encoders

  • 8-bit or 12-bit DAC output data port accommodates different resolution requirements

  • Real-time programmable host interrupts enable event-driven control architecture

Operational Modes:

  • Position mode for point-to-point motion control

  • Velocity mode for constant-speed applications

  • On-the-fly parameter updates allow trajectory and filter adjustments during motion

Typical Applications

The LM628N-8 is engineered for general-purpose servo control applications where precise position or velocity regulation is required:

Brushed DC Servo Systems:

Suitable for permanent magnet DC motors with quadrature encoder feedback. The device outputs motor command signals through its DAC interface, which must be coupled with an appropriate power amplifier matched to motor voltage and current requirements.

Brushless DC (BLDC) Servo Systems:

Capable of controlling BLDC servo motors when paired with external commutation logic or when the motor controller handles commutation independently. The LM628N-8 provides high-level trajectory and position control rather than direct commutation timing.

Linear Actuator Positioning:

Applications requiring controlled linear motion with encoder feedback can utilize the device's trajectory generation and position loop closure. Verification of encoder resolution, maximum velocity, and acceleration requirements against device computational limits is necessary.

Multi-Axis Motion Systems:

Multiple LM628N-8 devices can be coordinated by a single host processor, with each IC managing one axis independently. Host software must manage synchronization when coordinated motion is required.

Applications must provide a suitable incremental encoder with quadrature outputs and ensure encoder state transition rates remain within device capture limits.

Architecture and Signal Processing

The LM628N-8 employs a specialized architecture comprising distinct functional blocks:

Position Feedback Processor:

This 32-bit processor decodes quadrature encoder signals and maintains real-time position, velocity, and acceleration data. The device uses a four-to-one resolution multiplication technique, generating four position counts per complete encoder quadrature cycle. This yields higher resolution than the native encoder line count.

Digital PID Filter:

The 16-bit coefficient PID filter operates on position or velocity error signals. Coefficients for proportional, integral, and derivative terms are programmed by the host. The derivative sampling interval is independently configurable, allowing D-term calculation frequency to be optimized separately from the main loop rate.

Command Sequencer:

This block interprets high-level commands from the host and coordinates internal operations. It manages parameter loading, trajectory execution, and interrupt generation based on programmed conditions.

Trajectory Generator:

The internal trapezoidal profile generator computes target position and velocity setpoints based on programmed acceleration, deceleration, and target parameters. This automation reduces host computational burden and ensures smooth motion profiles.

The architecture separates real-time servo computations from host communication, permitting the host to issue commands asynchronously while motion execution continues uninterrupted.

LM628N-8 Functional Block Architecture

LM628N-8 Functional Block Architecture

Clock Frequency and Timing Requirements

The LM628N-8 requires an external clock signal between 1.0 MHz and 8.0 MHz. Clock frequency directly impacts several performance parameters:

Encoder Capture Rate:

Encoder input signals must remain stable at each quadrature state for a minimum of 8 clock periods. For an 8.0 MHz clock, this corresponds to a maximum encoder state transition rate of 1.0 MHz (8 clock periods × 125 ns = 1 µs). Due to the four-to-one decoding advantage, this represents an effective position update bandwidth of 1.0 MHz. At 6.0 MHz clock frequency, the maximum capture rate reduces to 750 kHz.

LM628N-8 Encoder Frequency and Resolution Multiplication Relationships

LM628N-8 Encoder Frequency and Resolution Multiplication Relationships

Derivative Sampling Interval:

After reset, the derivative sampling interval initializes to 2048 clock cycles. At 8.0 MHz, this equals 256 µs. This interval determines how frequently the derivative term in the PID filter is recalculated. Applications requiring faster derivative response must program a shorter interval, while slower mechanical systems may benefit from longer intervals to reduce derivative noise sensitivity.

Clock Signal Specifications:

The clock input pulse width must meet minimum duration requirements: 57 ns for the LM628N-8. The clock period must be at least 125 ns (8.0 MHz maximum). Clock signals should exhibit stable rise and fall times (10 ns typical for test conditions) to ensure reliable internal timing.

Reset Timing:

The reset input must remain low for a minimum of 8 clock periods to ensure complete initialization. At 8.0 MHz, this requires a 1 µs minimum reset pulse width. After releasing reset, the status byte should change from 00 hex to 84 hex or C4 hex within 1.5 ms, indicating successful initialization.

Host Interface and Communication Protocol

The LM628N-8 communicates with the host processor through an 8-bit parallel port controlled by four handshake signals:

Control Signals:

  • CS (Chip Select): Active-low signal selects the device for read/write operations

  • PS (Port Select): Selects command port (low) or data port (high)

  • RD (Read): Active-low read strobe

  • WR (Write): Active-low write strobe

Status Byte Access:

The status byte is read from the command port (PS low) and indicates device readiness, command completion, and interrupt conditions. The busy bit signals when the device is processing a command and cannot accept new host transactions. Status byte read timing requires CS and PS setup times of 0 ns minimum, with read data access time of 180 ns maximum.

Command Writing:

Commands are written to the command port as single-byte opcodes. The write pulse width must be at least 100 ns, with data setup time of 50 ns before the rising edge of WR and hold time of 120 ns after. The busy bit should be checked before writing a new command to ensure the previous operation has completed.

Data Word Transfers:

Multi-byte data words are transferred through the data port (PS high) in sequential read or write operations. Each byte requires the same timing constraints as command writes. For read operations, data access time is 180 ns maximum, with read recovery time of 120 ns between successive reads. Write operations require 120 ns write recovery time between successive bytes.

LM628N-8 Host Interface Signal Timing and Handshake Protocol

LM628N-8 Host Interface Signal Timing and Handshake Protocol

Interrupt Signaling:

The HI (Host Interrupt) pin provides an active-high output when programmed interrupt conditions occur. Six interrupt sources can be individually masked or enabled: trajectory complete, wraparound, index pulse, position error, command error, and breakpoint events. The host interrupt service routine reads the status byte to identify the interrupt source.

Timing margins should account for board trace delays and host processor interface characteristics to ensure reliable communication at maximum clock frequencies.

Encoder Interface Specifications

The quadrature encoder interface accepts two-phase signals (A and B) plus an optional index pulse:

Quadrature Signal Requirements:

Encoder outputs A and B must provide 90-degree phase-shifted square waves with logic-level amplitudes. Input voltage thresholds are logic 1 ≥ 2.0V and logic 0 ≤ 0.8V. The minimum pulse width for each state is 8 clock periods, establishing the maximum encoder frequency as fcLK/8. For the LM628N-8 operating at 8.0 MHz, this permits encoder state transitions up to 1.0 MHz.

Four-Times Multiplication:

The device decodes both edges of both quadrature channels, producing four position increments per complete encoder cycle (one full A and B period). An encoder with N lines per revolution generates 4N counts per revolution in the position register. This multiplication increases effective resolution without requiring a higher line-count encoder.

Direction Sensing:

Positive (forward) direction is defined as channel A leading channel B by 90 degrees. The position counter increments for forward motion and decrements for reverse motion. Direction sensing is automatic and requires no external logic.

LM628N-8 Quadrature Encoder Decoding and Four-Times Resolution Multiplication

LM628N-8 Quadrature Encoder Decoding and Four-Times Resolution Multiplication

Index Pulse Function:

The index input (pin 1) captures the current position when A, B, and Index signals are all low simultaneously. This provides a reference position for homing routines or position verification. The index position can be read by host software. If index functionality is not required, pin 1 must be tied high to prevent false triggering.

Signal Integrity Considerations:

Encoder cable length, noise immunity, and signal slew rate affect reliable capture at high frequencies. Differential line receivers may be necessary for long cable runs or electrically noisy environments. Encoder supply voltage and output drive capability must be verified to meet LM628N-8 input thresholds across temperature and loading conditions.

Output Configuration and DAC Interface

The LM628N-8 provides flexible output formatting through pins 18-25 (DAC0-DAC7):

8-Bit DAC Mode:

In standard 8-bit mode, the DAC port outputs a latched 8-bit value with the MSB on pin 18 and LSB on pin 25. This output typically drives an external 8-bit digital-to-analog converter which produces the analog motor command voltage. The DAC output updates at the PID filter rate. After reset, the output initializes to 80 hex, centering an 8-bit DAC at mid-scale.

12-Bit Multiplexed Mode:

For higher resolution, the LM628N-8 can output 12-bit data as two time-multiplexed 6-bit words on pins 18-23. Pin 24 serves as a word select (low for less-significant 6 bits), and pin 25 provides a strobe signal on its positive edge to latch each word. The timing is synchronized to the internal clock: the low 6 bits are present for 2048/fcLK, followed by the high 6 bits for the same duration. At 8.0 MHz, each word duration is 256 µs. The external DAC or latch circuit must demultiplex and combine these words. After reset, the output initializes to 800 hex to center a 12-bit DAC.

LM628N-8 DAC Output Modes: 8-Bit Standard and 12-Bit Multiplexed

LM628N-8 DAC Output Modes: 8-Bit Standard and 12-Bit Multiplexed

Output Timing:

The DAC port outputs are latched and held stable between updates. Output timing is internally controlled and synchronous with PID filter calculations. The host does not directly write to the DAC port; outputs reflect the computed motor command from the PID filter.

Interface Circuit Requirements:

The external DAC must accept TTL/CMOS logic levels, with VoH ≥ 2.4V at -1.6 mA and VoL ≤ 0.4V at 1.6 mA. The DAC conversion time should be faster than the PID update rate to avoid introducing additional control loop delay. DAC output range and reference voltage must be scaled appropriately for the subsequent power amplifier input range.

Output Drive Capability:

Each output pin can sink or source 1.6 mA while maintaining specified voltage levels. Loads exceeding this current may require buffering. Capacitive loads up to 50 pF are assumed in timing specifications; higher capacitance increases propagation delays.

PID Control and Trajectory Generation

The LM628N-8 implements a digital PID control algorithm with programmable coefficients and an internal trajectory generator:

PID Filter Structure:

The filter computes motor command output based on position or velocity error using the standard equation: Output = kp × Error + ki × ∫Error dt + kd × dError/dt. Coefficients kp, ki, and kd are 16-bit programmable values loaded by the host. These coefficients must be determined through system identification or empirical tuning methods.

Position Mode:

In position mode, the error signal is the difference between target position (from the trajectory generator) and actual position (from the encoder). The PID filter drives the error toward zero, achieving position regulation. Steady-state position accuracy depends on integral gain magnitude and system friction characteristics.

Velocity Mode:

Velocity mode uses the difference between target velocity and measured velocity as the error input. The device calculates velocity by differentiating the position signal. Velocity mode is appropriate for constant-speed applications or when the host manages position loop closure externally.

Trapezoidal Profile Generation:

The internal trajectory generator creates smooth motion profiles with programmed acceleration, constant velocity, and deceleration phases. The host loads target position, maximum velocity, and acceleration parameters. The LM628N-8 automatically computes intermediate target positions and velocities, eliminating the need for host-based trajectory calculation. This reduces host computational load and ensures consistent motion timing.

LM628N-8 PID Control Loop Structure and Trapezoidal Trajectory Profile

LM628N-8 PID Control Loop Structure and Trapezoidal Trajectory Profile

On-the-Fly Updates:

Trajectory and filter parameters can be modified during motion execution. This enables dynamic velocity changes, target position adjustments, or gain scheduling based on operating conditions. The command set includes operations to change parameters without halting motion.

Derivative Sampling Interval:

The derivative term calculation frequency is set independently from the main control loop rate via the programmable derivative sampling interval. Longer intervals reduce noise amplification in the D-term but slow derivative response. Shorter intervals improve responsiveness but increase sensitivity to encoder quantization and electrical noise.

Power Supply and Electrical Specifications

The LM628N-8 operates from a single regulated power supply with the following characteristics:

Supply Voltage:

The device requires VDD between 4.5V and 5.5V, typical of standard TTL/CMOS +5V logic families. Supply voltage must remain within this range across all operating conditions, including transient loads. Undervoltage conditions may cause computational errors or loss of position tracking.

Supply Current:

With outputs unloaded, the device draws a maximum of 110 mA from VDD. Actual current depends on clock frequency, with higher frequencies increasing dynamic power consumption. External loads on the DAC port and HI output add to total supply current.

Input Current:

Logic inputs (encoder, control signals, clock, reset) draw between -10 µA and +10 µA with input voltages between 0V and VDD. Input current is primarily leakage and does not significantly contribute to total power consumption.

Power Dissipation:

Maximum power dissipation at TA ≤ 85°C is specified as 605 mW for single-sided PC boards. Multi-layer boards with internal power and ground planes provide superior heat dissipation. At maximum supply current (110 mA) and voltage (5.5V), power dissipation is approximately 605 mW, approaching the thermal limit. Adequate board thermal design is necessary when operating continuously at high ambient temperatures.

Decoupling Requirements:

While not explicitly specified in the available documentation, standard practice requires a 0.1 µF ceramic capacitor placed close to the VDD pin (pin 28) with minimal trace inductance to GND (pin 14). Additional bulk capacitance (10-100 µF) near the device reduces low-frequency supply impedance.

ESD Protection:

The device incorporates ESD tolerance rated at 1000V using the Human Body Model (HBM) with Czap = 120 pF and Rzap = 1.5 kΩ. Despite this protection, ESD-safe handling procedures should be followed during assembly and servicing to prevent latent damage to the NMOS gates.

Design Considerations and Limitations

Encoder Selection:

The maximum useful encoder line count is constrained by the motor's maximum speed and the LM628N-8's encoder capture rate. For an 8.0 MHz clock supporting 1.0 MHz state transitions, and accounting for four-times multiplication, the maximum encoder frequency is 250 kHz (1.0 MHz ÷ 4). An encoder with 1000 lines per revolution at 15,000 RPM generates 250 kHz, reaching this limit. Higher line counts require reduced maximum speed, or encoder frequency division may be necessary.

LM628N-8 Encoder Frequency Limit Calculation for Line Count and Motor Speed

LM628N-8 Encoder Frequency Limit Calculation for Line Count and Motor Speed

Control Loop Bandwidth:

The achievable closed-loop bandwidth depends on PID filter update rate, which is limited by encoder capture rate and internal processing. Systems requiring bandwidth above several hundred Hz may find the LM628N-8 bandwidth-limited compared to modern motion controllers.

Position Register Range:

The 32-bit position register provides a range of ±2,147,483,647 counts. At 4× multiplication, an encoder with 10,000 counts per revolution (2,500 lines) allows ±53,687 revolutions before wraparound. Applications with unlimited rotary motion must monitor and handle position wraparound, or use the wraparound interrupt to reset position periodically.

Interrupt Latency:

The HI output signals interrupt conditions, but host response time depends on host processor interrupt architecture and software latency. High-priority interrupt handling is necessary for time-critical responses to position errors or trajectory completion.

Component Availability:

The obsolete status indicates Texas Instruments has discontinued active production. Existing inventory may be available through distributors or obsolete part specialists, but long-term availability is uncertain. Lead times may be extended, and minimum order quantities may apply.

Single-Axis Limitation:

Each LM628N-8 controls only one axis. Multi-axis systems require one device per axis plus host coordination logic. Synchronized multi-axis moves require the host to manage trajectory start timing and velocity matching across axes.

Obsolescence and Replacement Strategy

Current Product Status:

Texas Instruments has designated the LM628N-8 as obsolete. This status indicates the product is no longer in active production, though some inventory may remain in distribution channels. New designs should not select this device, and existing designs should evaluate migration paths.

Implications for Existing Designs:

Systems currently using the LM628N-8 face potential supply chain risks. Availability may become sporadic, pricing may increase, and lead times may extend as remaining inventory depletes. Life-of-type buys should be considered for products with defined end-of-life dates and limited production volumes.

Replacement Evaluation Criteria:

Identifying a suitable replacement requires matching several characteristics:

  1. Functional Compatibility: The replacement must provide quadrature encoder interface, digital PID filtering, trajectory generation, and similar computational capabilities.

  2. Interface Compatibility: Pin-compatible replacements simplify migration, but functional equivalents with different interfaces (SPI, I²C, or modern parallel buses) may require PCB redesign and firmware updates.

  3. Performance Matching: Encoder input frequency range, position register width, and control loop bandwidth should meet or exceed LM628N-8 specifications to avoid performance degradation.

  4. Package and Electrical: Through-hole 28-pin DIP packages are increasingly uncommon. Surface-mount alternatives require PCB layout changes but offer better high-frequency performance and thermal characteristics.

Replacement Approaches:

Functional equivalents are uncommon due to the specialized nature of the LM628N-8. Modern motion control solutions typically use:

  1. Dedicated Motion Controllers: Chips like the Trinamic TMC4361 or similar devices provide motion control with updated interfaces and higher performance, but require different software architectures.

  2. FPGA or Microcontroller Implementation: Modern 32-bit microcontrollers or small FPGAs can implement PID control and trajectory generation in firmware. This approach offers flexibility and long-term component availability but requires significant development effort.

  3. Integrated Motor Drivers: Devices combining motion control, gate drivers, and power stages reduce part count but may not suit all applications, particularly those requiring separate power amplifiers.

Verification Requirements:

Replacement compatibility requires verification of:

  • Encoder interface electrical specifications and timing

  • PID filter coefficient scaling and numerical precision

  • Trajectory generation algorithms and profile fidelity

  • Host interface timing and command protocol

  • Output signal format and DAC interface

  • Overall closed-loop control performance through testing

Drop-in replacement without verification is unlikely to be feasible. Thorough bench testing and qualification are essential.

Conclusion

The LM628N-8 provides a hardware-accelerated solution for DC and brushless servo motor control, integrating 32-bit position processing, programmable PID filtering, and trapezoidal trajectory generation in a single through-hole package. The 8 MHz clock variant supports encoder frequencies up to 1.0 MHz with four-times resolution multiplication, accommodating moderately high-resolution encoders at typical industrial speeds. Its 8-bit parallel interface and flexible DAC output modes simplify integration with host processors and external analog circuitry. However, the obsolete product status presents significant supply chain risks for new designs and long-term production. Engineers must evaluate encoder timing constraints, host interface requirements, and control bandwidth needs against device specifications, while planning migration strategies for applications requiring sustained component availability beyond current inventory depletion. Replacement selection should prioritize functional equivalence verification through comprehensive testing rather than assuming compatibility based solely on specifications or marketing descriptions.


Processed in 0.059076 Second , 23 querys.