CN218497371U - Digital rotary coding control circuit - Google Patents

Digital rotary coding control circuit Download PDF

Info

Publication number
CN218497371U
CN218497371U CN202222391281.0U CN202222391281U CN218497371U CN 218497371 U CN218497371 U CN 218497371U CN 202222391281 U CN202222391281 U CN 202222391281U CN 218497371 U CN218497371 U CN 218497371U
Authority
CN
China
Prior art keywords
serial
encoder
digital
control circuit
parallel
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
CN202222391281.0U
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.)
Yangzhou Fama Intelligent Equipment Co ltd
Original Assignee
Yangzhou Fama Intelligent Equipment 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 Yangzhou Fama Intelligent Equipment Co ltd filed Critical Yangzhou Fama Intelligent Equipment Co ltd
Priority to CN202222391281.0U priority Critical patent/CN218497371U/en
Application granted granted Critical
Publication of CN218497371U publication Critical patent/CN218497371U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The utility model discloses a digital rotary coding control circuit, including digital coding control circuit, parallel-serial-parallel and decoding circuit to and output control circuit, parallel-serial-parallel and decoding circuit includes to merge and to go out shift register and MCU, and digital coding control circuit includes digital encoder, merges and goes out shift register, MCU and output control circuit and connects gradually; the parallel electric signal controlled by the digital encoder is converted into a serial electric signal by the parallel and serial shift register and is output to the MCU, and the serial electric signal is decoded by the MCU and then is output to the output control circuit. The utility model discloses use single or a plurality of 8421 digital rotary encoder to control the signal of telecommunication of a certain quantity and arrange combination and code according to certain law, not only set up directly perceived, the multiple function's that realizes when still practicing thrift more buttons and spaces input, adopt minimum button and practice thrift more spaces and realize more functions.

Description

