[go: up one dir, main page]

CN114545819A - A detection circuit using AD port line as encoder - Google Patents

A detection circuit using AD port line as encoder Download PDF

Info

Publication number
CN114545819A
CN114545819A CN202210127792.3A CN202210127792A CN114545819A CN 114545819 A CN114545819 A CN 114545819A CN 202210127792 A CN202210127792 A CN 202210127792A CN 114545819 A CN114545819 A CN 114545819A
Authority
CN
China
Prior art keywords
resistor
encoder
vol1
pin
volume
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
Application number
CN202210127792.3A
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.)
Wuhu Hongjing Electronics Co Ltd
Original Assignee
Wuhu Hongjing Electronics 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 Wuhu Hongjing Electronics Co Ltd filed Critical Wuhu Hongjing Electronics Co Ltd
Priority to CN202210127792.3A priority Critical patent/CN114545819A/en
Publication of CN114545819A publication Critical patent/CN114545819A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)

Abstract

本发明公开了一种用AD口线做编码器的检测电路,包括音量编码器VOL1,其特征在于:所述音量编码器VOL1的1脚连接电阻R343,音量编码器VOL1的3脚连接电阻R350,电阻R343与电阻R350连接电阻R1并与SYS3.3V接口相连,同时电阻R343与电阻R350连接电阻R13并与ECD—VOL接口相连。本用AD口线做编码器的检测电路,实现多个I/O口相同的功能,并且电路简单可靠,投入成本少,可有效减少单片机端口资源消耗。

Figure 202210127792

The invention discloses a detection circuit using an AD port line as an encoder, including a volume encoder VOL1, which is characterized in that: the 1 pin of the volume encoder VOL1 is connected to a resistor R343, and the 3 pin of the volume encoder VOL1 is connected to a resistor R350 , resistor R343 and resistor R350 are connected to resistor R1 and connected to SYS3.3V interface, while resistor R343 and resistor R350 are connected to resistor R13 and connected to ECD-VOL interface. The AD port line is used as the detection circuit of the encoder to achieve the same function of multiple I/O ports. The circuit is simple and reliable, and the investment cost is low, which can effectively reduce the resource consumption of the single-chip microcomputer port.

Figure 202210127792

Description

一种用AD口线做编码器的检测电路A detection circuit using AD port line as encoder

技术领域technical field

本发明涉及编码器技术领域,具体为一种用AD口线做编码器的检测电路。The invention relates to the technical field of encoders, in particular to a detection circuit using an AD port line as an encoder.

背景技术Background technique

在车载多媒体产品中,有很多产品是使用音量编码器来调节音量大小的,传统编码器实现音量调节的电路中经常遇到I/O口资源不够用而选择带更多I/O口资源的单片机来满足电路设计要求,这也就意味着设计成本会增加。In car multimedia products, there are many products that use volume encoders to adjust the volume. Traditional encoders often encounter insufficient I/O port resources in the circuit for volume adjustment, and choose to use more I/O port resources. A single-chip microcomputer is used to meet the circuit design requirements, which means that the design cost will increase.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种用AD口线做编码器的检测电路,实现多个I/O口相同的功能,并且电路简单可靠,投入成本少,可有效减少单片机端口资源消耗,可以解决现有技术中的问题。The purpose of the present invention is to provide a detection circuit using AD port line as an encoder, which realizes the same function of multiple I/O ports, and the circuit is simple and reliable, with low investment cost, which can effectively reduce the resource consumption of the single-chip microcomputer port, and can solve the problem of current There are technical problems.

为实现上述目的,本发明提供如下技术方案:一种用AD口线做编码器的检测电路,包括音量编码器VOL1,其特征在于:所述音量编码器VOL1的1脚连接电阻R343,音量编码器VOL1的3脚连接电阻R350,电阻R343与电阻R350连接电阻R1并与SYS3.3V接口相连,同时电阻R343与电阻R350连接电阻R13并与ECD—VOL接口相连。In order to achieve the above object, the present invention provides the following technical scheme: a kind of detection circuit is made of encoder with AD port line, including volume encoder VOL1, it is characterized in that: 1 pin of described volume encoder VOL1 connects resistance R343, the volume encoding The 3-pin of the VOL1 is connected to the resistor R350, the resistor R343 and the resistor R350 are connected to the resistor R1 and connected to the SYS3.3V interface, and the resistor R343 and the resistor R350 are connected to the resistor R13 and connected to the ECD-VOL interface.

优选的,所述音量编码器VOL1的1脚电路接口连接电容C24并接地。Preferably, the 1-pin circuit interface of the volume encoder VOL1 is connected to the capacitor C24 and grounded.

优选的,所述音量编码器VOL1的3脚电路接口连接电容C25并接地。Preferably, the 3-pin circuit interface of the volume encoder VOL1 is connected to the capacitor C25 and grounded.

与现有技术相比,本发明的有益效果如下:Compared with the prior art, the beneficial effects of the present invention are as follows:

