CN213754484U - Pulse signal edge conversion circuit - Google Patents

Pulse signal edge conversion circuit Download PDF

Info

Publication number
CN213754484U
CN213754484U CN202023196697.4U CN202023196697U CN213754484U CN 213754484 U CN213754484 U CN 213754484U CN 202023196697 U CN202023196697 U CN 202023196697U CN 213754484 U CN213754484 U CN 213754484U
Authority
CN
China
Prior art keywords
circuit
resistor
chip
capacitor
pulse signal
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.)
Active
Application number
CN202023196697.4U
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.)
Shenzhen Xinlichuan Electric Co ltd
Original Assignee
Shenzhen Xinlichuan Electric 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 Shenzhen Xinlichuan Electric Co ltd filed Critical Shenzhen Xinlichuan Electric Co ltd
Priority to CN202023196697.4U priority Critical patent/CN213754484U/en
Application granted granted Critical
Publication of CN213754484U publication Critical patent/CN213754484U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

The utility model relates to a pulse signal border converting circuit. The pulse signal edge conversion circuit is applied to the field of stepping drivers and comprises a constant current circuit, an optical coupling isolation circuit, a shaping filter circuit, an edge switching circuit and an MCU circuit, wherein the MCU circuit adopts a TMS320F28035 control chip U1; the constant current circuit comprises triodes Q1-Q2, a diode D1, a capacitor C1 and resistors R1-R2; the optical coupling isolation circuit adopts an EL0631 optical coupling chip U2; the shaping filter circuit comprises a NOT gate U11B, a capacitor C2 and resistors R3-R4; the edge switching circuit includes an exclusive or gate chip U3 and a switch SW 1. The pulse signal edge conversion circuit provided by the application can realize the mode of switching pulse edge counting, and solves the problem of pulse accumulation error when some motion control cards control the stepping driver; when the problem of pulse accumulation errors is avoided, only one exclusive-OR gate chip U3 is used, the cost is low, the size is small, and the cost performance is high.

Description

