[go: up one dir, main page]

CN201110962Y - Hardware Interpolation Circuit Based on Programmable Logic Device - Google Patents

Hardware Interpolation Circuit Based on Programmable Logic Device Download PDF

Info

Publication number
CN201110962Y
CN201110962Y CNU2007201991666U CN200720199166U CN201110962Y CN 201110962 Y CN201110962 Y CN 201110962Y CN U2007201991666 U CNU2007201991666 U CN U2007201991666U CN 200720199166 U CN200720199166 U CN 200720199166U CN 201110962 Y CN201110962 Y CN 201110962Y
Authority
CN
China
Prior art keywords
programmable logic
logic device
module
buffer
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CNU2007201991666U
Other languages
Chinese (zh)
Inventor
陶益民
王建
林万强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI KAITONG DIGITAL CONTROL CO Ltd
Original Assignee
SHANGHAI KAITONG DIGITAL CONTROL CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI KAITONG DIGITAL CONTROL CO Ltd filed Critical SHANGHAI KAITONG DIGITAL CONTROL CO Ltd
Priority to CNU2007201991666U priority Critical patent/CN201110962Y/en
Application granted granted Critical
Publication of CN201110962Y publication Critical patent/CN201110962Y/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

本实用新型公开了一种基于可编程逻辑器件的硬件插补电路,其包括发送控制信息给可编程逻辑器件的微处理器,可编程逻辑器件将控制信号转化为控制电机驱动器的串行控制信号,可编程逻辑器件接收微处理器发出的控制、数据及地址信号,并返回状态标志,对上述信号采用两级缓存处理,并同步发出控制脉冲,在规定的时间内,保证电机的动作统一,上述控制脉冲在可编程逻辑器件中按特定算法产生,实现对电机驱动器的控制;该电路可在不改变系统硬件的情况下,为重构逻辑功能而对可编程逻辑器件进行编程或反复编程,使硬件变得像软件一样灵活而易于修改、升级。采用本电路使电路结构简单、无分立元件、逻辑修改方便、抗干扰性能强等特点。

The utility model discloses a hardware interpolation circuit based on a programmable logic device, which includes a microprocessor that sends control information to the programmable logic device, and the programmable logic device converts the control signal into a serial control signal for controlling the motor driver , the programmable logic device receives the control, data and address signals sent by the microprocessor, and returns the status flag, adopts two-level cache processing for the above signals, and sends out control pulses synchronously, within the specified time, to ensure the uniform movement of the motor, The above-mentioned control pulse is generated in the programmable logic device according to a specific algorithm to realize the control of the motor driver; the circuit can program or repeatedly program the programmable logic device in order to reconstruct the logic function without changing the system hardware. Make hardware as flexible and easy to modify and upgrade as software. The adoption of this circuit has the characteristics of simple circuit structure, no discrete components, convenient logic modification, strong anti-interference performance and the like.

Description

基于可编程逻辑器件的硬件插补电路 Hardware Interpolation Circuit Based on Programmable Logic Device

技术领域 technical field

本实用新型涉及一种基于可编程逻辑器件的硬件插补方法。The utility model relates to a hardware interpolation method based on programmable logic devices.

背景技术 Background technique

目前许多数控系统把经过调制后的脉冲、方向信号作为控制步进电机及伺服电机驱动器的控制信号来控制电机的转速及方向,实现数控机床的运动。如步进电机驱动器一般具有三个控制输入端:步进脉冲信号、方向电平信号、使能电平信号。当控制电路对这三个输入端进行相应控制时,即可实现对步进电机的速度、方向等的控制。但过去这些脉冲产生电路都是采用小型分立元件搭接而成,其存在着脉冲波形模式比较单一、脉冲的上升沿和下降沿不够陡峭、当脉冲宽度要求十分窄时电路难实现等缺陷。At present, many CNC systems use the modulated pulse and direction signals as control signals to control the stepper motor and servo motor driver to control the speed and direction of the motor, and realize the movement of the CNC machine tool. For example, a stepper motor driver generally has three control input terminals: a step pulse signal, a direction level signal, and an enable level signal. When the control circuit controls the three input terminals accordingly, the control of the speed and direction of the stepping motor can be realized. However, in the past, these pulse generating circuits were all made of small discrete components, which had defects such as relatively single pulse waveform mode, not steep enough rising and falling edges of the pulse, and difficulty in realizing the circuit when the pulse width was required to be very narrow.