Digital rotary coding control circuit
Technical Field
The utility model belongs to the technical field of the coding control circuit, concretely relates to rotatory coding control circuit of digit.
Background
In various conventional electronic control apparatuses, a tact key switch, a rotary switch, a dial switch, a rotary encoder, a multifunction switch, and the like are generally used as external variables of the electronic control apparatus to be input to the electronic control apparatus. Such as: some electronic devices that need to operate normally by configuring an ID or an address are usually implemented by first considering a certain sequence or combination of a dial switch or a touch key switch. More of the 4x4 matrix is usually formed by 16 tact switches because the principle of the key is simple, and when the key is pressed, two pins are switched on, and otherwise, the two pins are switched off. The electrical signals generated by the keys are easy to process, and generally, a row-column scanning mode is adopted for detection and identification, and the key at the position is pressed. The touch key switch is usually applied to some scenes needing 0 to 9 decimal digit combination input. The dial switch mode is not few, the dial switch principle is simpler, the binary coding principle of 0/1 is adopted, the binary coding principle is changed between 0/1, and different functions are realized according to different states of the power of N of 2 formed by different bits. The method is generally applied to products requiring manual programming, such as data processing, communication, remote control and the like.
Although the above key input methods are all good for electric signal processing methods, it is obvious that the 4x4 matrix formed by 16 tact switches occupies more space, or when functions such as multiple directions, multiple channels, multiple IDs and multiple serial numbers are required, the 4x4 matrix key cannot be satisfied, or more keys are required. The use of a dial switch mode is also unsatisfactory because the dial switch mode is too single and it is not easy to identify the state of the current setting/operation.
SUMMERY OF THE UTILITY MODEL
The utility model provides a technical problem: the digital rotary coding control circuit is visual in setting, saves more keys and space, and realizes multiple functions.
The technical scheme is as follows: in order to solve the technical problem, the utility model discloses a technical scheme as follows:
a digital rotary coding control circuit comprises a digital coding control circuit, a parallel-serial-parallel decoding circuit and an output control circuit, wherein the parallel-serial-parallel decoding circuit comprises a parallel-in serial-out shift register and an MCU (microprogrammed control unit), the digital coding control circuit comprises a digital coder, and the digital coder, the parallel-in serial-out shift register, the MCU and the output control circuit are sequentially connected; the parallel electric signal controlled by the digital encoder is converted into a serial electric signal by the parallel-in serial-out shift register and is output to the MCU, and the serial electric signal is decoded by the MCU and then is output to the output control circuit.
Preferably, the digital coding control circuit comprises 4 8421 digital encoders, and the output end of the 8421 digital encoder is connected with the input end of the parallel-in serial-out shift register.
Preferably, the parallel-serial shift register is provided with 2, two 8421 digital encoders are connected with the parallel-serial shift register U1, and the other two 8421 digital encoders are connected with the parallel-serial shift register U2.
Preferably, the 4 8421 digital encoders are a direction control encoder S1, a channel control encoder S2, an ID control encoder S3, and a sequence number encoder S4, respectively.
Preferably, the parallel-in serial-out shift register adopts a 74H165 chip, and the output end of the 74H165 chip is connected with the input end of the MCU.
Preferably, the MCU is ATMEGA32A chip.
Preferably, 1, 2, 3, and 0 of the directional control encoder S1 respectively indicate the east, south, west, and north directions, the four signal lines D1 to D4 are connected to the input end of the serial shift register, the four signal lines D1 to D4 are respectively connected to the pull-up resistors R1 to R4, and the four signal lines controlled by the directional control encoder S1 are clamped at the high level.
Preferably, the channel control encoder S2 controls 10 channels in total, and connects the shift registers in series through four signal lines D5 to D8, and the four signal lines D5 to D8 are respectively connected to pull-up resistors R5 to R8, and the four signal lines D5 to D8 controlled by the channel control encoder S2 are clamped at a high level.
Preferably, the ID control encoder S3 controls 10 IDs in total from 0 to 9, and connects the four signal lines D9 to D12 to form a serial shift register, and the four signal lines D9 to D12 are connected to the pull resistors R9 to R12, respectively, and the four signal lines D9 to D12 controlled by the ID control encoder S3 are clamped at a high level.
Preferably, the number encoder S4 controls 10 numbers in total from 0 to 9, and connects the four signal lines D13 to D16 to the serial shift register, and the four signal lines D13 to D16 are connected to the pull resistors R13 to R16, respectively, and the four signal lines D13 to D16 controlled by the number encoder S4 are clamped at a high level. Has the advantages that: compared with the prior art, the utility model has the advantages of it is following:
the utility model discloses a rotatory coding control circuit of digit, the signal of telecommunication that uses single or a plurality of 8421 digital rotary encoder control a certain amount is according to certain law permutation and combination and code, it is too single to solve current key input mode, be difficult to discern current setting and work in what state, the button too much takes up space too greatly and needs a plurality of directions, a plurality of passageways, during more functions such as a plurality of ID and a plurality of sequence numbers, can't satisfy or can need more buttons and occupation space's problem. The multifunctional keyboard is intuitive in setting, saves more keys and space, and simultaneously realizes the input of multiple functions, namely, realizes more functions by adopting the least keys and saving more space.
Drawings
FIG. 1 is a schematic diagram of a digital rotary encoder control circuit.
Detailed Description
The present invention will be further clarified by the following embodiments, which are implemented on the premise of the technical solution of the present invention, and it should be understood that these embodiments are only used for explaining the present invention and are not used for limiting the scope of the present invention.
As shown in fig. 1, a digital rotary encoder control circuit includes a digital encoder control circuit, a parallel-serial and decoding circuit, and an output control circuit; the parallel-serial and decoding circuit comprises a parallel-serial shift register, an MCU and resistors R17-R19, the digital coding control circuit comprises 4 digital encoders, and the digital encoders, the parallel-serial shift register, the MCU and the output control circuit are sequentially connected; the parallel electric signal controlled by the digital encoder is converted into a serial electric signal through the parallel-in serial-out shift register and is output to the MCU, the serial electric signal is decoded by the MCU and is output to the output control circuit, and the output control circuit controls and outputs a certain switching value signal.
The digital coding control circuit comprises 4 8421 digital encoders, and the 4 8421 digital encoders are a direction control encoder S1, a channel control encoder S2, an ID control encoder S3 and a sequence number encoder S4 respectively. 8421 the output of the digital encoder is connected to the input of the run-in shift register. The 4 8421 digital encoders control a certain number of electric signals, and the electric signals are arranged and combined according to a certain rule to carry out encoding.
The number of the parallel-in serial-out shift registers is 2, namely a parallel-in serial-out shift register U1 and a parallel-in serial-out shift register U2, two 8421 digital encoders are connected with the parallel-in serial-out shift register U1, and the other two 8421 digital encoders are connected with the parallel-in serial-out shift register U2. The parallel-in serial-out shift register adopts a 74H165 chip, and the output end of the 74H165 chip is connected with the input end of the MCU. The MCU adopts ATMEGA32A chip.
1, 2, 3 and 0 of the direction control encoder S1 respectively represent an east direction, a south direction, a west direction and a north direction, the four signal lines D1 to D4 are connected with the input end of the shift register and connected in series, the four signal lines D1 to D4 are respectively connected with pull-up resistors R1 to R4, and the four signal lines controlled by the direction control encoder S1 are clamped at a high level.
The channel control encoder S2 controls 10 channels in total from 0 to 9, the channels are connected and merged into the shift register through four signal lines D5 to D8, the four signal lines D5 to D8 are respectively connected with the pull-up resistors R5 to R8, and the four signal lines D5 to D8 controlled by the channel control encoder S2 are clamped at a high level.
The ID control encoder S3 controls 10 IDs of 0-9, the IDs are connected through four signal lines D9-D12 and connected into a serial shift register, the four signal lines D9-D12 are respectively connected with pull-up resistors R9-R12, and the four signal lines D9-D12 controlled by the ID control encoder S3 are clamped at a high level.
The serial number encoder S4 controls 10 serial numbers in total from 0 to 9, the serial number encoder S4 is connected with the serial-out shift register through four signal wires from D13 to D16, the four signal wires from D13 to D16 are respectively connected with pull-up resistors R13 to R16, and the four signal wires from D13 to D16 controlled by the serial number encoder S4 are clamped at a high level.
The pins C of the direction control encoder S1, the channel control encoder S2, the ID control encoder S3 and the serial number encoder S4 are public ends and are connected with GND.
The utility model discloses a theory of operation: the 4 electrical signals controlled by the 8421 digital encoders are arranged and combined according to a certain rule for encoding, then the electrical signals are merged into the serial shift register to convert the D1-D16 parallel electrical signals controlled by the 4 8421 digital encoders into serial electrical signals to be output to the MCU, and then the MCU decodes the serial electrical signals. The utility model discloses use 4 8421 digital encoder combinations, make equipment normal work. When the direction encoder S1 rotates to 1, the direction is the east direction, the channel control encoder S2 rotates to 0, the channel is 0, the ID control encoder S3 rotates to 0, the ID bit is set to 0, the serial number encoder S4 rotates to 0, and the serial number is set to 0; at the moment, D1-D16 electric signals controlled by 4 8421 digital encoders are input into the parallel-serial and decoding circuit in parallel, then the D1-D16 parallel electric signals are converted into serial electric signals by the internal 74H165 of the parallel-serial and decoding circuit and are transmitted to the MCU for decoding, the decoded result is transmitted to the output control circuit, and the output control circuit outputs corresponding control switching value signals, so that the whole working process is realized.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, a plurality of improvements and decorations can be made without departing from the principle of the present invention, and these improvements and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A digital rotary encoder control circuit, comprising: the digital encoding control circuit comprises a digital encoder, a parallel-serial and decoding circuit and an output control circuit, wherein the parallel-serial and decoding circuit comprises a parallel-serial shift register and an MCU (microprogrammed control unit), and the digital encoder, the parallel-serial and decoding circuit and the output control circuit are sequentially connected; the parallel electric signal controlled by the digital encoder is converted into a serial electric signal by the parallel and serial shift register and is output to the MCU, and the serial electric signal is decoded by the MCU and then is output to the output control circuit.
2. The digital rotary encoder control circuit of claim 1, wherein: the digital coding control circuit comprises 4 8421 digital encoders, and the output ends of the 8421 digital encoders are connected with the input ends of the parallel-in serial-out shift registers.
3. The digital rotary encoder control circuit of claim 2, wherein: the parallel-in serial-out shift registers are 2, wherein two 8421 digital encoders are connected with the parallel-in serial-out shift register U1, and the other two 8421 digital encoders are connected with the parallel-in serial-out shift register U2.
4. The digital rotary encoder control circuit of claim 2 or 3, wherein: the 4 8421 digital encoders are respectively a direction control encoder S1, a channel control encoder S2, an ID control encoder S3, and a serial number encoder S4.
5. The digital rotary encoder control circuit of claim 3, wherein: the parallel-in serial-out shift register adopts a 74H165 chip, and the output end of the 74H165 chip is connected with the input end of the MCU.
6. The digital rotary encoder control circuit of claim 2, wherein: the MCU adopts ATMEGA32A chip.
7. The digital rotary encoder control circuit of claim 4, wherein: 1, 2, 3 and 0 of the direction control encoder S1 respectively represent an east direction, a south direction, a west direction and a north direction, the four signal lines D1 to D4 are connected with the input end of the shift register and connected in series, the four signal lines D1 to D4 are respectively connected with pull-up resistors R1 to R4, and the four signal lines controlled by the direction control encoder S1 are clamped at a high level.
8. The digital rotary encoder control circuit of claim 4, wherein: the channel control encoder S2 controls 10 channels in total, the channels are connected and merged into the shift register through four signal lines D5-D8, the four signal lines D5-D8 are respectively connected with the pull-up resistors R5-R8, and the four signal lines D5-D8 controlled by the channel control encoder S2 are clamped at a high level.
9. The digital rotary encoder control circuit of claim 4, wherein: the ID control encoder S3 controls 10 IDs of 0-9, the IDs are connected through four signal lines D9-D12 and connected into a serial shift register, the four signal lines D9-D12 are respectively connected with pull-up resistors R9-R12, and the four signal lines D9-D12 controlled by the ID control encoder S3 are clamped at a high level.
10. The digital rotary encoder control circuit of claim 4, wherein: the serial number encoder S4 controls 10 serial numbers in total from 0 to 9, the serial number encoder S4 is connected with the serial-out shift register through four signal wires D13 to D16, the four signal wires D13 to D16 are respectively connected with the pull-up resistors R13 to R16, and the four signal wires D13 to D16 controlled by the serial number encoder S4 are clamped at a high level.
CN202222391281.0U 2022-09-05 2022-09-05 Digital rotary coding control circuit Active CN218497371U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202222391281.0U CN218497371U (en) 2022-09-05 2022-09-05 Digital rotary coding control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202222391281.0U CN218497371U (en) 2022-09-05 2022-09-05 Digital rotary coding control circuit