本用AD口线做编码器的检测电路,实现多个I/O口相同的功能,并且电路简单可靠,投入成本少,可有效减少单片机端口资源消耗,由于电路稳定、可靠,因而极具推广性。The AD port line is used as the detection circuit of the encoder to achieve the same function of multiple I/O ports. The circuit is simple and reliable, and the investment cost is low, which can effectively reduce the resource consumption of the single-chip microcomputer port. Because the circuit is stable and reliable, it is very popular. sex.

附图说明Description of drawings

图1为本发明的电路图。FIG. 1 is a circuit diagram of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

请参阅图1,一种用AD口线做编码器的检测电路,包括音量编码器VOL1,音量编码器VOL1的1脚连接电阻R343,音量编码器VOL1的3脚连接电阻R350,电阻R343与电阻R350连接电阻R1并与SYS3.3V接口相连,同时电阻R343与电阻R350连接电阻R13并与ECD—VOL接口相连。Please refer to Figure 1, a detection circuit using AD port line as encoder, including volume encoder VOL1, volume encoder VOL1 pin 1 is connected to resistor R343, volume encoder VOL1 pin 3 is connected to resistor R350, resistor R343 and resistor R343 R350 is connected to the resistor R1 and connected to the SYS3.3V interface, while the resistor R343 and the resistor R350 are connected to the resistor R13 and connected to the ECD-VOL interface.

上述中,音量编码器VOL1的1脚电路接口连接电容C24并接地,音量编码器VOL1的3脚电路接口连接电容C25并接地。In the above, the 1-pin circuit interface of the volume encoder VOL1 is connected to the capacitor C24 and grounded, and the 3-pin circuit interface of the volume encoder VOL1 is connected to the capacitor C25 and grounded.

本用AD口线做编码器的检测电路,当音量编码器VOL1的3脚与2脚接通时,ECD—VOL网络上的电压实际上就是电阻R1和电阻R350分压,电压值是:3.3X[82K/(47K+82K)]=2.1V。The AD port line is used as the detection circuit of the encoder. When the 3-pin and 2-pin of the volume encoder VOL1 are connected, the voltage on the ECD-VOL network is actually divided by the resistor R1 and the resistor R350, and the voltage value is: 3.3 X[82K/(47K+82K)]=2.1V.

当音量编码器VOL1的1脚与2脚接通时,ECD—VOL网络上的电压实际上就是电阻R1和电阻R343分压,电压值是:3.3X[47K/(47K+47K)]=1.65V。电阻R13为编码器和单片机之间的隔离电阻,不参入分压,电容C24与电容C25是滤除干扰电压瞬间抖动的电容。When the 1 pin and 2 pin of the volume encoder VOL1 are connected, the voltage on the ECD-VOL network is actually divided by the resistor R1 and the resistor R343, and the voltage value is: 3.3X[47K/(47K+47K)]=1.65 V. The resistor R13 is the isolation resistor between the encoder and the single-chip microcomputer, and does not participate in the voltage divider. The capacitor C24 and the capacitor C25 are capacitors that filter out the instantaneous jitter of the interference voltage.

本用AD口线做编码器的检测电路,顺时针旋转是先导通音量编码器VOL1的1脚、2脚再导通3脚、2脚,单片机的AD引脚上先有1.65V电压,滞后1/4周期后再为2.1V电压。The AD port line is used as the detection circuit of the encoder. Turning clockwise is to turn on the 1st and 2nd pins of the volume encoder VOL1 first, then turn on the 3rd and 2nd pins. The AD pin of the single-chip microcomputer has a voltage of 1.65V first, which lags behind. 1/4 cycle and then 2.1V voltage.

逆时针旋转先导通音量编码器VOL1的3脚、2脚再导通1脚、2脚,单片机的AD引脚上先有2.1V电压,滞后1/4周期后再为1.65V电压。Rotate counterclockwise to turn on the 3-pin and 2-pin of the volume encoder VOL1 first, then turn on the 1-pin and 2-pin. The AD pin of the single-chip microcomputer has a voltage of 2.1V first, and then a voltage of 1.65V after a 1/4 cycle.

同样,每旋转一格完成一个脉冲周期,单片机AD口通过1.65V 和2.1V脉冲电压的先后顺序可以判断是顺时针旋转还是逆时针旋转。Similarly, every time a grid is rotated to complete a pulse cycle, the AD port of the microcontroller can determine whether it is clockwise or counterclockwise through the sequence of the 1.65V and 2.1V pulse voltages.

综上所述:本用AD口线做编码器的检测电路,实现多个I/O口相同的功能,并且电路简单可靠,投入成本少,可有效减少单片机端口资源消耗,由于电路稳定、可靠,因而极具推广性,可有效解决现有技术问题。To sum up, the AD port line is used as the detection circuit of the encoder to realize the same function of multiple I/O ports, and the circuit is simple and reliable, with low investment cost, which can effectively reduce the resource consumption of the single-chip microcomputer port. Because the circuit is stable and reliable Therefore, it is very popular and can effectively solve the existing technical problems.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。It should be noted that, in this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus.

尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同物限定。Although the embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, and substitutions can be made in these embodiments without departing from the principle and spirit of the invention and modifications, the scope of the invention is defined by the appended claims and their equivalents.

Claims (3)

1. The utility model provides a detection circuitry who uses AD oral siphon to do encoder, includes volume encoder VOL1, its characterized in that: a pin 1 of the volume encoder VOL1 is connected with a resistor R343, a pin 3 of the volume encoder VOL1 is connected with a resistor R350, the resistor R343 and the resistor R350 are connected with a resistor R1 and are connected with an interface SYS3.3V, and meanwhile, the resistor R343 and the resistor R350 are connected with a resistor R13 and are connected with an ECD-VOL interface.
2. The detecting circuit of claim 1, wherein the detecting circuit comprises: the 1-pin circuit interface of the volume encoder VOL1 is connected to the capacitor C24 and to ground.
3. The detecting circuit of claim 1, wherein the detecting circuit comprises: the 3-pin circuit interface of the volume encoder VOL1 is connected to the capacitor C25 and to ground.
CN202210127792.3A 2022-02-11 2022-02-11 A detection circuit using AD port line as encoder Pending CN114545819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210127792.3A CN114545819A (en) 2022-02-11 2022-02-11 A detection circuit using AD port line as encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210127792.3A CN114545819A (en) 2022-02-11 2022-02-11 A detection circuit using AD port line as encoder

Publications (1)

Publication Number Publication Date
CN114545819A true CN114545819A (en) 2022-05-27

Family

ID=81674327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210127792.3A Pending CN114545819A (en) 2022-02-11 2022-02-11 A detection circuit using AD port line as encoder

Country Status (1)

Country Link
CN (1) CN114545819A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060043985A (en) * 2004-11-11 2006-05-16 주식회사 대우일렉트로닉스 Volume control device and method of audio system
CN1776373A (en) * 2005-11-24 2006-05-24 上海交通大学 The Phase Detection Circuit of Incremental Rotary Encoder
CN204168481U (en) * 2014-07-31 2015-02-18 重庆徐港电子有限公司 A kind of volume control inputs circuit
CN111142428A (en) * 2019-12-13 2020-05-12 芜湖宏景电子股份有限公司 Detection circuit of encoder adopting AD port line

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060043985A (en) * 2004-11-11 2006-05-16 주식회사 대우일렉트로닉스 Volume control device and method of audio system
CN1776373A (en) * 2005-11-24 2006-05-24 上海交通大学 The Phase Detection Circuit of Incremental Rotary Encoder
CN204168481U (en) * 2014-07-31 2015-02-18 重庆徐港电子有限公司 A kind of volume control inputs circuit
CN111142428A (en) * 2019-12-13 2020-05-12 芜湖宏景电子股份有限公司 Detection circuit of encoder adopting AD port line

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈国杰: "数码电位器的单片机接口方法及其编程", 电子技术, no. 04 *

Similar Documents

Publication Publication Date Title
CN102611120B (en) Power factor monitoring and compensating system
CN205068033U (en) Detection control circuit of water level sensing device
CN209117760U (en) A kind of electric system sinusoidal voltage frequency measurement circuit
CN204498138U (en) A reverse power supply PoE switch that automatically adjusts power supply
CN114545819A (en) A detection circuit using AD port line as encoder
CN216751716U (en) Novel digital phase locking device based on single chip microcomputer
CN100373131C (en) The Phase Detection Circuit of Incremental Rotary Encoder
CN108039828A (en) Capacitance-resistance full-wave rectifying circuit
CN204694767U (en) A kind of Width funtion low-power consumption two-way zero-crossing testing circuit
CN204177858U (en) A kind of three-phase electricity testing circuit
CN204538998U (en) A kind of maximum comparison circuit being applicable to three-phase inverter system
CN204556766U (en) LVDS opens short-circuit detecting device
CN206270731U (en) A kind of Internet of Things water meter system
CN209343292U (en) A kind of memory VTT circuit applied to desk-top mainboard
CN105866533B (en) A kind of Multifunctional single-phase time-sharing electricity meter
CN111142428A (en) Detection circuit of encoder adopting AD port line
CN204992558U (en) PROFIBUSPA bus instrumentation's current foldback circuit
CN209170335U (en) A matrix keyboard circuit with hardware debounce and interrupt signal
CN202903865U (en) Simplified sine wave sampling circuit
CN201976115U (en) Communication circuit
WO2022165804A1 (en) Hysteretic three-phase voltage restoration method and system, and related device
CN201781287U (en) Signal collector of self-adapting switch
CN201477158U (en) A component resistance value detection circuit
CN204330854U (en) A kind of raising optocoupler transmission reliability circuit for electric energy meter
CN202735760U (en) Adaptive load circuit of communication terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20220527