发明内容 Contents of the invention

本实用新型所要解决的技术问题是提供一种基于可编程逻辑器件的硬件插补电路,该电路在不改变系统硬件的情况下,方便重构电路逻辑功能,实现数控系统的脉冲控制。The technical problem to be solved by the utility model is to provide a hardware interpolation circuit based on a programmable logic device, which can conveniently reconfigure the logic function of the circuit and realize the pulse control of the numerical control system without changing the system hardware.

为解决上述技术问题,本实用新型基于可编程逻辑器件的硬件插补电路包括微处理器、发出时钟信号的晶振电路和可编程逻辑器件,微处理器连接可编程逻辑器件并采用并行传送方式发送控制信息给可编程逻辑器件,可编程逻辑器件将控制信号转化为控制电机驱动器的串行控制信号,可编程逻辑器件包括多路选择器,其还包括若干双缓冲同步电路模块、若干等脉宽DDA算法模块、三态控制逻辑模块和插补周期生成模块;所述双缓冲同步电路模块由第一缓冲器和第二缓冲器串联组成,所述第一缓冲器连接所述多路选择器,所述第二缓冲器连接等脉宽DDA算法模块,所述三态控制逻辑模块连接所述多路选择器,所述插补周期生成模块连接所述等脉宽DDA算法模块。In order to solve the above-mentioned technical problems, the hardware interpolation circuit based on the programmable logic device of the utility model includes a microprocessor, a crystal oscillator circuit and a programmable logic device for sending a clock signal, and the microprocessor is connected with the programmable logic device and is sent in a parallel transmission mode. The control information is sent to the programmable logic device, and the programmable logic device converts the control signal into a serial control signal for controlling the motor driver. The programmable logic device includes a multiplexer, which also includes several double-buffered synchronous circuit modules, several equal pulse width DDA algorithm module, three-state control logic module and interpolation cycle generation module; the double buffer synchronous circuit module is composed of a first buffer and a second buffer in series, the first buffer is connected to the multiplexer, The second buffer is connected to the equal pulse width DDA algorithm module, the tri-state control logic module is connected to the multiplexer, and the interpolation period generation module is connected to the equal pulse width DDA algorithm module.

上述电路中,所述的双缓冲同步电路模块和等脉宽DDA算法模块至少是一个;In the above-mentioned circuit, there is at least one of the double-buffering synchronous circuit module and the equal pulse width DDA algorithm module;

在本电路中,所述等脉宽DDA算法模块是数字积分电路,其输出频率均匀,等占空比的控制脉冲;所述插补周期生成模块由分频器和连接分频器的计数器组成,其产生的脉冲周期决定电路等脉宽数字积分算法插补周期,通过改变所述计数器数据位数,可设置插补脉冲的周期及占空比。In this circuit, the equal pulse width DDA algorithm module is a digital integration circuit, and its output frequency is uniform, and the control pulse of equal duty cycle; the interpolation period generation module is composed of a frequency divider and a counter connected to the frequency divider , the pulse period generated by it determines the interpolation period of the pulse width digital integration algorithm of the circuit, and the period and duty ratio of the interpolation pulse can be set by changing the number of digits of the counter data.

由于本实用新型的基于可编程逻辑器件的硬件插补电路采用了上述技术方案,即通过可编程逻辑器件发生按特定算法得出的控制脉冲,实现对电机驱动器的控制;该方法可以在不改变电路系统设计或线路板的情况下,为重构逻辑功能而对可编程逻辑器件进行编程或反复编程,使硬件变得像软件一样灵活而易于修改、升级。采用可编程逻辑器件实现硬件插补器具有结构简单、无分立元件、逻辑修改方便、抗干扰性能强等特点。Because the hardware interpolation circuit based on the programmable logic device of the utility model adopts the above-mentioned technical scheme, promptly the control pulse that draws by specific algorithm occurs through the programmable logic device, realizes the control to the motor driver; This method can be changed without changing In the case of circuit system design or circuit board, the programmable logic device is programmed or reprogrammed to reconfigure the logic function, so that the hardware becomes as flexible as software and easy to modify and upgrade. The use of programmable logic devices to implement hardware interpolators has the characteristics of simple structure, no discrete components, convenient logic modification, and strong anti-interference performance.

附图说明 Description of drawings

下面结合附图和实施方式对本实用新型作进一步的详细说明:Below in conjunction with accompanying drawing and embodiment the utility model is described in further detail:

图1为本基于可编程逻辑器件的硬件插补电路的逻辑原理框图。Fig. 1 is a logical block diagram of the hardware interpolation circuit based on the programmable logic device.

具体实施方式 Detailed ways

如图1所示,本实用新型基于可编程逻辑器件的硬件插补电路包括微处理器1、发出时钟信号的晶振电路9和可编程逻辑器件,微处理器1连接可编程逻辑器件并采用并行传送方式发送控制信息给可编程逻辑器件,可编程逻辑器件将控制信号转化为控制电机驱动器的串行控制信号,可编程逻辑器件包括多路选择器2,其还包括若干双缓冲同步电路模块、若干等脉宽DDA算法模块5和8、三态控制逻辑模块12和插补周期生成模块;所述双缓冲同步电路模块由第一缓冲器3和第二缓冲器4串联组成,所述第一缓冲器3连接所述多路选择器2,所述第二缓冲器4连接等脉宽DDA算法模块5,所述三态控制逻辑模块12连接所述多路选择器2,所述插补周期生成模块连接所述等脉宽DDA算法模块5。As shown in Fig. 1, the hardware interpolation circuit based on the programmable logic device of the present invention comprises microprocessor 1, crystal oscillator circuit 9 and programmable logic device that send clock signal, and microprocessor 1 connects programmable logic device and adopts parallel The transmission mode sends the control information to the programmable logic device, and the programmable logic device converts the control signal into a serial control signal for controlling the motor driver. The programmable logic device includes a multiplexer 2, which also includes a number of double-buffered synchronous circuit modules, Several equal pulse width DDA algorithm modules 5 and 8, tri-state control logic module 12 and interpolation cycle generating module; the double-buffer synchronous circuit module is composed of the first buffer 3 and the second buffer 4 in series, the first The buffer 3 is connected to the multiplexer 2, the second buffer 4 is connected to the equal pulse width DDA algorithm module 5, the tri-state control logic module 12 is connected to the multiplexer 2, and the interpolation period The generating module is connected to the equal pulse width DDA algorithm module 5 .

上述电路中,所述的双缓冲同步电路模块和等脉宽DDA算法模块5至少是一个;In above-mentioned circuit, described double-buffer synchronous circuit module and equal pulse width DDA algorithm module 5 are at least one;

在本电路中,所述等脉宽DDA算法模块5是数字积分电路,其输出频率均匀,等占空比的控制脉冲;所述插补周期生成模块由分频器10和连接分频器10的计数器11组成,其产生的脉冲周期决定电路等脉宽数字积分算法插补周期,通过改变所述计数器数据位数,可设置插补脉冲的周期及占空比。In this circuit, the equal pulse width DDA algorithm module 5 is a digital integration circuit, and its output frequency is uniform, and the control pulse of the equal duty cycle; the interpolation period generation module is composed of a frequency divider 10 and a frequency divider 10 connected Composed of a counter 11, the pulse period generated by it determines the interpolation period of the pulse width digital integration algorithm of the circuit, and the period and duty cycle of the interpolation pulse can be set by changing the number of bits of the counter data.

本实用新型接收微处理器通过粗插补计算后得到的一个插补周期内各轴进给量,将其转化成频率均匀、等占空比的进给脉冲,输出给各轴的电机驱动器。The utility model receives the feed amount of each axis in an interpolation cycle obtained by the microprocessor through rough interpolation calculation, converts it into a feed pulse with uniform frequency and equal duty cycle, and outputs it to the motor driver of each axis.

为实现上述目的,基于超高速硬件描述语言(Very High Speed IntegratedCircuit Hardware Description Language),利用复杂可编程逻辑器件(CPLD)或现场门阵列(FPGA)实现硬件插补器电路,将插补功能设计成一个标准模块,其移植性强,提高了处理速度,而且减小了硬件电路的面积,保证了系统的可靠性,同时可以对其升级,从而实现完全的开放和可重构。In order to achieve the above purpose, based on the Very High Speed Integrated Circuit Hardware Description Language, the hardware interpolator circuit is realized by using complex programmable logic device (CPLD) or field gate array (FPGA), and the interpolation function is designed as A standard module has strong portability, improves the processing speed, reduces the area of the hardware circuit, ensures the reliability of the system, and can be upgraded at the same time, so as to realize complete openness and reconfigurability.

如图1所示,以二轴为例,微处理器1发送来的X轴、Y轴数据经过多路选择器2送入各自的X轴第一缓冲器3和Y轴第一缓冲器6,同时置标志位FLAGX=‘1’、FLAGY=‘1’(1表示缓冲器有数据,‘0’表示空),判断X轴、Y轴缓冲器标志位FLAG_B是否为‘0’,为‘0’则将X轴和Y轴的第一缓冲器3和6中的数据送到各自的第二缓冲器4和7,同时置标志位FLAG_B=‘1’,FLAGX=‘0’、FLAGY=‘0’。FLAG_B=‘1’用于同步判断,表示各轴数据已经准备好,下一步在插补周期EN的上升沿将X、Y轴数据送入各自的等脉宽DDA模块5和8中,同时FLAG_B=‘0’。等脉宽DDA模块经过插补计算,将数据转化成频率均匀、等占空比的进给脉冲PULSEX、PULSEY,同时将数据位的最高位作为电机的方向信号DIRX、DIRY,输出给X轴和Y轴的电机驱动器。可编程逻辑器件中还有一个三态控制逻辑模块,一个插补周期EN生成模块。三态控制逻辑模块作用是传递数据和返回状态信号给处理器,状态信号用于判断数据是否已经发送到各自的缓冲区中。插补周期EN生成模块作用是生成固定的插补周期信号。As shown in Figure 1, taking two axes as an example, the X-axis and Y-axis data sent by the microprocessor 1 are sent to the respective X-axis first buffer 3 and Y-axis first buffer 6 through the multiplexer 2 , and set flags FLAGX='1' and FLAGY='1' at the same time (1 means that the buffer has data, '0' means empty), and judge whether the X-axis and Y-axis buffer flags FLAG_B are '0', which is ' 0', the data in the first buffers 3 and 6 of the X-axis and Y-axis are sent to the respective second buffers 4 and 7, and the flag bits FLAG_B='1', FLAGX='0', FLAGY= '0'. FLAG_B='1' is used for synchronous judgment, indicating that the data of each axis is ready, and the next step is to send the X and Y axis data to the respective equal pulse width DDA modules 5 and 8 at the rising edge of the interpolation cycle EN, and FLAG_B = '0'. The equal pulse width DDA module converts the data into feed pulses PULSEX and PULSEY with uniform frequency and equal duty ratio through interpolation calculation, and at the same time, the highest bit of the data bit is used as the direction signal DIRX and DIRY of the motor, and is output to the X axis and Motor driver for the Y axis. There is also a three-state control logic module and an interpolation period EN generation module in the programmable logic device. The role of the three-state control logic module is to transmit data and return status signals to the processor, and the status signals are used to determine whether the data has been sent to their respective buffers. The function of the interpolation period EN generation module is to generate a fixed interpolation period signal.

在图1中有输入信号,输出信号,双向信号和内部信号,其分别为:In Figure 1, there are input signals, output signals, bidirectional signals and internal signals, which are:

输入信号  时钟信号:CLKInput signal Clock signal: CLK

全局复位信号:RESETGlobal reset signal: RESET

片选信号:CSChip select signal: CS

地址选择信号0:A0Address selection signal 0: A0

地址选择信号1:A1Address selection signal 1: A1

读信号:RDRead signal: RD

写信号:WRWrite signal: WR

输出信号  X轴的脉冲信号:PULSEXOutput signal X-axis pulse signal: PULSEX

X轴的方向信号:DIRXThe direction signal of the X axis: DIRX

Y轴的脉冲信号:PULSEYPulse signal of Y axis: PULSEY

Y轴的方向信号:DIRYDirection signal of the Y axis: DIRY

双向信号数据输入输出信号:DATABidirectional signal data input and output signal: DATA

内部信号时钟分频信号:CLK_SIG_OUTInternal signal clock frequency division signal: CLK_SIG_OUT

固定时间生成信号:ENGenerate signal at fixed time: EN

数据输入信号:DATAINData input signal: DATAIN

经一级缓存后X轴的状态标志位:FLAGXThe status flag of the X-axis after the first-level cache: FLAGX

经锁存后送入X轴的数据:D_SIGXThe data sent to the X axis after being latched: D_SIGX

经二级缓存后的状态标志位:FLAG_BStatus flag bit after L2 cache: FLAG_B

经一级缓存后送入X轴的数据:D_BUFXThe data sent to the X-axis after the first-level cache: D_BUFX

经二级缓存后送入X轴的数据:D_OUTXThe data sent to the X-axis after the second-level cache: D_OUTX

经一级缓存后Y轴的状态标志位:FLAGYThe status flag of the Y axis after the first-level cache: FLAGY

经锁存后送入Y轴的数据:D_SIGYThe data sent to the Y axis after being latched: D_SIGY

经一级缓存后送入Y轴的数据:D_BUFYThe data sent to the Y axis after the first-level cache: D_BUFY

经二级缓存后送入Y轴的数据:D_OUTYThe data sent to the Y axis after the second-level cache: D_OUTY

在图1所示的逻辑原理框图中,以二轴为例,设定DATAIN为8位二进制数,其中最高位DATAIN[7]为方向位,DATAIN[6..0]为数据位。CLK信号由外部晶振产生,也可以由微处理器送出。EN用于设定固定时间,它的脉冲宽度由计数器设定,通过改变计数器数据位数,可以灵活的改变EN的周期及占空比。CS、A0及A1由微处理器给定,当“A1&A0”<=“00”时,输入数据“DATAIN”送入X轴缓冲器,“A1&A0”<=“01”时,输入数据“DATAIN”送入Y轴缓冲器。在开始时,送入X轴缓冲器的数据是“10010000”,送入Y轴缓冲器的数据是“00010100”,在规定的EN周期时间内,X轴脉冲输出“PULSEX”输出的脉冲个数是“0010000”,即十进制的16,Y轴脉冲输出“PULSEY”输出的脉冲个数是“0010100”  即十进制的20,且脉冲输出均匀。因为设定脉冲方向位为数据位的最高位,所以“DIRX”<=‘1’,“DIRY”<=‘0’,“DIRX”显示为高电平,“DIRY”显示为低电平。通过改变输入数据“DATAIN”的值,可以改变X轴、Y轴的输出脉冲个数及方向。通过设定地址位“A1&A0”<=“10”,“A1&A0”<=“11”可以实现3轴、4轴等同时联动,如控制轴数大于4,只要相应的扩展地址位即可。In the logical block diagram shown in Figure 1, taking the two axes as an example, set DATAIN to be an 8-bit binary number, where the highest bit DATAIN[7] is the direction bit, and DATAIN[6..0] is the data bit. The CLK signal is generated by an external crystal oscillator, and can also be sent by a microprocessor. EN is used to set a fixed time. Its pulse width is set by the counter. By changing the number of counter data bits, the period and duty cycle of EN can be flexibly changed. CS, A0 and A1 are given by the microprocessor. When "A1&A0"<="00", the input data "DATAIN" is sent to the X-axis buffer. When "A1&A0"<="01", the input data "DATAIN" Feed into the Y-axis buffer. At the beginning, the data sent to the X-axis buffer is "10010000", and the data sent to the Y-axis buffer is "00010100". Within the specified EN cycle time, the X-axis pulse outputs the number of pulses output by "PULSEX" It is "0010000", which is 16 in decimal, and the number of pulses output by the Y-axis pulse output "PULSEY" is "0010100", which is 20 in decimal, and the pulse output is uniform. Because the pulse direction bit is set as the highest bit of the data bit, "DIRX"<='1', "DIRY"<='0', "DIRX" is displayed as high level, and "DIRY" is displayed as low level. By changing the value of the input data "DATAIN", the number and direction of the output pulses of the X-axis and Y-axis can be changed. By setting the address bits "A1&A0"<="10" and "A1&A0"<="11", simultaneous linkage of 3 axes and 4 axes can be realized. If the number of controlled axes is more than 4, only the corresponding extended address bits are sufficient.

本实用新型利用可编程逻辑器件实现硬件插补器电路,将插补功能设计成一个标准模块,结构简单、无分立元件、逻辑修改方便、抗干扰性能强。The utility model utilizes a programmable logic device to realize a hardware interpolator circuit, and the interpolation function is designed as a standard module. The utility model has the advantages of simple structure, no discrete components, convenient logic modification and strong anti-interference performance.