Pulse signal edge conversion circuit
Technical Field
The utility model relates to a step driver technical field especially relates to a pulse signal border converting circuit.
Background
The pulse counting method has the advantages that the number of falling edges is counted when pulses are counted in a general stepping driver, but because a motion control card program made by a plurality of single-chip microcomputers in the market is not standard, when the stepping driver is controlled to run, pulse counting deviation can occur due to the problem of the pulse edges, and accumulated errors are caused.
SUMMERY OF THE UTILITY MODEL
The to-be-solved technical problem of the utility model is to provide a reduce pulse signal border converting circuit of pulse count error.
For realizing the purpose of the utility model, the utility model adopts the following technical scheme:
a pulse signal edge conversion circuit is applied to the field of stepping drivers and comprises a constant current circuit, an optical coupling isolation circuit, a shaping filter circuit, an edge switching circuit and an MCU circuit, wherein the MCU circuit adopts a TMS320F28035 control chip U1; the constant current circuit comprises triodes Q1-Q2, a diode D1, a capacitor C1 and resistors R1-R2; the optical coupling isolation circuit adopts an EL0631 optical coupling chip U2; the shaping filter circuit comprises a NOT gate U11B, a capacitor C2 and resistors R3-R4; the edge switching circuit includes an exclusive or gate chip U3 and a switch SW1, wherein,
an output end of an external pulse signal is respectively connected with one end of a capacitor C1, one end of a resistor R2 and one input end of the EL0631 optocoupler chip U2, the other output end of the external pulse signal is connected with a cathode of the diode D1, an anode of the diode D1 is respectively connected with the other end of the capacitor C1, an emitter of a triode Q1 and one end of a resistor R1, a base of the triode Q1 is respectively connected with the other end of the resistor R1 and the emitter of the triode Q2, a base of the triode Q2 is respectively connected with a collector of the triode Q1 and the other end of the resistor R2, and a collector of the triode Q2 is connected with the other input end of the EL0631 optocoupler chip U2;
an output end of the EL0631 optocoupler chip U2 is connected to one end of a resistor R3, one end of a resistor R4, and one end of a capacitor C2, the other end of the resistor R3 is connected to a 3.3V power supply terminal, the other end of the resistor R3 is grounded through a capacitor C3, the other end of the capacitor C2 is connected to the other end of the resistor R4 through a capacitor C4, the other end of the capacitor C2 is grounded, the other end of the resistor R4 is connected to one input end of the xor gate chip U3 through the not gate U11B, the other input end of the xor gate chip U3 is grounded through the switch SW1, one end of the switch SW1 is connected to the 3.3V power supply terminal through a resistor R5, and an output end of the xor gate chip U3 is connected to the TMS320F 35 control chip U1.
The pulse signal edge conversion circuit provided by the application can realize the mode of switching pulse edge counting, and solves the problem of pulse accumulation error when some motion control cards control the stepping driver; when the problem of pulse accumulation errors is avoided, only one exclusive-OR gate chip U3 is used, the cost is low, the size is small, and the cost performance is high.
Drawings
FIG. 1 is a schematic diagram of a circuit of an edge conversion circuit for a pulse signal according to an embodiment;
fig. 2 is a schematic circuit diagram of an MCU circuit in the pulse signal edge switching circuit of fig. 1.
Detailed Description
In order to facilitate understanding of the present invention, the present invention will be described more fully hereinafter with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. The invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Referring to fig. 1 and fig. 2, the embodiment provides a pulse signal edge conversion circuit, which is applied to the field of step drivers, and includes a constant current circuit, an optical coupling isolation circuit, a shaping filter circuit, an edge switching circuit, and an MCU circuit, where the MCU circuit uses a TMS320F28035 control chip U1; the constant current circuit comprises triodes Q1-Q2, a diode D1, a capacitor C1 and resistors R1-R2; the optical coupling isolation circuit adopts an EL0631 optical coupling chip U2; the shaping filter circuit comprises a NOT gate U11B, a capacitor C2 and resistors R3-R4; the edge switching circuit includes an exclusive or gate chip U3 and a switch SW 1.
An output end of an external pulse signal is respectively connected with one end of a capacitor C1, one end of a resistor R2 and one input end (IB + end) of an EL0631 optocoupler chip U2, the other output end of the external pulse signal is connected with a cathode of a diode D1, an anode of the diode D1 is respectively connected with the other end of the capacitor C1, an emitter of a triode Q1 and one end of a resistor R1, a base of the triode Q1 is respectively connected with the other end of a resistor R1 and an emitter of the triode Q2, a base of the triode Q2 is respectively connected with a collector of the triode Q1 and the other end of a resistor R2, and a collector of the triode Q2 is connected with the other input end (IB-end) of the EL0631 optocoupler chip U2.
An output end (OB end) of an EL0631 optical coupler chip U2 is respectively connected with one end of a resistor R3, one end of a resistor R4 and one end of a capacitor C2, the other end of the resistor R3 is connected with a 3.3V power supply end, the other end of a resistor R3 is grounded through a capacitor C3, the other end of a capacitor C2 is connected with the other end of a resistor R4 through a capacitor C4, the other end of the capacitor C2 is grounded, the other end of the resistor R4 is connected with an input end (B end) of an exclusive-or gate chip U3 through an NOT gate U11B, the other input end (A end) of the exclusive-or gate chip U3 is grounded through a switch SW1, one end of the switch SW1 is connected with a 3.3V power supply end through a resistor R5, and an output end of the exclusive-or gate chip U3
Figure BDA0002860537010000041
And is connected with a TMS320F28035 control chip U1.
The working principle of the pulse signal edge conversion circuit provided by the embodiment is as follows: external pulse signals are subjected to filtering and constant current processing by a constant current circuit, enter an EL0631 optical coupler chip U2, and are output from an OB end of the chip after being isolated; after passing through a pull-up resistor R3 and an RC filter circuit, the pulse is shaped by a NOT gate U11B; the shaped pulse enters an XOR gate chip U3, which is a one-way 2-input XOR gate chip U3, and when the switch SW1 is turned on, it turns on
Figure BDA0002860537010000042
The end output pulse is identical to the input pulseThen, the MS320F28035 is entered into a control chip U1 for counting, and the counting is carried out at the moment, the counting is carried out on the falling edge; when the switch SW1 is open, the output pulse is inverted from the input pulse and re-enters the MS320F28035 control chip U1, which is now a rising edge count.
The pulse signal edge conversion circuit provided by the embodiment can realize the problem of pulse accumulation errors when some motion control cards control the stepping driver by switching the mode of pulse edge counting; when the problem of pulse accumulation errors is avoided, only one exclusive-OR gate chip U3 is used, the cost is low, the size is small, and the cost performance is high.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only represent some embodiments of the present invention, and the description thereof is specific and detailed, but not to be construed as limiting the scope of the present invention. It should be noted that, for those skilled in the art, without departing from the spirit of the present invention, several variations and modifications can be made, which are within the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims (1)

1. A pulse signal edge conversion circuit is applied to the field of stepping drivers and is characterized by comprising a constant current circuit, an optical coupling isolation circuit, a shaping filter circuit, an edge switching circuit and an MCU circuit, wherein the MCU circuit adopts a TMS320F28035 control chip U1; the constant current circuit comprises triodes Q1-Q2, a diode D1, a capacitor C1 and resistors R1-R2; the optical coupling isolation circuit adopts an EL0631 optical coupling chip U2; the shaping filter circuit comprises a NOT gate U11B, a capacitor C2 and resistors R3-R4; the edge switching circuit includes an exclusive or gate chip U3 and a switch SW1, wherein,
an output end of an external pulse signal is respectively connected with one end of a capacitor C1, one end of a resistor R2 and one input end of the EL0631 optocoupler chip U2, the other output end of the external pulse signal is connected with a cathode of the diode D1, an anode of the diode D1 is respectively connected with the other end of the capacitor C1, an emitter of a triode Q1 and one end of a resistor R1, a base of the triode Q1 is respectively connected with the other end of the resistor R1 and the emitter of the triode Q2, a base of the triode Q2 is respectively connected with a collector of the triode Q1 and the other end of the resistor R2, and a collector of the triode Q2 is connected with the other input end of the EL0631 optocoupler chip U2;
an output end of the EL0631 optocoupler chip U2 is connected to one end of a resistor R3, one end of a resistor R4, and one end of a capacitor C2, the other end of the resistor R3 is connected to a 3.3V power supply terminal, the other end of the resistor R3 is grounded through a capacitor C3, the other end of the capacitor C2 is connected to the other end of the resistor R4 through a capacitor C4, the other end of the capacitor C2 is grounded, the other end of the resistor R4 is connected to one input end of the xor gate chip U3 through the not gate U11B, the other input end of the xor gate chip U3 is grounded through the switch SW1, one end of the switch SW1 is connected to the 3.3V power supply terminal through a resistor R5, and an output end of the xor gate chip U3 is connected to the TMS320F 35 control chip U1.
CN202023196697.4U 2020-12-25 2020-12-25 Pulse signal edge conversion circuit Active CN213754484U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202023196697.4U CN213754484U (en) 2020-12-25 2020-12-25 Pulse signal edge conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202023196697.4U CN213754484U (en) 2020-12-25 2020-12-25 Pulse signal edge conversion circuit

Publications (1)

Publication Number Publication Date
CN213754484U true CN213754484U (en) 2021-07-20

Family

ID=76837465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202023196697.4U Active CN213754484U (en) 2020-12-25 2020-12-25 Pulse signal edge conversion circuit

Country Status (1)

Country Link
CN (1) CN213754484U (en)

Similar Documents

Publication Publication Date Title
CN103346988B (en) A kind of FSK digital demodulator
CN208607658U (en) A kind of I2C level shifting circuit of adjustable logic level
CN213754484U (en) Pulse signal edge conversion circuit
CN104571263A (en) On-chip timer
CN108173537A (en) Restart circuit and electronic equipment
CN111934666A (en) Key circuit with system awakening function and specific function
CN112615609B (en) Reset circuit with automatic watchdog switching period
CN213846650U (en) Ramp ADC and TFT photosensitive sensor array reading chip
CN110442272A (en) A kind of driving circuit of infrared signal, processing circuit and infrared touch panel
CN112666384B (en) Sampling method of sampling circuit based on FPGA
CN214380870U (en) Multichannel PLC high-speed counting circuit
CN109088620B (en) PFM modulation circuit based on data control
CN216846390U (en) Pulse frequency calculation circuit
CN201184970Y (en) Embedded board for acquiring data of watercraft engine compartment
CN105959010A (en) Peak holding circuit
CN218124686U (en) Data transfer circuit and chip
CN202231702U (en) Control circuit of digital-to-analog converter
CN216449021U (en) Switching value input/output switching circuit of instrument
CN107358978B (en) Configurable device compatible with timing and performance counting
CN215954298U (en) RS-485 and RS-232 switching circuit sharing wiring terminal
CN220188983U (en) Level conversion and switching device based on CPLD
CN110048712A (en) Pulse generating device and chip including the pulse generating device
CN215186675U (en) Pulse width modulation signal conversion circuit
CN215499379U (en) Video decoding circuit based on video decoding chip
CN218782685U (en) Infrared remote control receiving circuit and socket panel

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant