CN100451886C - Feedback signal counting circuit of grating encoder - Google Patents
Feedback signal counting circuit of grating encoder Download PDFInfo
- Publication number
- CN100451886C CN100451886C CNB2006100165156A CN200610016515A CN100451886C CN 100451886 C CN100451886 C CN 100451886C CN B2006100165156 A CNB2006100165156 A CN B2006100165156A CN 200610016515 A CN200610016515 A CN 200610016515A CN 100451886 C CN100451886 C CN 100451886C
- Authority
- CN
- China
- Prior art keywords
- decoding scheme
- links
- digital signal
- signal processor
- logic door
- 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 - Fee Related
Links
Images
Abstract
A feedback signal counting circuit of grating coder is prepared as using counter in digital signal processor to count pulse outputted by grating coder and transmitting counted value to microcontroller by digital signal processor through control of internal circuit on programmable logic component.
Description
Technical field
The invention belongs to the servo control technique field, relate to the counting of a kind of position and velocity feedback element and read circuit.
Background technology
In the high-precision servo control system, usually will adopt resolution is that nano level grating encoder is as position and velocity feedback element, and be nano level grating encoder for resolution, utilize debating of d type flip flop sum counter composition to be difficult to the accurate counting of realization to grating to counting circuit, even best debates to counting circuit, the error of more than 100 code value is arranged also when static.
Summary of the invention
The object of the invention provides a kind of feedback signal counting circuit of grating encoder, utilizes the accurate counting of digital signal processor realization to high-resolution gration encoder feedback signal.
The present invention includes digital signal processor 1, programmable logic device (PLD) 2, microcontroller 3.Described programmable logic device (PLD) 2 inner structures comprise DSP decoding scheme 4, the first NOR-logic doors 5, latch 6, triple gate 7, the second NOR-logic doors 8, microcontroller decoding scheme 9; The capturing unit of digital signal processor 1 links to each other with the positive and negative pulse output end mutually of grating encoder, and the pulse of grating encoder output is counted; The address wire of digital signal processor 1, reading writing signal line, data bus link to each other with DSP decoding scheme 4, the first NOR-logic door 5, latch 6 respectively; DSP decoding scheme 4 links to each other with the first NOR-logic door 5, and the first NOR-logic door, 5 output terminals link to each other with latch 6; DSP decoding scheme 4 carries out address decoding, according to decoding address and read-write, and the first NOR-logic door, 5 output logic control signals, control figure signal processor 1 is delivered to count value on the data bus, deposits simultaneously in the latch 6.Microcontroller 3 data buss, reading writing signal line, address bus link to each other with triple gate 7, the second NOR-logic door 8, microcontroller decoding scheme 9 respectively, latch 6 links to each other with triple gate 7, microcontroller decoding scheme 9 links to each other with the second NOR-logic door 8, and the second NOR-logic door, 8 output terminals link to each other with triple gate 7; Microcontroller decoding scheme 9 carries out address decoding, and according to decoding address and read-write, the second NOR-logic door, 8 output logic control signals are opened triple gate 7, and the count value that latch is 6 li is read in microcontroller 3.
Beneficial effect: the present invention utilizes 1 pair of grating encoder of digital signal processor to count, and the counting precision height is nano level grating encoder for resolution, has only the error of 1~2 code value.The present invention is mainly used in the High Accuracy Control of servo-drive system.
Description of drawings
Fig. 1 is a structural representation of the present invention, also is Figure of abstract.1 is digital signal processor among the figure, 2 programmable logic device (PLD), and 3 microcontrollers, 4 is the DSP decoding scheme, 5 first NOR-logic doors, 6 latchs, 7 triple gates, 8 second NOR-logic doors, 9 microcontroller decoding schemes.
Embodiment
It is TMS320F240 that digital signal processor 1 of the present invention adopts model, and programmable logic device (PLD) 2 is selected the EPM7128 of ALTERA company for use, and microcontroller 3 is selected the PC104 computing machine for use.
The positive and negative phase pulse output end of grating encoder links to each other with QEP2 with the QEP1 of TMS320F240 digital signal processor 1,16 bit data bus of TMS320F240 digital signal processor 1 are assigned on the latch 6, high 2 bit address bus A14, A15 is assigned on the DSP decoding scheme 4, read-write/the IS of TMS320F240 digital signal processor 1 links to each other with the first NOR-logic door, 5 input ends with DSP decoding scheme 4 output terminals, and the first NOR-logic door, 5 output terminals link to each other with latch 6; 16 position datawires of PC104 computing machine are assigned on the triple gate 7, and 8 bit address lines are assigned on the PC104 decoding scheme, the PC104 computing machine read signal/SIOR, PC104 decoding scheme output terminal links to each other with the second NOR-logic door, 8 input ends.
The course of work of the present invention: the positive and negative phase pulse signal of grating encoder is input to the QEP1 and the QEP2 of TMS320F240 digital signal processor, debate to the circuit sum counter digital signal processor inside, just changeing the count value of hour counter when scrambler and progressively increasing, when the count value of scrambler counter-rotating hour counter is successively decreased.Carry out address decoding by DSP decoding scheme 4, and by I/O read-write/IS, digital signal processor was delivered to the count value of counter on the DSP data bus by the cycle of 800Hz, deposited in the latch simultaneously; Carry out address decoding by the PC104 decoding scheme, and the signal/SIOR that reads by PC104, by the cycle of 800Hz the count value in the latch is read in PC104.
Claims (3)
1, a kind of feedback signal counting circuit of grating encoder is characterized in that comprising digital signal processor (1), programmable logic device (PLD) (2), microcontroller (3); Described programmable logic device (PLD) (2) inner structure comprises DSP decoding scheme (4), the first NOR-logic door (5), latch (6), triple gate (7), the second NOR-logic door (8), microcontroller decoding scheme (9); The capturing unit of digital signal processor (1) links to each other with the positive and negative pulse output end mutually of grating encoder; The address wire of digital signal processor (1), reading writing signal line, data bus link to each other with DSP decoding scheme (4), the first NOR-logic door (5), latch (6) respectively; DSP decoding scheme (4) links to each other with the first NOR-logic door (5), and first NOR-logic door (5) output terminal links to each other with latch (6); Microcontroller (3) data bus, reading writing signal line, address bus link to each other with triple gate (7), the second NOR-logic door (8), microcontroller decoding scheme (9) respectively, latch (6) links to each other with triple gate (7), microcontroller decoding scheme (9) links to each other with the second NOR-logic door (8), and second NOR-logic door (8) output terminal links to each other with triple gate (7).
2, feedback signal counting circuit of grating encoder according to claim 1, it is characterized in that it is TMS320F240 that digital signal processor (1) adopts model, programmable logic device (PLD) (2) is selected the EPM7128 of ALTERA company for use, and microcontroller (3) is selected the PC104 computing machine for use.
3, feedback signal counting circuit of grating encoder according to claim 2 is characterized in that the positive and negative phase pulse output end of grating encoder links to each other with QEP2 with the QEP1 of TMS320F240 digital signal processor; 16 bit data bus of TMS320F240 digital signal processor are assigned on the latch, high 2 bit address bus A14, and A15 is assigned on the DSP decoding scheme, and the read-write/IS of TMS320F240 digital signal processor links to each other with the first NOR-logic door input end; 16 position datawires of PC104 computing machine are assigned on the triple gate, and 8 bit address lines are assigned on the PC104 decoding scheme, the PC104 computing machine read signal/SIOR, PC104 decoding scheme output terminal links to each other with the second NOR-logic door input end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100165156A CN100451886C (en) | 2006-01-12 | 2006-01-12 | Feedback signal counting circuit of grating encoder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100165156A CN100451886C (en) | 2006-01-12 | 2006-01-12 | Feedback signal counting circuit of grating encoder |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101000494A CN101000494A (en) | 2007-07-18 |
CN100451886C true CN100451886C (en) | 2009-01-14 |
Family
ID=38692491
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100165156A Expired - Fee Related CN100451886C (en) | 2006-01-12 | 2006-01-12 | Feedback signal counting circuit of grating encoder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100451886C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107544259B (en) * | 2017-10-20 | 2019-12-24 | 中国科学院长春光学精密机械与物理研究所 | Method and system for guiding servo control to realize rapid overshoot-free tracking |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5757536A (en) * | 1995-08-30 | 1998-05-26 | Sandia Corporation | Electrically-programmable diffraction grating |
CN2735301Y (en) * | 2004-05-20 | 2005-10-19 | 中国科学院长春光学精密机械与物理研究所 | Programmable logic array based absolute photoelectric shaft encoder decoding circuit |
CN2859607Y (en) * | 2006-01-12 | 2007-01-17 | 中国科学院长春光学精密机械与物理研究所 | Feedback signal counter for grating encoder |
-
2006
- 2006-01-12 CN CNB2006100165156A patent/CN100451886C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5757536A (en) * | 1995-08-30 | 1998-05-26 | Sandia Corporation | Electrically-programmable diffraction grating |
CN2735301Y (en) * | 2004-05-20 | 2005-10-19 | 中国科学院长春光学精密机械与物理研究所 | Programmable logic array based absolute photoelectric shaft encoder decoding circuit |
CN2859607Y (en) * | 2006-01-12 | 2007-01-17 | 中国科学院长春光学精密机械与物理研究所 | Feedback signal counter for grating encoder |
Also Published As
Publication number | Publication date |
---|---|
CN101000494A (en) | 2007-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101995533B (en) | Real-time wire-break detection method and system for digital incremental encoder | |
CN2859607Y (en) | Feedback signal counter for grating encoder | |
CN107360195A (en) | A kind of coder transitions device of EPA interface | |
CN102621921A (en) | Programmer for electric energy meters | |
CN103389892A (en) | Self-refreshing triple-modular redundancy counter | |
CN100451886C (en) | Feedback signal counting circuit of grating encoder | |
CN206224181U (en) | A kind of multiple-axis servo drive system position feedback data interface card based on FPGA | |
CN102843118A (en) | Quadrupling and sensing method and device for quadrature encoder | |
CN206554034U (en) | A kind of water conservancy gate openness measuring device | |
CN102497198B (en) | Double-edge-triggered Gray code counter | |
CN209230644U (en) | A kind of absolute multi-turn photoelectric encoder | |
CN102916691A (en) | BCD (binary-coded decimal) decimal counter based on reversible logic | |
CN102957426B (en) | A kind of adaptive circuit of program-controlled rotary encoder | |
CN103605626B (en) | A kind of Single wire Serial Bus agreement and change-over circuit | |
CN104133407A (en) | Counting device and method for incremental encoder | |
CN202631033U (en) | Passive direct-reading type remote valve control gas meter | |
CN107942899A (en) | A kind of multi-channel Grating signal processing circuit based on CPLD | |
CN104748687B (en) | A kind of method and adapter for improving grating sensor measurement accuracy | |
CN103528600A (en) | Execution mechanism position conversion module for supporting Gray code encoder | |
CN203561371U (en) | Execution mechanism position conversion module for supporting Gray code encoder | |
CN203274760U (en) | Electronic coder | |
CN206989881U (en) | A kind of high-speed, high precision angular displacement measuring circuit plate | |
CN204143222U (en) | electronic hand wheel | |
CN102708665B (en) | Broadband code signal detection circuit and wireless remote signal decoding circuit thereof | |
CN102829808B (en) | Multi-circle code converter based on mechanical gear set circle count |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090114 Termination date: 20110112 |