其采用硬件等时间插补,插补的脉冲数目在一个插补周期里发完。同传统的硬件插补器相比,采用等时间插补,对数据的连续性和同步要求比较高,而传统的硬件插补器接收上位机软件发送的速度、起点和终点坐标后进行插补运算,插补结束后采用中断或轮询的方式通知上位机进行下一次插补操作。It adopts hardware equal-time interpolation, and the number of interpolated pulses is sent out in one interpolation cycle. Compared with the traditional hardware interpolator, the use of equal time interpolation has higher requirements for data continuity and synchronization, while the traditional hardware interpolator performs interpolation after receiving the speed, starting point and end point coordinates sent by the host computer software After the interpolation is completed, the host computer is notified to perform the next interpolation operation by means of interrupt or polling.

本电路采用双缓冲结构,数据传输连续、可靠,速度快,无需中断控制,减轻了软件的工作量。同步功能用于判断各轴的数据是否已经接收完,接收完毕后一起输出到电机驱动器,这样可以准确的控制多轴电机同步运行。This circuit adopts a double buffer structure, the data transmission is continuous, reliable, fast, without interrupt control, which reduces the workload of the software. The synchronization function is used to judge whether the data of each axis has been received, and output to the motor driver together after receiving, so that the synchronous operation of multi-axis motors can be accurately controlled.

采用等脉宽DDA算法,通过先将数据移位,进行×2操作后,再经过传统DDA插补计算后输出频率均匀、等占空比的脉冲频率。实现简单,消除了脉冲的截断误差。Using the equal pulse width DDA algorithm, the data is shifted first, and then the ×2 operation is performed, and then the pulse frequency with uniform frequency and equal duty cycle is output after the traditional DDA interpolation calculation. The realization is simple, and the truncation error of the pulse is eliminated.

Claims (4)

1、一种基于可编程逻辑器件的硬件插补电路,包括微处理器、发出时钟信号的晶振电路和可编程逻辑器件,微处理器连接可编程逻辑器件并采用并行传送方式发送控制信息给可编程逻辑器件,可编程逻辑器件将控制信号转化为控制电机驱动器的串行控制信号,可编程逻辑器件包括多路选择器,其特征在于:可编程逻辑器件还包括若干双缓冲同步电路模块、若干等脉宽DDA算法模块、三态控制逻辑模块和插补周期生成模块;所述双缓冲同步电路模块由第一缓冲器和第二缓冲器串联组成,所述第一缓冲器连接所述多路选择器,所述第二缓冲器连接所述等脉宽DDA算法模块,所述三态控制逻辑模块连接所述多路选择器,所述插补周期生成模块连接所述等脉宽DDA算法模块。1. A hardware interpolation circuit based on a programmable logic device, including a microprocessor, a crystal oscillator circuit that sends a clock signal, and a programmable logic device. The microprocessor is connected to the programmable logic device and uses parallel transmission to send control information to the programmable logic device. Programmable logic device, the programmable logic device converts the control signal into a serial control signal for controlling the motor driver, the programmable logic device includes a multiplexer, and it is characterized in that: the programmable logic device also includes several double buffer synchronous circuit modules, several Equal pulse width DDA algorithm module, three-state control logic module and interpolation cycle generation module; the double buffer synchronous circuit module is composed of a first buffer and a second buffer connected in series, and the first buffer is connected to the multi-channel selector, the second buffer is connected to the equal-pulse width DDA algorithm module, the tri-state control logic module is connected to the multiplexer, and the interpolation cycle generation module is connected to the equal-pulse width DDA algorithm module . 2、根据权利要求1所述的基于可编程逻辑器件的硬件插补电路,其特征在于:所述双缓冲同步电路模块和等脉宽DDA算法模块至少是一个。2. The hardware interpolation circuit based on programmable logic device according to claim 1, characterized in that there is at least one double-buffer synchronous circuit module and equal pulse width DDA algorithm module. 3、根据权利要求1所述的基于可编程逻辑器件的硬件插补电路,其特征在于:所述等脉宽DDA算法模块是数字积分电路,其输出频率均匀,等占空比的控制脉冲。3. The hardware interpolation circuit based on programmable logic devices according to claim 1, characterized in that: the equal pulse width DDA algorithm module is a digital integration circuit, which outputs control pulses with uniform frequency and equal duty cycle. 4、根据权利要求1所述的基于可编程逻辑器件的硬件插补电路,其特征在于:所述插补周期生成模块由分频器和连接分频器的计数器组成,其输出的周期脉冲输入等脉宽DDA算法模块。4. The hardware interpolation circuit based on programmable logic devices according to claim 1, characterized in that: the interpolation cycle generation module is composed of a frequency divider and a counter connected to the frequency divider, and the output cycle pulse input Equal pulse width DDA algorithm module.
CNU2007201991666U 2007-12-12 2007-12-12 Hardware Interpolation Circuit Based on Programmable Logic Device Expired - Lifetime CN201110962Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2007201991666U CN201110962Y (en) 2007-12-12 2007-12-12 Hardware Interpolation Circuit Based on Programmable Logic Device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2007201991666U CN201110962Y (en) 2007-12-12 2007-12-12 Hardware Interpolation Circuit Based on Programmable Logic Device

Publications (1)

Publication Number Publication Date
CN201110962Y true CN201110962Y (en) 2008-09-03

Family

ID=39895500

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2007201991666U Expired - Lifetime CN201110962Y (en) 2007-12-12 2007-12-12 Hardware Interpolation Circuit Based on Programmable Logic Device

Country Status (1)

Country Link
CN (1) CN201110962Y (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347057A (en) * 2011-08-09 2012-02-08 北京时代全芯科技有限公司 Clock tree structure used for data path and memory with it
CN103757813A (en) * 2014-01-16 2014-04-30 常熟理工学院 Control system of circular knitting machine
CN110536512A (en) * 2019-09-12 2019-12-03 洛阳银杏科技有限公司 Multi-channel control data buffer device, LED multi-path control system and control method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347057A (en) * 2011-08-09 2012-02-08 北京时代全芯科技有限公司 Clock tree structure used for data path and memory with it
CN103757813A (en) * 2014-01-16 2014-04-30 常熟理工学院 Control system of circular knitting machine
CN103757813B (en) * 2014-01-16 2016-06-01 常熟理工学院 A kind of knitting circular knitting machine Controlling System
CN110536512A (en) * 2019-09-12 2019-12-03 洛阳银杏科技有限公司 Multi-channel control data buffer device, LED multi-path control system and control method
CN110536512B (en) * 2019-09-12 2022-03-29 洛阳银杏科技有限公司 Data buffer device for multipath control, multipath LED control system and control method

Similar Documents

Publication Publication Date Title
CN104866452B (en) Multi-serial extension method based on FPGA and TL16C554A
CN103117732B (en) Multi-channel video pulse signal generation device and method
CN115080494B (en) SPI slave circuit, SPI communication method, interface and chip
CN103095289B (en) Signal delay control circuit
CN1232031C (en) High-precision optional waveform generator based on FPGA
JP3995142B2 (en) Semiconductor integrated circuit
CN101458511A (en) Hardware interpolation method based on programmable logic device
CN201110962Y (en) Hardware Interpolation Circuit Based on Programmable Logic Device
CN104216462B (en) Large-dynamic and high-precision programmable time delay device based on FPGA (field programmable gate array)
CN201138446Y (en) A Reconfigurable Motion Controller
US5640585A (en) State machine bus controller
Li et al. Research on improvement of configurable I2C controller IP core
CN103795402B (en) Synchronization frequency division circuit
CN102957426B (en) A kind of adaptive circuit of program-controlled rotary encoder
CN117733365A (en) Laser cutting system and method with synchronous position output function
CN212112456U (en) Downloading device for FPGA configuration file
CN111563056A (en) Downloading device for FPGA configuration file
US5828872A (en) Implementation of high speed synchronous state machines with short setup and hold time signals
CN203673293U (en) Position measuring and controlling device
CN100370383C (en) Flexible Digital Motion Control System
CN206282270U (en) A kind of processor
CN118017998B (en) Frequency division clock switching circuit without burr and zero time delay
CN203482180U (en) Communication interface synchronization circuit
CN117991867B (en) Access clock control circuit of ONFI physical layer
CN203133570U (en) ARM and FPGA-based control apparatus for numerical control machine tool

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20080903