CN107797950A - A kind of real-time reading circuit of encoder - Google Patents
A kind of real-time reading circuit of encoder Download PDFInfo
- Publication number
- CN107797950A CN107797950A CN201610733863.9A CN201610733863A CN107797950A CN 107797950 A CN107797950 A CN 107797950A CN 201610733863 A CN201610733863 A CN 201610733863A CN 107797950 A CN107797950 A CN 107797950A
- Authority
- CN
- China
- Prior art keywords
- circuit
- encoder
- real
- time reading
- reading 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0002—Serial port, e.g. RS232C
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/38—Universal adapter
- G06F2213/3852—Converter between protocols
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Analogue/Digital Conversion (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Liquid Crystal Display Device Control (AREA)
Abstract
A kind of real-time reading circuit of encoder, suitable for the communications field.Reading circuit is turned normal signal circuit, LCD1602 configuration circuits and serial communication configuration circuit and formed by voltage conversion circuit, the main string pattern configuration circuits of spartan6, differential signal.Circuit structure is compact, small volume, working stability, and adaptability is good, improves operating efficiency, low in energy consumption, and has good anti-interference and reliability, can obtain stable angle value output.
Description
Art
The present invention relates to a kind of real-time reading circuit of encoder, suitable for the communications field.
Background technology
Encoder is to work out signal or data, be converted to the signal form that can be used to communicate, transmit and store
Coding.So as to detect the speed of mechanical movement, position, angle, distance or counting.In addition to being used in machinery, many motors
Control such as servo motor is both needed to be equipped with encoder so that motor controller is as commutation.Photoelectric encoder is will by opto-electronic conversion
Geometric displacement amount on output shaft is converted to the sensor of pulse or digital quantity.This is to apply most sensors, photoelectricity at present
Encoder is made up of grating disc and photoelectric detection system.Grating disc is coaxial with motor, when motor rotates, grating disc and electricity
Motivation rotates at the same speed, and the detection means formed through electronic components such as light emitting diodes detects some pulse signals, passes through calculating
The number of photoelectric encoder output pulse per second can just reflect the rotating speed of current motor.
In recent years, photoelectric encoder is as a kind of high-precision angle measurement, tachogenerator, in electro-optic theodolite, numerical control
The automatic measurements such as lathe, industry, bioscience and control field extensive use.Photoelectric encoder is in modern electrical machine control system
In be usually used in detect rotor Position And Velocity, be that the geometry of machinery displacement on output shaft is converted into by arteries and veins by opto-electronic conversion
Punching or the high precision angle measurement sensor of digital quantity.Use to encoder at present is mostly that encoder data is directly defeated
People's computer is handled, display.Although this method implements simply, application is relatively cumbersome, at any time
It is required for transferring data to computer, adds extra cost, transplanting is also more difficult.
As the development of research department's small lot war production is, it is necessary to the external coordination device such as volume procurement encoder.For convenience of inspection
The encoder of buying is tested, ensures being timely completed for production task, the real-time reading circuit plate of one encoder of design is necessary.
Encoder is needed to read in real time on the platform of angle value in addition, it can also be arranged on.
The content of the invention
The present invention provides a kind of real-time reading circuit of encoder, and circuit structure is compact, small volume, working stability, adaptability
It is good, operating efficiency is improved, it is low in energy consumption, and there is good anti-interference and reliability, it is defeated that stable angle value can be obtained
Go out.
The technical solution adopted in the present invention is.
The real-time reading circuit of encoder is turned by voltage conversion circuit, the main string pattern configuration circuits of spartan6, differential signal
Normal signal circuit, LCD1602 configuration circuits and serial communication configuration circuit composition.
The voltage conversion circuit uses the XC6SLX9 of the spartan6 series of Xilinx companies as controller, with 50
M crystal oscillator CRYSTAL provides clock signal for it.The FPGA of spartan6 series has batch should for what Xilinx companies newly released
With the FPGA device of, least cost, using 45nm low-power consumption process for copper, best balance is reached in cost, performance and power consumption.
Because XC6SLX9-TQG144 needs to use 3.3 V and 1.2 V power supplies, with buck converter by 5V voltage conversions to required electricity
Pressure, so having used LT1764EQ and LT1764EQ3.3 decompression chips.
In the main string pattern configuration circuits of spartan6, FPGA be based on SRAM techniques, so after power down, FPGA
White tiles is reverted to, internal logic disappears, and this causes us the application of circuit board to be very limited.In order that FPGA can make repeatedly
With, it is necessary to configure a chip external memory for FPGA with save routine, this circuit board employs XCF04S PROM with master
String pattern configures to FPGA.
The incremental encoder that the differential signal turns the use of normal signal circuit is the CHOS systems of BEI-IDEACOD companies
Row.Its output uses difference output mode, so having added DS26LV32ATM differential signal to turn letter by ordinary in circuit board
Number chip, the signal after changing exports into 3.3 V, can be directly connected on FPGA pin, and wherein differential pair A+, A- are corresponding
BM2_ DATAO, differential pair B+, B- correspond to BM2_DATAl, and differential pair Z+, Z- correspond to BM2_DATA2.
The A of incremental encoder used by the LCD1602 configuration circuits, B two-phases rotate a circle in encoder all can
Export 8192 kinds of square-wave pulses;And absolute value encoder is all 13 data of output, so rotate a circle also can be defeated for encoder
8192 kinds of states, therefore used encoder corresponds to 8192 kinds of states in rotating a circle.Decimal point is counted in, plus ten
Position, hundred, so angle value at most accounts for 14, so the LCD MODULE that the character of a line 16 is employed in circuit design is enough
Meet that angle value shows needs.Conventional 1602 Liquid Crystal Modules for 3.3 V power supplies are used in circuit design.1602 Liquid Crystal Modules
It has been internally integrated character and memory (CGROM), 160 different dot character figures of its storage inside occurs.Due to using
3.3 V power, and directly can be connected with FPGA.
The serial communication configuration circuit has added a serial port module, because the serial ports level value of PC is+12~12 V,
And FPGA level is 0~+3.3 V.It must be carried out during hardware circuit design with electrical level transferring chip between both level
Conversion.A MAX3232CSE conversion chip has been used on circuit board.
The beneficial effects of the invention are as follows:Circuit structure is compact, small volume, working stability, and adaptability is good, improves work effect
Rate, it is low in energy consumption, and there is good anti-interference and reliability, stable angle value output can be obtained.
Brief description of the drawings
The present invention is further described with reference to the accompanying drawings and examples.
Fig. 1 is the voltage conversion circuit of the present invention.
Fig. 2 is the main string pattern configuration circuits of spartan6 of the present invention.
The differential signal that Fig. 3 is the present invention turns normal signal circuit.
Fig. 4 is the LCD1602 configuration circuits of the present invention.
Fig. 5 is the serial communication configuration circuit of the present invention.
Embodiment
The invention will be further described with reference to the accompanying drawings and examples.
Such as Fig. 1, voltage conversion circuit, as controller, is used using the XC6SLX9 of the spartan6 series of Xilinx companies
50 M crystal oscillator CRYSTAL provides clock signal for it.The FPGA of spartan6 series is having batch of newly releasing of Xilinx companies
Amount application, the FPGA device of least cost, using 45nm low-power consumption process for copper, reach best in cost, performance and power consumption
Balance.Because XC6SLX9-TQG144 needs to use 3.3 V and 1.2 V power supplies, with buck converter by 5V voltage conversions extremely
Required voltage, so having used LT1764EQ and LT1764EQ3.3 decompression chips.
Such as Fig. 2, in the main string pattern configuration circuits of spartan6, FPGA be based on SRAM techniques, so after power down,
FPGA reverts to white tiles, and internal logic disappears, and this causes us the application of circuit board to be very limited.In order that FPGA can be anti-
It is multiple to use, it is necessary to configure a chip external memory for FPGA with save routine, this circuit board employs XCF04S PROM
FPGA is configured with main string pattern.
Such as Fig. 3, the incremental encoder that differential signal turns the use of normal signal circuit is the CHOS of BEI-IDEACOD companies
Series.Its output uses difference output mode, so having added DS26LV32ATM differential signal to turn common in circuit board
The chip of signal, the signal after changing are exported into 3.3 V, can be directly connected on FPGA pin, wherein differential pair A+, A- pairs
BM2_ DATAO are answered, differential pair B+, B- correspond to BM2_DATAl, and differential pair Z+, Z- correspond to BM2_DATA2.
Such as Fig. 4, the A of incremental encoder, B two-phases rotate a circle all in encoder used by LCD1602 configuration circuits
8192 kinds of square-wave pulses can be exported;And absolute value encoder is all 13 data of output, so rotate a circle also can be defeated for encoder
8192 kinds of states, therefore used encoder corresponds to 8192 kinds of states in rotating a circle.Decimal point is counted in, plus ten
Position, hundred, so angle value at most accounts for 14, so the LCD MODULE that the character of a line 16 is employed in circuit design is enough
Meet that angle value shows needs.Conventional 1602 Liquid Crystal Modules for 3.3 V power supplies are used in circuit design.1602 Liquid Crystal Modules
It has been internally integrated character and memory (CGROM), 160 different dot character figures of its storage inside occurs.Due to using
3.3 V power, and directly can be connected with FPGA.
Such as Fig. 5, serial communication configuration circuit has added a serial port module, because the serial ports level value of PC is+12~12
V, and FPGA level is 0~+3.3 V.It must be carried out during hardware circuit design with electrical level transferring chip between both level
Conversion.A MAX3232CSE conversion chip has been used on circuit board.
Claims (8)
1. a kind of real-time reading circuit of encoder, it is characterized in that:The real-time reading circuit of described encoder by voltage conversion circuit,
The main string pattern configuration circuits of spartan6, differential signal turn normal signal circuit, LCD1602 configuration circuits and serial communication configuration
Circuit forms.
2. the real-time reading circuit of a kind of encoder according to claim 1, it is characterized in that:The voltage conversion circuit uses
The XC6SLX9 of the spartan6 series of Xilinx companies provides clock for it with 50M crystal oscillator CRYSTAL and believed as controller
Number.
3. the real-time reading circuit of a kind of encoder according to claim 1, it is characterized in that:Described voltage conversion circuit
Need to use 3.3 V and 1.2 V power supplies using XC6SLX9-TQG144, with buck converter by 5V voltage conversions to required electricity
Pressure, so having used LT1764EQ and LT1764EQ3.3 decompression chips.
4. the real-time reading circuit of a kind of encoder according to claim 1, it is characterized in that:The main string moulds of described spartan6
The PROM that formula configuration circuit employs an XCF04S is configured with main string pattern to FPGA.
5. the real-time reading circuit of a kind of encoder according to claim 1, it is characterized in that:The differential signal turns letter by ordinary
The incremental encoder that number circuit uses is the CHOS series of BEI-IDEACOD companies, and its output uses difference output mode.
6. the real-time reading circuit of a kind of encoder according to claim 1, it is characterized in that:The differential signal turns common
DS26LV32ATM differential signal has been added to turn the chip of normal signal in signal circuit, the signal after changing is defeated into 3.3 V
Go out, can be directly connected on FPGA pin, wherein differential pair A+, A- corresponds to BM2_ DATAO, and differential pair B+, B- correspond to BM2_
DATAl, differential pair Z+, Z- correspond to BM2_DATA2.
7. the real-time reading circuit of a kind of encoder according to claim 1, it is characterized in that:The LCD1602 configuration circuits
The A of used incremental encoder, B two-phase rotate a circle in encoder can all export 8192 kinds of square-wave pulses.
8. the real-time reading circuit of a kind of encoder according to claim 1, it is characterized in that:The serial communication configuration circuit
A serial port module is added, and the conversion between both level is carried out using electrical level transferring chip, one has been used on circuit board
MAX3232CSE conversion chips.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610733863.9A CN107797950A (en) | 2016-08-28 | 2016-08-28 | A kind of real-time reading circuit of encoder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610733863.9A CN107797950A (en) | 2016-08-28 | 2016-08-28 | A kind of real-time reading circuit of encoder |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107797950A true CN107797950A (en) | 2018-03-13 |
Family
ID=61527698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610733863.9A Pending CN107797950A (en) | 2016-08-28 | 2016-08-28 | A kind of real-time reading circuit of encoder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107797950A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116069703A (en) * | 2023-03-31 | 2023-05-05 | 成都思越智能装备股份有限公司 | Encoder communication mode conversion device and method |
CN117249846A (en) * | 2023-11-17 | 2023-12-19 | 浙江明哲电子科技有限公司 | Encoder pre-decoding processing method, system and storage medium |
-
2016
- 2016-08-28 CN CN201610733863.9A patent/CN107797950A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116069703A (en) * | 2023-03-31 | 2023-05-05 | 成都思越智能装备股份有限公司 | Encoder communication mode conversion device and method |
CN116069703B (en) * | 2023-03-31 | 2023-05-30 | 成都思越智能装备股份有限公司 | Encoder communication mode conversion device and method |
CN117249846A (en) * | 2023-11-17 | 2023-12-19 | 浙江明哲电子科技有限公司 | Encoder pre-decoding processing method, system and storage medium |
CN117249846B (en) * | 2023-11-17 | 2024-02-09 | 浙江明哲电子科技有限公司 | Encoder pre-decoding processing method, system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102758615A (en) | High-accuracy smart dual-core well depth measuring device | |
CN103776366B (en) | A kind of excitation of sine and cosine resolver with resolve integrated apparatus | |
CN204301754U (en) | Gear rotary encoder | |
CN206224181U (en) | A kind of multiple-axis servo drive system position feedback data interface card based on FPGA | |
CN107797950A (en) | A kind of real-time reading circuit of encoder | |
CN205120037U (en) | A driftage measuring device and system for wind generating set | |
CN201174055Y (en) | Rotation speed measuring module | |
CN201138218Y (en) | Intelligent liquid flow meter | |
CN201364163Y (en) | High-precision magnetic encoder | |
CN201811969U (en) | Integrated anemoclinograph | |
CN200941053Y (en) | Device for converting mechanical reads of meter into digital electrical signals | |
CN102401665A (en) | Novel motor magnetic encoder | |
CN201060027Y (en) | Oil level, oil-water interface measurement mechanism | |
CN109115303B (en) | A conductive electronic water gauge and its remote monitoring system | |
CN208012710U (en) | A kind of low-consumption wireless level measuring terminal | |
CN204788428U (en) | Many rings of absolute encoder of magnetic induction | |
CN207396526U (en) | Air velocity transducer | |
CN203489914U (en) | A wind-driven generator parameter integrated monitoring apparatus based on a STD bus | |
CN203224724U (en) | Pulse laser ranging and timing device based on TDC-GP2 (time distance complexity-GP2) | |
CN104501791A (en) | Novel north seeker | |
CN105424121A (en) | Photoelectric direct-reading remote water meter capable of achieving instant power supply meter reading | |
CN204422016U (en) | A kind of intelligent water-level meter | |
CN202329653U (en) | Novel magnetic motor encoder | |
CN210426704U (en) | High-precision liquid level continuous measuring device | |
CN202300375U (en) | Drilling depth tester for roller-bit hole rig |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180313 |
|
WD01 | Invention patent application deemed withdrawn after publication |