Publications (1)

Publication Number Publication Date
CN218497371U true CN218497371U (en) 2023-02-17

Family

ID=85190668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202222391281.0U Active CN218497371U (en) 2022-09-05 2022-09-05 Digital rotary coding control circuit

Country Status (1)

Country Link
CN (1) CN218497371U (en)

Similar Documents

Publication Publication Date Title
US4012599A (en) Telephone communications system for the deaf
KR20010110312A (en) Reduced keyboard with directional selection keys
JPH11500887A (en) Transition controlled digital encoding and signal transmission system
CN218497371U (en) Digital rotary coding control circuit
CN103631182B (en) A kind of HART communication hardware circuit device and its communication means
CN102385795B (en) Method and device for controlling multiple systems based on single group of infrared receiving devices
KR19990024320A (en) Korean input method using representative characters of personal mobile communication terminal
CN104202055B (en) Key circuit for detecting key trigger sate in real time, gamepad and method
CN1224888C (en) Coding input method using numeral keys to input numbers, symbols and english letters
CN1302363C (en) Man-machine interactive interface simulator with help of personal computer and working method
CN101625600A (en) Input method using characters of keypad
CN209575736U (en) A kind of handle touch tablet
EP0367512A2 (en) Dialer with internal option select circuit programmed with externally hardwired address
CN210324182U (en) External signal input device for FPGA debugging
CN114500274B (en) Plug-and-play conversion circuit and method for peripheral equipment of Internet of things
CN218299677U (en) Simple and easy intelligent dial switch of interface that can expand wantonly
CN204131504U (en) A kind of key circuit of real-time detection button trigger state and game paddle
CN1182320A (en) DQPSK mapping circuit
JPH05165559A (en) Key switch matrix circuit
CN204090056U (en) A kind of intelligent remote controller
CN1381994A (en) Method and device for setting up parameters of talkback set
CN209357044U (en) A kind of instruction encoding and decoding and execute system
CN2368071Y (en) Device for remote-control operating computer
CN105182732A (en) Method for realizing information input in smart watch and smart watch
JP3409246B2 (en) Data conversion method

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant