CN103984257A - Signal conversion method and system - Google Patents
Signal conversion method and system Download PDFInfo
- Publication number
- CN103984257A CN103984257A CN201410093946.7A CN201410093946A CN103984257A CN 103984257 A CN103984257 A CN 103984257A CN 201410093946 A CN201410093946 A CN 201410093946A CN 103984257 A CN103984257 A CN 103984257A
- Authority
- CN
- China
- Prior art keywords
- signal
- rotation
- scrambler
- sense
- converted
- 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
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The invention discloses a signal conversion method and system. The system comprises an encoder and a signal converter. The encoder is used to output a first signal. The signal converter is connected with the encoder for receiving the first signal and acquiring the rotation direction and the rotation step number of the encoder according to the first signal. The first signal is converted into a second signal generated by tapping a default key through the rotation direction, and the second signal trigger number is determined according to the rotation step number. According to the technical scheme provided in the invention, the service life of a marine navigation sea chart radar keyboard can be improved, so the operation is convenient, and the circuit performance is more stable and reliable.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of method for transformation and system of signal.
Background technology
At present, sea chart radar is that the development of marine radar navigation feature is inevitable outcome.The navigation feature of marine radar has experienced a longer evolution process, navigates to routine navigation from parallel lines, then by routine navigation sea chart radar navigation by now, and the navigation feature of navar is enriched constantly and perfect.
Radar keyboard is the necessary input equipment of radar.The keyboard that sea chart radar in correlation technique uses can be divided into following two kinds conventionally:
The first, part producer increase the switch key of a sea chart on common radar keyboard, its defect is: the operating process of this keyboard is comparatively complicated, for example: editor course line or system maintenance, it is very inconvenient to use, and can only be by external QWERTY keyboard.
The second, part producer accomplish QWERTY keyboard with radar keyboard together with, its function improves to some extent, and uses more for convenience.
Under normal conditions, navigation sea chart radar keyboard peculiar to vessel all can be made up of knob and radar function button, and the sea chart radar keyboard that partly navigates is also provided with QWERTY keyboard button.And knob is generally made up of tuning knob, extra large clutter inhibition knob, precipitation clutter inhibition knob and gain knob, by regulating these knobs can realize the optimal display result of radar image.The knob of current navigation sea chart radar keyboard peculiar to vessel all adopts potentiometer knob, and it transfers data to radar host computer processing by single-chip microcomputer after can changing by modulus (AD), thereby realizes man-machine interaction.
Fig. 1 is according to the principle of work schematic diagram of the navigation sea chart radar keyboard peculiar to vessel of correlation technique.As shown in Figure 1, knob is all to adopt potentiometer knob, and potentiometer knob passes through to change the resistance value of self in circuit, and then changes the voltage at its two ends.And single-chip microcomputer gathers the voltage at potentiometer knob two ends by AD converter, thereby obtain the change amount of potentiometer knob, then the numerical value after quantizing is transferred to radar host computer, to realize the data input of radar keyboard.
But what adopt just because of navigation sea chart radar keyboard peculiar to vessel is potentiometer knob, thereby use the technical scheme that single-chip microcomputer is sampled by AD chip to have larger defect.First, potentiometer limited location, in other words, potentiometer can both screw home on two different directions, and after extreme position, continues to turn potentiometer knob and easily cause potentiometer to damage being screwed to, and has a strong impact on the life-span of potentiometer; Secondly, sample circuit self also can be subject to temperature impact, and its error and the bit error rate are all larger.
Summary of the invention
The invention provides a kind of method for transformation and system of signal, easily cause all larger problems of potentiometer damage and error and the bit error rate at least to solve the mode that uses single-chip microcomputer by AD chip, knob voltage change amount to be sampled in correlation technique.
A kind of conversion system of signal is provided according to an aspect of the present invention.
Comprise according to the conversion system of the signal of the embodiment of the present invention: scrambler and signal converter; Scrambler, for exporting first signal; Signal converter, be connected with scrambler, be used for receiving first signal, obtain the sense of rotation of scrambler and rotate number of steps according to first signal, wherein, by sense of rotation, first signal is converted into and knocks the secondary signal that programmable button produces, and determine according to rotating number of steps the number of times that triggers secondary signal.
Preferably, said system also comprises: the first photo-coupler and the second photo-coupler; The first photo-coupler, is connected with signal converter, for being switched in the time that signal converter is rotated in a clockwise direction, chooses the key assignments of the pre-configured button corresponding with clockwise direction in keyboard chip matrix; The second photo-coupler, is connected with signal converter, for being switched in the time that signal converter rotates in the counterclockwise direction, chooses key assignments pre-configured and counterclockwise corresponding button in keyboard chip matrix.
Preferably, signal converter is CPLD (CPLD).
A kind of method for transformation of signal is provided according to a further aspect in the invention.
Comprise according to the method for transformation of the signal of the embodiment of the present invention: the first signal of received code device output; Obtain the sense of rotation of scrambler and rotate number of steps according to first signal; By sense of rotation, first signal is converted into and knocks the secondary signal that programmable button produces, and determine according to rotating number of steps the number of times that triggers secondary signal.
Preferably, by sense of rotation, first signal is converted into secondary signal and comprises: when sense of rotation is when being rotated in a clockwise direction, in keyboard chip matrix, choose the key assignments of the pre-configured button corresponding with clockwise direction; According to the key assignments of choosing, first signal is converted into secondary signal.
Preferably, by sense of rotation, first signal is converted into secondary signal and comprises: when sense of rotation is when rotating in the counterclockwise direction, in keyboard chip matrix, choose the key assignments of pre-configured and counterclockwise corresponding button; According to the key assignments of choosing, first signal is converted into secondary signal.
Preferably, said method is applied to CPLD.
Pass through the embodiment of the present invention, adopt scrambler and signal converter to substitute normally used potentiometer knob in correlation technique, AD converter and single-chip microcomputer, no longer need the voltage that gathers potentiometer knob two ends by AD converter to obtain the variable quantity of potentiometer knob, but directly obtained the signal of scrambler output by signal converter, and according to the rotation direction of scrambler, output signal is converted into corresponding push button signalling, determine according to rotating number of steps the number of times that triggers push button signalling simultaneously, having solved thus the mode that uses single-chip microcomputer by AD chip, knob voltage change amount to be sampled in correlation technique easily causes potentiometer to damage, all larger problems of the discontinuous and error of the signal that provides and the bit error rate, and then the serviceable life that can improve navigation sea chart radar keyboard peculiar to vessel, easy to operate, circuit performance is more reliable and more stable.
Brief description of the drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the principle of work schematic diagram of the navigation sea chart radar keyboard peculiar to vessel of correlation technique;
Fig. 2 is according to the structured flowchart of the conversion system of the signal of the embodiment of the present invention;
Fig. 3 is the structured flowchart of the conversion system of signal according to the preferred embodiment of the invention;
Fig. 4 is the schematic diagram of signal conversion process according to the preferred embodiment of the invention;
Fig. 5 is that scrambler is rotated in a clockwise direction the oscillogram of generation according to the preferred embodiment of the invention;
Fig. 6 is that scrambler rotates the oscillogram of generation in the counterclockwise direction according to the preferred embodiment of the invention;
Fig. 7 is according to the process flow diagram of the method for transformation of the signal of the embodiment of the present invention.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.
Fig. 2 is according to the structured flowchart of the conversion system of the signal of the embodiment of the present invention.As shown in Figure 2, the conversion system of this signal can comprise: scrambler 10 and signal converter 20; Scrambler 10, for exporting first signal; Signal converter 20, be connected with scrambler 10, be used for receiving first signal, obtain the sense of rotation of scrambler and rotate number of steps according to first signal, wherein, by sense of rotation, first signal is converted into and knocks the secondary signal that programmable button produces, and determine according to rotating number of steps the number of times that triggers secondary signal.
In correlation technique, the mode that uses single-chip microcomputer by AD chip, knob voltage change amount to be sampled easily causes potentiometer damage and error and the bit error rate all larger.Adopt system as shown in Figure 2, substitute normally used potentiometer knob in correlation technique by scrambler and signal converter, AD converter and single-chip microcomputer, no longer need the voltage that gathers potentiometer knob two ends by AD converter to obtain the variable quantity of potentiometer knob, but directly obtained the signal of scrambler output by signal converter, and according to the rotation direction of scrambler, output signal is converted into corresponding push button signalling, determine according to rotating number of steps the number of times that triggers push button signalling simultaneously, solve thus the mode that uses single-chip microcomputer by AD chip, knob voltage change amount to be sampled in correlation technique and easily caused all larger problems of potentiometer damage and error and the bit error rate, and then the serviceable life that can improve navigation sea chart radar keyboard peculiar to vessel, easy to operate, circuit performance is more reliable and more stable.
In preferred implementation process, above-mentioned signal converter can be complex programmable logic device (CPLD).
In a preferred embodiment, can use CPLD to process the signal of scrambler output, the signal of scrambler output is converted to push button signalling, then by being transferred to keyboard chip after photo-coupler.
Preferably, as shown in Figure 3, said system can also comprise: the first photo-coupler 30 and the second photo-coupler 40; The first photo-coupler 30, is connected with signal converter 20, for being switched in the time that signal converter is rotated in a clockwise direction, chooses the key assignments of the pre-configured button corresponding with clockwise direction in keyboard chip matrix; The second photo-coupler 40, is connected with signal converter 20, for being switched in the time that signal converter rotates in the counterclockwise direction, chooses key assignments pre-configured and counterclockwise corresponding button in keyboard chip matrix.
In preferred implementation process, above-mentioned the first photo-coupler 30 and the second photo-coupler 40 are high speed photo coupling.
In a preferred embodiment, the knob of navigation sea chart radar keyboard peculiar to vessel can adopt scrambler, the process CPLD signal after treatment of scrambler output is transferred to keyboard chip by optocoupler, the rotation operation to scrambler is converted into the operation of pressing and upspring of its corresponding key assignments button.Keyboard chip communicates by USB (universal serial bus) (USB) interface by hub (HUB) chip and radar host computer.
Fig. 4 is the schematic diagram of signal conversion process according to the preferred embodiment of the invention.Fig. 5 is that scrambler is rotated in a clockwise direction the oscillogram of generation according to the preferred embodiment of the invention.Fig. 6 is that scrambler rotates the oscillogram of generation in the counterclockwise direction according to the preferred embodiment of the invention.As shown in Figures 4 to 6, its specific works process is as follows:
The signal of scrambler output transfers to CPLD after processing after filtering.CPLD can analyze the signal of scrambler output, and sense of rotation to scrambler and rotate number of steps and judge.In the time that scrambler is rotated according to clockwise direction, CPLD can rotate the waveform producing by high speed photo coupling 1 conducting according to clockwise direction, and high speed photo coupling 1 conducting can be chosen a specific key assignments (for example: " * " that the key assignments of the corresponding keyboard of Row14Column5 is keypad) in keyboard chip matrix.In like manner, in the time that scrambler is rotated according to counter clockwise direction, the waveform that CPLD can produce according to counter clockwise direction rotation is by high speed photo coupling 2 conductings, and high speed photo coupling 2 conductings can be chosen a specific key assignments (for example: "-" that the key assignments of the corresponding keyboard of Row14Column6 is keypad) in keyboard chip matrix.Design by foregoing circuit, the rotation operation to scrambler is converted into the operation of pressing and upspring of its corresponding key assignments button.
Fig. 7 is according to the process flow diagram of the method for transformation of the signal of the embodiment of the present invention.As shown in Figure 7, the method can comprise following treatment step:
Step S702: the first signal of received code device output;
Step S704: obtain the sense of rotation of scrambler and rotate number of steps according to first signal;
Step S706: by sense of rotation, first signal is converted into and knocks the secondary signal that programmable button produces, and determine according to rotating number of steps the number of times that triggers secondary signal.
Adopt method as shown in Figure 7, solve the mode that uses single-chip microcomputer by AD chip, knob voltage change amount to be sampled in correlation technique and easily caused all larger problems of potentiometer damage and error and the bit error rate, and then the serviceable life that can improve navigation sea chart radar keyboard peculiar to vessel, easy to operate, circuit performance is more reliable and more stable.
In preferred implementation process, said method can be applied to CPLD.
Preferably, in step S706, by sense of rotation, first signal is converted into secondary signal and can comprises following operation:
Step S1: when sense of rotation is when being rotated in a clockwise direction, choose the key assignments of the pre-configured button corresponding with clockwise direction in keyboard chip matrix;
Step S2: first signal is converted into secondary signal according to the key assignments of choosing.
In a preferred embodiment, in the time that scrambler is rotated according to clockwise direction, CPLD can rotate the waveform producing by photo-coupler (two ends of photo-coupler can be connected with keyboard chip with CPLD respectively) conducting according to clockwise direction, and photo-coupler conducting can be chosen a specific key assignments in keyboard chip matrix, for example: " * " that the key assignments of the corresponding keyboard of Row14Column5 is keypad.
Preferably, in step S706, by sense of rotation, first signal being converted into secondary signal can comprise the following steps:
Step S3: when sense of rotation is when rotating in the counterclockwise direction, choose the key assignments of pre-configured and counterclockwise corresponding button in keyboard chip matrix;
Step S4: first signal is converted into secondary signal according to the key assignments of choosing.
In a preferred embodiment, in the time that scrambler is rotated according to counter clockwise direction, CPLD can be according to the waveform that counterclockwise rotation produces by photo-coupler conducting, and photo-coupler conducting can be chosen a specific key assignments in keyboard chip matrix, for example: "-" that the key assignments of the corresponding keyboard of Row14Column6 is keypad.
From above description, can find out, above-described embodiment has been realized following technique effect (it should be noted that these effects are effects that some preferred embodiment can reach): the technical scheme that adopts the embodiment of the present invention to provide, use CPLD to process the signal of scrambler output, the signal of scrambler output is converted to push button signalling, again by being transferred to keyboard chip after photo-coupler, solve the mode that uses single-chip microcomputer by AD chip, knob voltage change amount to be sampled in correlation technique and easily caused all larger problems of potentiometer damage and error and the bit error rate, and then the serviceable life that can improve navigation sea chart radar keyboard peculiar to vessel, easy to operate, circuit performance is more reliable and more stable.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (7)
1. a conversion system for signal, is characterized in that, comprising: scrambler and signal converter;
Described scrambler, for exporting first signal;
Described signal converter, be connected with described scrambler, be used for receiving described first signal, obtain the sense of rotation of described scrambler and rotate number of steps according to described first signal, wherein, by described sense of rotation, described first signal is converted into and knocks the secondary signal that programmable button produces, and determine according to described rotation number of steps the number of times that triggers described secondary signal.
2. system according to claim 1, is characterized in that, described system also comprises: the first photo-coupler and the second photo-coupler;
Described the first photo-coupler, is connected with described signal converter, for being switched in the time that described signal converter is rotated in a clockwise direction, chooses the key assignments of the pre-configured button corresponding with described clockwise direction in keyboard chip matrix;
Described the second photo-coupler, is connected with described signal converter, for being switched in the time that described signal converter rotates in the counterclockwise direction, chooses the key assignments of the pre-configured button corresponding with described counter clockwise direction in described keyboard chip matrix.
3. system according to claim 1 and 2, is characterized in that, described signal converter is complex programmable logic device (CPLD).
4. a method for transformation for signal, is characterized in that, comprising:
The first signal of received code device output;
Obtain the sense of rotation of described scrambler and rotate number of steps according to described first signal;
By described sense of rotation, described first signal is converted into and knocks the secondary signal that programmable button produces, and determine according to described rotation number of steps the number of times that triggers described secondary signal.
5. method according to claim 4, is characterized in that, by described sense of rotation, described first signal is converted into described secondary signal and comprises:
When described sense of rotation is when being rotated in a clockwise direction, in keyboard chip matrix, choose the key assignments of the pre-configured button corresponding with described clockwise direction;
According to the key assignments of choosing, described first signal is converted into described secondary signal.
6. method according to claim 4, is characterized in that, by described sense of rotation, described first signal is converted into described secondary signal and comprises:
When described sense of rotation is when rotating in the counterclockwise direction, in keyboard chip matrix, choose the key assignments of the pre-configured button corresponding with described counter clockwise direction;
According to the key assignments of choosing, described first signal is converted into described secondary signal.
7. according to the method described in any one in claim 4 to 6, it is characterized in that, described method is applied to complex programmable logic device (CPLD).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410093946.7A CN103984257A (en) | 2014-03-13 | 2014-03-13 | Signal conversion method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410093946.7A CN103984257A (en) | 2014-03-13 | 2014-03-13 | Signal conversion method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103984257A true CN103984257A (en) | 2014-08-13 |
Family
ID=51276276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410093946.7A Pending CN103984257A (en) | 2014-03-13 | 2014-03-13 | Signal conversion method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103984257A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0720293A1 (en) * | 1994-12-28 | 1996-07-03 | SEXTANT AVIONIQUE (Société Anonyme) | Multiple-channel encoder with single-channel structure |
CN1753314A (en) * | 2004-09-20 | 2006-03-29 | 乐金电子(天津)电器有限公司 | Input method of coder signal |
CN101350616A (en) * | 2008-08-11 | 2009-01-21 | 株洲南车时代电气股份有限公司 | Pulse control type touch induction keyboard and implementing method thereof |
CN101521764A (en) * | 2008-12-17 | 2009-09-02 | 康佳集团股份有限公司 | TV set with revolving functional key and method for adjusting functions |
CN103162725A (en) * | 2013-02-28 | 2013-06-19 | 重庆大学 | Photoelectric encoder rotating pulse display device |
CN103324296A (en) * | 2012-03-20 | 2013-09-25 | 宏达国际电子股份有限公司 | Keypad module and detecting method for keypad matrix |
-
2014
- 2014-03-13 CN CN201410093946.7A patent/CN103984257A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0720293A1 (en) * | 1994-12-28 | 1996-07-03 | SEXTANT AVIONIQUE (Société Anonyme) | Multiple-channel encoder with single-channel structure |
CN1753314A (en) * | 2004-09-20 | 2006-03-29 | 乐金电子(天津)电器有限公司 | Input method of coder signal |
CN101350616A (en) * | 2008-08-11 | 2009-01-21 | 株洲南车时代电气股份有限公司 | Pulse control type touch induction keyboard and implementing method thereof |
CN101521764A (en) * | 2008-12-17 | 2009-09-02 | 康佳集团股份有限公司 | TV set with revolving functional key and method for adjusting functions |
CN103324296A (en) * | 2012-03-20 | 2013-09-25 | 宏达国际电子股份有限公司 | Keypad module and detecting method for keypad matrix |
CN103162725A (en) * | 2013-02-28 | 2013-06-19 | 重庆大学 | Photoelectric encoder rotating pulse display device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2501099C2 (en) | Data collection card, system and method of managing data collection card expansion | |
CN109597778A (en) | A kind of multi-channel serial port signal list interface duplex output system and its implementation | |
CN103684458A (en) | Analog-digital converter protective circuit, digital power supply, method and module for processing digital signals and method for protecting circuit | |
CN101299207B (en) | Microprocessor system bus and microprocessor interface bus converting device and method | |
CN100389399C (en) | Method and system of chip checking | |
CN108696277A (en) | Analog-digital converter | |
CN103984257A (en) | Signal conversion method and system | |
CN104090506A (en) | Digital input module for adjusting show value of electronic instrument | |
CN105388795A (en) | Miniaturized man-machine interaction system | |
CN102541267B (en) | Matrix keyboard circuit, scanning method and device, processor and handheld terminal | |
CN101673097A (en) | Comprehensive control device of digitizer | |
KR20080078331A (en) | Computer system and control method thereof | |
CN105141874B (en) | Method and apparatus scaling signal picture and scale register mapping | |
CN100595715C (en) | Signal processing circuit | |
CN110895501B (en) | Serial port switching method and system thereof | |
EP2784651B1 (en) | Transmitter with rotating knob | |
CN201184970Y (en) | Embedded board for acquiring data of watercraft engine compartment | |
CN204143222U (en) | electronic hand wheel | |
CN220188983U (en) | Level conversion and switching device based on CPLD | |
CN215813809U (en) | CPCI-based coding acquisition module encoder board | |
CN213817229U (en) | Microcomputer protection device with metering function | |
CN201166544Y (en) | Angle measuring system capable of performing multiple address selection | |
US7571333B1 (en) | Method and system for automatically setting the operating voltage and speed of diplex communication in a data storage system | |
CN105306009A (en) | FIR (Finite Impulse Response) digital filter | |
CN211086968U (en) | Bus expansion device based on bus communication connection numerical control system and numerical control equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140813 |