[go: up one dir, main page]

CN106951385B - Serial PWM signal decoding circuit and method based on capacitor charging and discharging structure - Google Patents

Serial PWM signal decoding circuit and method based on capacitor charging and discharging structure Download PDF

Info

Publication number
CN106951385B
CN106951385B CN201710166006.XA CN201710166006A CN106951385B CN 106951385 B CN106951385 B CN 106951385B CN 201710166006 A CN201710166006 A CN 201710166006A CN 106951385 B CN106951385 B CN 106951385B
Authority
CN
China
Prior art keywords
discharging
charging
capacitor
decoding
pwm signal
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
CN201710166006.XA
Other languages
Chinese (zh)
Other versions
CN106951385A (en
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.)
Ruili Flat Core Microelectronics Guangzhou Co Ltd
Original Assignee
Institute of Microelectronics of CAS
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 Institute of Microelectronics of CAS filed Critical Institute of Microelectronics of CAS
Priority to CN201710166006.XA priority Critical patent/CN106951385B/en
Publication of CN106951385A publication Critical patent/CN106951385A/en
Application granted granted Critical
Publication of CN106951385B publication Critical patent/CN106951385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4072Drivers or receivers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

本发明提供了一种基于电容充放电结构的串行PWM信号解码电路,包括:时序逻辑产生电路,输入端接收PWM差分信号,并产生时序逻辑信号;至少两个电容充放电解码模块,输入端分别与时序逻辑产生电路的输出端连接,根据时序逻辑信号进行充放电;解码过程中电容充放电解码模块的充放电电容在充放电之前的电压为共模电压VCM,在充放电结束后充放电节点的电压为VC,通过判断二者的电压差极性识别PWM信号从而解码。本发明还提供了一种基于电容充放电结构的串行PWM信号解码方法。本发明结构简单,无需同步码流,避免了复杂的CDR及过采样结构的使用,实现了不同速率下的PWM信号解码,提高了信号传输效率降低了功耗。

The invention provides a serial PWM signal decoding circuit based on a capacitor charging and discharging structure, comprising: a sequential logic generating circuit, an input end receives a PWM differential signal, and generates sequential logic signals; at least two capacitor charge and discharge decoding modules, an input end They are respectively connected to the output terminals of the sequential logic generating circuit, and are charged and discharged according to the sequential logic signals; during the decoding process, the voltage of the charging and discharging capacitor of the decoding module before charging and discharging is the common mode voltage VCM, and it is charged and discharged after the charging and discharging is completed. The voltage of the node is V C , and the PWM signal is decoded by judging the polarity of the voltage difference between the two. The invention also provides a serial PWM signal decoding method based on the capacitor charging and discharging structure. The invention has simple structure, does not need synchronous code stream, avoids the use of complex CDR and oversampling structure, realizes PWM signal decoding at different rates, improves signal transmission efficiency and reduces power consumption.

Description

基于电容充放电结构的串行PWM信号解码电路及方法Serial PWM signal decoding circuit and method based on capacitor charging and discharging structure

技术领域technical field

本发明涉及M-PHY接口相关的集成电路设计领域,尤其涉及一种基于电容充放电结构的串行PWM信号解码电路及方法。The invention relates to the field of integrated circuit design related to an M-PHY interface, in particular to a serial PWM signal decoding circuit and method based on a capacitor charging and discharging structure.

背景技术Background technique

在串行接口领域中,常采用PWM信号用于低速模式下的数据传输,如mipi M_PHY,该信号的特点是一个UI中低电平时间占1/3,高电平占2/3代表数据1、低电平时间占2/3,高电平占1/3代表数据0。其传输数据率变化范围从几兆赫兹到几百兆赫兹,以适应不同数据传输量下节约功耗的需求,同时在低速模式下存在不发送同步码的情况。In the field of serial interfaces, PWM signals are often used for data transmission in low-speed mode, such as mipi M_PHY. The characteristics of this signal are that the low level time in a UI accounts for 1/3, and the high level accounts for 2/3 to represent data. 1. The low level time accounts for 2/3, and the high level accounts for 1/3 to represent data 0. Its transmission data rate varies from several megahertz to several hundreds of megahertz to meet the needs of saving power consumption under different data transmission volumes, and at the same time in the low-speed mode, the synchronization code is not sent.

目前已有的方案采用过采样,或者基于CDR结构实现串行PWM信号的解码,但都存在电路结构复杂,浪费冗余功耗,无法覆盖大数据率变化范围,甚至必须配合同步码才能实现解码的情况,因此,亟需一种结构简单,功耗较低,适应不同工作速率,同时无须同步数据码即能实现接收的PWM信号接收电路。At present, the existing solutions use oversampling or realize serial PWM signal decoding based on CDR structure, but all have complex circuit structures, waste redundant power consumption, cannot cover the range of large data rate changes, and even need to cooperate with synchronization codes to achieve decoding Therefore, there is an urgent need for a PWM signal receiving circuit with a simple structure, low power consumption, adapting to different working rates, and without synchronizing data codes.

发明内容SUMMARY OF THE INVENTION

(一)要解决的技术问题(1) Technical problems to be solved

鉴于上述技术问题,本发明提供了一种基于电容充放电结构的串行PWM信号解码电路及方法。本发明结构简单,避免了复杂的CDR,过采样结构的使用,另外采用容值可编程充放电电容以及电流值可编程电流源实现了不同速率下的PWM信号解码,同时无须同步码即可实现串行PWM信号的解码,提高了信号传输效率,节约了功耗。In view of the above technical problems, the present invention provides a serial PWM signal decoding circuit and method based on a capacitor charging and discharging structure. The invention has a simple structure, avoids the use of complex CDR and oversampling structures, and uses programmable charge-discharge capacitors and current-value programmable current sources to realize the decoding of PWM signals at different rates, and at the same time, it can be realized without synchronization codes. Decoding of serial PWM signals improves signal transmission efficiency and saves power consumption.

(二)技术方案(2) Technical solutions

根据本发明的一个方面,提供了一种基于电容充放电结构的串行PWM信号解码电路,包括:According to an aspect of the present invention, a serial PWM signal decoding circuit based on a capacitor charging and discharging structure is provided, comprising:

时序逻辑产生电路,其输入端接收PWM差分信号,并根据输入的PWM差分信号产生时序逻辑信号;A sequential logic generating circuit, whose input terminal receives PWM differential signals, and generates sequential logic signals according to the input PWM differential signals;

至少两个电容充放电解码模块,其输入端分别与所述时序逻辑产生电路的输出端连接,接收该时序逻辑产生电路发送的时序逻辑信号,并根据该时序逻辑信号进行充放电;其中,at least two capacitor charging and discharging decoding modules, whose input ends are respectively connected with the output ends of the sequential logic generating circuit, receive the sequential logic signal sent by the sequential logic generating circuit, and perform charging and discharging according to the sequential logic signal; wherein,

解码过程中所述电容充放电解码模块的充放电电容在充放电之前的电压为共模电压VCM,在充放电结束后充放电节点的电压为VC,通过判断二者的电压差极性识别PWM信号从而解码。During the decoding process, the voltage of the charging and discharging capacitor of the capacitor charging and discharging decoding module before charging and discharging is the common mode voltage VCM, and the voltage of the charging and discharging node after the charging and discharging is completed is V C , which is identified by judging the polarity of the voltage difference between the two The PWM signal is thus decoded.

优选的,所述时序逻辑产生电路,包括:输入端口PWM_P、PWM_N,用于接收输入的低压差分PWM信号;至少两组时序逻辑输出端口,分别与所述至少两个电容充放电解码模块的输入端口连接,其中,第一组时序逻辑输出端口的输出信号为SWP1、SWN1、SWR1及SA1,分别用于控制第一电容充放电解码模块的充电开关SWP、放电开关SWN、复位开关SWR以及SA端口;第二组时序逻辑输出端口的输出信号为SWP2、SWN2、SWR2及SA2,分别用于控制第二电容充放电解码模块的充电开关SWP、放电开关SWN、复位开关SWR以及SA端口。Preferably, the sequential logic generating circuit includes: input ports PWM_P and PWM_N for receiving input low-voltage differential PWM signals; at least two sets of sequential logic output ports, respectively connected to the input of the at least two capacitor charging and discharging decoding modules port connection, wherein the output signals of the first group of sequential logic output ports are SWP1, SWN1, SWR1 and SA1, which are respectively used to control the charging switch SWP, the discharging switch SWN, the reset switch SWR and the SA port of the first capacitor charging and discharging decoding module ; The output signals of the second group of sequential logic output ports are SWP2, SWN2, SWR2 and SA2, which are respectively used to control the charging switch SWP, discharging switch SWN, reset switch SWR and SA port of the second capacitor charging and discharging decoding module.

优选的,所述电容充放电解码模块,包括:充放电电容C0,其充放电节点C与共模电压VCM输入端通过所述开关SWR连接;电流源Ich,其串联所述开关SWP用于对充放电电容C0进行充电;电流源Idis,其串联所述开关SWN用于对充放电电容C0进行放电;比较器,其正输入端与所述充放电电容C0的充放电节点C相连,其负输入端与所述共模电压输入端VCM连接,用于判断电压VC与共模电压VCM的电压差极性;寄存器,其数据输入端口D与所述比较器的输出端连接,其数据输出端口Q与所述电容充放电解码模块的数据输出端DATA相连,其时钟端口clk与所述电容充放电解码模块的端口SA相连,用于存储解码结果。Preferably, the capacitor charging and discharging decoding module includes: a charging and discharging capacitor C 0 , whose charging and discharging node C is connected to the input terminal of the common mode voltage VCM through the switch SWR; a current source I ch , which is connected in series with the switch SWP for The charging and discharging capacitor C 0 is charged; the current source I dis is connected in series with the switch SWN for discharging the charging and discharging capacitor C 0 ; the positive input terminal of the comparator is connected to the charging and discharging node of the charging and discharging capacitor C 0 C is connected, and its negative input terminal is connected to the common-mode voltage input terminal VCM, which is used to judge the voltage difference polarity between the voltage V C and the common-mode voltage VCM; the data input port D of the register is connected to the output terminal of the comparator , its data output port Q is connected to the data output terminal DATA of the capacitor charging and discharging decoding module, and its clock port clk is connected to the port SA of the capacitor charging and discharging decoding module for storing the decoding result.

优选的,在PWM信号低电平到来时,SWN断开同时SWP闭合,所述电流源Ich对充放电电容C0进行充电;在PWM信号高电平到来时,SWP断开同时SWN闭合,所述电流源Idis对充放电电容C0进行放电。Preferably, when the low level of the PWM signal arrives, the SWN is disconnected and the SWP is closed, and the current source I ch charges the charge and discharge capacitor C 0 ; when the high level of the PWM signal arrives, the SWP is disconnected and the SWN is closed, The current source I dis discharges the charge and discharge capacitor C 0 .

优选的,所述电流源Ich与电流源Idis均为可编程电流源,该可编程电流源Ich与可编程电流源Idis的电流根据PWM信号数据率变化而变化,数据率越大电流越大;反之越小。Preferably, the current source I ch and the current source I dis are both programmable current sources, and the currents of the programmable current source I ch and the programmable current source I dis vary according to the data rate of the PWM signal, and the higher the data rate The larger the current; the smaller the vice versa.

优选的,所述充放电电容C0为可编程充放电电容,该充放电电容C0容值根据PWM信号数据率变化而变化,数据率越大容值越小;反之越大。Preferably, the charge and discharge capacitor C 0 is a programmable charge and discharge capacitor, and the capacitance value of the charge and discharge capacitor C 0 changes according to the change of the data rate of the PWM signal, and the larger the data rate, the smaller the capacitance value;

优选的,所述串行PWM信号解码电路包括两个电容充放电解码模块,该两个电容充放电解码模块在时序逻辑产生电路的控制下交替工作,实现串行PWM信号的连续解码。Preferably, the serial PWM signal decoding circuit includes two capacitor charging and discharging decoding modules, and the two capacitor charging and discharging decoding modules work alternately under the control of the sequential logic generating circuit to realize continuous decoding of the serial PWM signal.

优选的,所述两个电容充放电解码模块分别为第一电容充放电解码模块和第二电容充放电解码模块;其中,第一电容充放电解码模块在串行PWM信号的奇数bit进行充放电,在偶数bit完成数据寄存输出以及模块的复位;第二电容充放电解码模块在串行PWM信号的偶数bit进行充放电,在奇数bit完成数据寄存输出以及模块的复位;从而两个模块交替工作实现串行PWM信号的连续解码。Preferably, the two capacitor charging and discharging decoding modules are respectively a first capacitor charging and discharging decoding module and a second capacitor charging and discharging decoding module; wherein, the first capacitor charging and discharging decoding module performs charging and discharging in odd-numbered bits of the serial PWM signal , complete the data register output and the reset of the module at the even-numbered bits; the second capacitor charge-discharge decoding module charges and discharges at the even-numbered bits of the serial PWM signal, and completes the data register output and the reset of the module at the odd-numbered bits; thus the two modules work alternately Achieve continuous decoding of serial PWM signals.

优选的,该充放电电容的充放电节点的电压VC与共模电压VCM的电压差在不同数据率下保持一致,即满足以下关系式:Preferably, the voltage difference between the voltage VC of the charging and discharging node of the charging and discharging capacitor and the voltage difference of the common mode voltage VCM is kept consistent under different data rates, that is, the following relational formula is satisfied:

其中,UI为1bit数据时间长度,I0为充放电电流,C0为充放电电容的电容,const为常数。Among them, UI is the time length of 1bit data, I0 is the charging and discharging current, C0 is the capacitance of the charging and discharging capacitor, and const is a constant.

根据本发明的另一个方面,提供了一种基于电容充放电结构的串行PWM信号解码电路进行解码的方法,包括:According to another aspect of the present invention, a method for decoding a serial PWM signal decoding circuit based on a capacitor charging and discharging structure is provided, comprising:

S1:在PWM信号到来之前,将一电容充放电解码模块的充放电电容C0初始电压值重置为共模电压VCM;S1: before the arrival of the PWM signal, reset the initial voltage value of the charging and discharging capacitor C 0 of a capacitor charging and discharging decoding module to the common mode voltage VCM;

S2:当一bit PWM信号到来时,所述充放电电容C0在该bit PWM信号低、高电平期间分别进行充、放电,所述充放电电容C0在该bit PWM信号充放电完成时的充放电节点C的电压为VCS2: When a bit PWM signal arrives, the charging and discharging capacitor C 0 is charged and discharged respectively during the low and high level periods of the bit PWM signal, and the charging and discharging capacitor C 0 is completed when the charging and discharging of the bit PWM signal is completed. The voltage of the charging and discharging node C is V C ;

S3:判断电压VC与共模电压VCM电压差ΔV极性识别PWM信号从而解码。S3: Determine the voltage difference ΔV between the voltage V C and the common mode voltage VCM to identify the PWM signal and decode the polarity.

(三)有益效果(3) Beneficial effects

从上述技术方案可以看出,本发明基于电容充放电结构的串行PWM信号解码电路及方法至少具有以下有益效果其中之一:It can be seen from the above technical solutions that the serial PWM signal decoding circuit and method based on the capacitor charging and discharging structure of the present invention have at least one of the following beneficial effects:

(1)本发明采用时序逻辑产生电路以及电容充放电解码模块,无须同步码即可实现串行PWM信号的解码,结构简单,避免了复杂的CDR,过采样结构的使用,提高了信号传输效率,节约了功耗。(1) The present invention adopts a sequential logic generating circuit and a capacitor charging and discharging decoding module, which can realize the decoding of serial PWM signals without synchronization codes, has a simple structure, avoids the use of complex CDR and oversampling structure, and improves the signal transmission efficiency , saving power consumption.

(2)本发明采用容值可编程充放电电容以及电流值可编程电流源,实现了不同速率下的PWM信号解码。(2) The present invention adopts a programmable charge-discharge capacitor and a programmable current source with a current value to realize PWM signal decoding at different rates.

附图说明Description of drawings

通过附图所示,本发明的上述及其它目的、特征和优势将更加清晰。在全部附图中相同的附图标记指示相同的部分。并未刻意按实际尺寸等比例缩放绘制附图,重点在于示出本发明的主旨。The above and other objects, features and advantages of the present invention will become more apparent from the accompanying drawings. The same reference numerals refer to the same parts throughout the drawings. The drawings are not intentionally scaled to actual size, and the emphasis is on illustrating the gist of the present invention.

图1为依据本发明实施例基于电容充放电结构的串行PWM信号解码电路结构示意图。FIG. 1 is a schematic structural diagram of a serial PWM signal decoding circuit based on a capacitor charging and discharging structure according to an embodiment of the present invention.

图2为依据本发明实施例电容充放电解码模块电路图。FIG. 2 is a circuit diagram of a capacitor charging and discharging decoding module according to an embodiment of the present invention.

图3为依据本发明实施例电容充放电解码模块工作时序示意图。FIG. 3 is a schematic diagram of a working sequence of a capacitor charging and discharging decoding module according to an embodiment of the present invention.

图4为依据本发明实施例时序逻辑产生电路输出时序逻辑信号示意图。4 is a schematic diagram of a sequential logic signal output by a sequential logic generating circuit according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to specific embodiments and accompanying drawings.

需要说明的是,在附图或说明书描述中,相似或相同的部分都使用相同的图号。附图中未绘示或描述的实现方式,为所属技术领域中普通技术人员所知的形式。另外,虽然本文可提供包含特定值的参数的示范,但应了解,参数无需确切等于相应的值,而是可在可接受的误差容限或设计约束内近似于相应的值。实施例中提到的方向用语,例如“上”、“下”、“前”、“后”、“左”、“右”等,仅是参考附图的方向。因此,使用的方向用语是用来说明并非用来限制本发明的保护范围。It should be noted that, in the drawings or descriptions in the specification, the same drawing numbers are used for similar or identical parts. Implementations not shown or described in the drawings are forms known to those of ordinary skill in the art. Additionally, although examples of parameters including specific values may be provided herein, it should be understood that the parameters need not be exactly equal to the corresponding values, but may be approximated within acceptable error tolerances or design constraints. Directional terms mentioned in the embodiments, such as "up", "down", "front", "rear", "left", "right", etc., only refer to the directions of the drawings. Therefore, the directional terms used are used to illustrate and not to limit the scope of protection of the present invention.

图1为依据本发明实施例基于电容充放电结构的串行PWM信号解码电路结构示意图。请参照图1,本实施例基于电容充放电结构的串行PWM信号解码电路,包括:FIG. 1 is a schematic structural diagram of a serial PWM signal decoding circuit based on a capacitor charging and discharging structure according to an embodiment of the present invention. Referring to FIG. 1 , the serial PWM signal decoding circuit based on the capacitor charging and discharging structure in this embodiment includes:

时序逻辑产生电路,其输入端接收PWM差分信号,并根据输入的PWM差分信号产生时序逻辑信号;A sequential logic generating circuit, whose input terminal receives PWM differential signals, and generates sequential logic signals according to the input PWM differential signals;

至少两个电容充放电解码模块,其输入端分别与所述时序逻辑产生电路的输出端连接,接收该时序逻辑产生电路发送的时序逻辑信号,并根据该时序逻辑信号进行充放电;其中,所述电容充放电解码模块的充放电电容在充放电之前的电压为共模电压VCM,充放电结束后的所述充放电电容的充放电节点的电压为VC,通过判断二者的电压差极性识别PWM信号从而解码。At least two capacitor charging and discharging decoding modules, whose input ends are respectively connected with the output ends of the sequential logic generating circuit, receive the sequential logic signal sent by the sequential logic generating circuit, and perform charging and discharging according to the sequential logic signal; The voltage of the charging and discharging capacitor of the capacitor charging and discharging decoding module before charging and discharging is the common mode voltage VCM, and the voltage of the charging and discharging node of the charging and discharging capacitor after the charging and discharging is completed is V C . By judging the voltage difference between the two to identify the PWM signal to decode it.

具体的,所述基于电容充放电结构的串行PWM信号解码电路可包括两个电容充放电解码模块,在时序逻辑产生电路的控制下两个充放电解码模块交替工作,实现串行PWM信号的连续解码。Specifically, the serial PWM signal decoding circuit based on the capacitor charging and discharging structure may include two capacitor charging and discharging decoding modules, and the two charging and discharging decoding modules work alternately under the control of the sequential logic generating circuit to realize the serial PWM signal decoding. Continuous decoding.

更具体而言,所述两个电容充放电解码模块为第一电容充放电解码模块和第二电容充放电解码模块;其中,第一个充放电解码模块可在串行PWM信号的奇数bit进行充放电,在偶数bit完成数据寄存输出以及模块的复位,第二个充放电解码模块可在串行PWM信号的偶数bit进行充放电,在奇数bit完成数据寄存输出以及模块的复位,从而两个模块交替工作实现串行PWM信号的连续解码。当然,也可以将两个电容充放电解码模块的工作顺序调换,交替即可。More specifically, the two capacitor charging and discharging decoding modules are a first capacitor charging and discharging decoding module and a second capacitor charging and discharging decoding module; wherein, the first charging and discharging decoding module can be performed at odd-numbered bits of the serial PWM signal. Charge and discharge, complete the data register output and module reset at the even-numbered bits, the second charge-discharge decoding module can charge and discharge at the even-numbered bits of the serial PWM signal, and complete the data register output and module reset at the odd-numbered bits, so that the two The modules work alternately to achieve continuous decoding of serial PWM signals. Of course, the working order of the two capacitor charge-discharge decoding modules can also be exchanged and alternated.

另外,所述基于电容充放电结构的串行PWM信号解码电路也可以包括三个以上的电容充放电解码模块,在时序逻辑产生电路的控制下三个以上的电容充放电解码模块顺序依次工作,即可实现串行PWM信号的连续解码。以三个电容充放电解码模块为例,所述三个电容充放电解码模块为第一电容充放电解码模块、第二电容充放电解码模块、第三电容充放电解码模块;其中,第一电容充放电解码模块可在串行PWM信号的第一bit进行充放电,在第二、三电容充放电解码模块充放电期间完成数据寄存输出以及模块的复位;第二电容充放电解码模块可在串行PWM信号的第二bit进行充放电,在第三、一电容充放电解码模块充放电期间进行数据寄存输出以及模块的复位;第三电容充放电解码模块可在串行PWM信号的第三bit进行充放电,在第一、二电容充放电解码模块充放电期间进行数据寄存输出以及模块的复位,从而三个模块交替工作实现串行PWM信号的连续解码。当然也可以将电容充放电解码模块的工作顺序调换,只需任一bit期间至少一个电容充放电解码模块进行充放电,同时其余电容充放电解码模块在该bit进行数据寄存输出以及模块的复位即可。In addition, the serial PWM signal decoding circuit based on the capacitor charging and discharging structure may also include more than three capacitor charging and discharging decoding modules, and under the control of the sequential logic generating circuit, the three or more capacitor charging and discharging decoding modules work sequentially in sequence, The continuous decoding of the serial PWM signal can be realized. Taking three capacitor charging and discharging decoding modules as an example, the three capacitor charging and discharging decoding modules are a first capacitor charging and discharging decoding module, a second capacitor charging and discharging decoding module, and a third capacitor charging and discharging decoding module; wherein, the first capacitor The charging and discharging decoding module can charge and discharge the first bit of the serial PWM signal, and complete the data register output and module reset during the charging and discharging of the second and third capacitor charging and discharging decoding modules; the second capacitor charging and discharging decoding module can be used in the serial The second bit of the row PWM signal is charged and discharged, and the data register output and module reset are performed during the charging and discharging of the third and first capacitor charging and discharging decoding modules; the third capacitor charging and discharging decoding module can be used in the third bit of the serial PWM signal. Perform charging and discharging, and perform data register output and module reset during the charging and discharging of the first and second capacitor charging and discharging decoding modules, so that the three modules work alternately to realize continuous decoding of serial PWM signals. Of course, the working order of the capacitor charging and discharging decoding module can also be reversed. It only needs to charge and discharge at least one capacitor charging and discharging decoding module during any bit period, while the other capacitor charging and discharging decoding modules perform data register output and module reset in this bit. Can.

请继续参照图1,所述时序逻辑产生电路,包括:Please continue to refer to FIG. 1 , the sequential logic generating circuit includes:

输入端口PWM_P、PWM_N,用于接收输入的低压差分PWM信号;Input ports PWM_P, PWM_N, used to receive the input low-voltage differential PWM signal;

至少两组时序逻辑输出端口,分别与所述至少两个电容充放电解码模块的输入端口连接,其中,At least two groups of sequential logic output ports are respectively connected to the input ports of the at least two capacitor charging and discharging decoding modules, wherein,

第一组时序逻辑输出端口的输出信号分别为SWP1、SWN1、SWR1、SA1;SWP1用于控制第一电容充放电解码模块的充电开关SWP,SWN1用于控制第一电容充放电解码模块的放电开关SWN,SWR1用于控制第一电容充放电解码模块的复位开关SWR,SA1与第一电容充放电解码模块SA端口相连。The output signals of the first group of sequential logic output ports are SWP1, SWN1, SWR1, SA1 respectively; SWP1 is used to control the charging switch SWP of the first capacitor charging and discharging decoding module, and SWN1 is used to control the first capacitor charging and discharging decoding module The discharge switch of the decoding module SWN and SWR1 are used to control the reset switch SWR of the first capacitor charging and discharging decoding module, and SA1 is connected to the SA port of the first capacitor charging and discharging decoding module.

相应的,第二组时序逻辑输出端口的输出信号分别为SWP2、SWN2、SWR2、SA2;SWP2用于控制第二电容充放电解码模块的充电开关SWP,SWN2用于控制第二电容充放电解码模块的放电开关SWN,SWR2用于控制第二电容充放电解码模块的复位开关SWR,SA2与第二电容充放电解码模块SA端口相连。Correspondingly, the output signals of the second group of sequential logic output ports are respectively SWP2, SWN2, SWR2, SA2; SWP2 is used to control the charging switch SWP of the second capacitor charging and discharging decoding module, and SWN2 is used to control the second capacitor charging and discharging decoding module. The discharge switches SWN and SWR2 are used to control the reset switch SWR of the second capacitor charging and discharging decoding module, and SA2 is connected to the SA port of the second capacitor charging and discharging decoding module.

图2为依据本发明实施例电容充放电解码模块电路图。请参照图2,本实施例电容充放电解码模块,包括:FIG. 2 is a circuit diagram of a capacitor charging and discharging decoding module according to an embodiment of the present invention. Please refer to FIG. 2 , the capacitor charging and discharging decoding module in this embodiment includes:

充放电电容C0,其充放电节点C与共模电压输入端VCM通过一开关SWR连接;the charging and discharging capacitor C 0 , the charging and discharging node C is connected to the common mode voltage input terminal VCM through a switch SWR;

电流源Ich,其串联一开关SWP用于对充放电电容C0进行充电;a current source I ch , which is connected in series with a switch SWP for charging the charging and discharging capacitor C 0 ;

电流源Idis,其串联一开关SWN用于对充放电电容C0进行放电;a current source I dis , which is connected in series with a switch SWN for discharging the charging and discharging capacitor C 0 ;

比较器,其正输入端与充放电电容C0的充放电节点C相连,其负输入端与共模电压输入端VCM连接。Comparator, its positive input terminal is connected to the charging and discharging node C of the charging and discharging capacitor C 0 , and its negative input terminal is connected to the common mode voltage input terminal VCM.

寄存器,其数据输入端口D与比较器的输出端连接,数据输出端口Q与所述电容充放电解码模块数据输出端DATA相连,其时钟端口clk与电容充放电解码模块的端口SA相连。The data input port D of the register is connected to the output end of the comparator, the data output port Q is connected to the data output end DATA of the capacitor charging and discharging decoding module, and its clock port clk is connected to the port SA of the capacitor charging and discharging decoding module.

具体的,在PWM信号低电平到来时,SWR断开同时SWP闭合,所述电流源Ich对充放电电容C0进行充电;在高电平到来时,SWP断开同时SWN闭合,所述电流源Idis对充放电电容C0进行放电。Specifically, when the low level of the PWM signal arrives, the SWR is disconnected and the SWP is closed, and the current source I ch charges the charging and discharging capacitor C 0 ; when the high level arrives, the SWP is disconnected and the SWN is closed, the The current source I dis discharges the charge and discharge capacitor C 0 .

所述电容充放电解码模块,通过比较器判断电压VC与共模电压VCM电压差ΔV极性识别PWM信号从而解码;通过寄存器对解码结果进行存储。The capacitor charging and discharging decoding module determines the voltage difference ΔV between the voltage V C and the common mode voltage VCM through the comparator to identify the polarity of the PWM signal and decode the PWM signal; the decoding result is stored in the register.

优选的,所述电流源Ich与电流源Idis均为可编程电流源。所述可编程电流源Ich和可编程电流源Idis电流根据PWM信号数据率变化而变化,数据率越大电流越大;反之越小。所述充放电电容C0为可编程充放电电容。其中充放电电容C0容值根据PWM信号数据率变化而变化,数据率越大容值越小;反之越大。Preferably, the current source I ch and the current source I dis are both programmable current sources. The currents of the programmable current source I ch and the programmable current source I dis vary according to the change of the data rate of the PWM signal, the higher the data rate, the larger the current; otherwise, the smaller the current. The charging and discharging capacitor C 0 is a programmable charging and discharging capacitor. Among them, the capacitance value of the charge and discharge capacitor C 0 changes according to the change of the PWM signal data rate. The larger the data rate, the smaller the capacitance value; otherwise, the larger it is.

下面详细介绍本发明实施例电容充放电解码模块工作过程。图3为本发明实施例电容充放电解码模块工作时序示意图。The working process of the capacitor charging and discharging decoding module according to the embodiment of the present invention is described in detail below. FIG. 3 is a schematic diagram of a working sequence of a capacitor charging and discharging decoding module according to an embodiment of the present invention.

请参照图3,在PWM信号到来之前,充放电电容初始电压值为共模电压VCM,当第一bit PWM信号的低电平到来时,SWN断开同时SWP闭合,若PWM信号为0,即低电平为2/3UI(UI为1bit数据时间长度),高电平为1/3UI,充放电电容C0经历2/3个UI的时间充电,充电电流为I0,在高电平到来时,SWP断开同时SWN闭合充放电电容C0经历1/3个UI的时间放电,放电电流为I0,SWN断开,此时充放电电容C0的充放电节点C的电压VC与VCM存在一正电压差ΔV:Referring to Figure 3, before the arrival of the PWM signal, the initial voltage of the charging and discharging capacitor is the common mode voltage VCM. When the low level of the first bit PWM signal arrives, the SWN is turned off and the SWP is turned on. If the PWM signal is 0, that is, The low level is 2/3UI (UI is the time length of 1bit data), the high level is 1/3UI, the charging and discharging capacitor C 0 is charged in 2/3 UI, and the charging current is I 0 , which arrives at the high level. When the SWP is turned off and the SWN is turned on, the charge and discharge capacitor C 0 is discharged for 1/3 UI, the discharge current is I 0 , and the SWN is turned off. At this time, the voltage V C of the charge and discharge node C of the charge and discharge capacitor C 0 is equal to There is a positive voltage difference ΔV in VCM:

若PWM信号为1,即低电平为1/3UI,高电平为2/3UI,充放电电容C0经历1/3个UI的时间充电,以及2/3个UI的时间放电,充放电电流为I0,SWN断开,此时充放电电容C0的充放电节点C的电压VC与VCM存在一负电压差-ΔV:If the PWM signal is 1, that is, the low level is 1/3UI, the high level is 2/3UI, the charging and discharging capacitor C 0 will be charged in 1/3 UI time, and discharged in 2/3 UI time. The current is I 0 , and SWN is turned off. At this time, the voltage V C and VCM of the charging and discharging node C of the charging and discharging capacitor C 0 have a negative voltage difference - ΔV :

第一bit PWM信号结束后,充放电节点C的电压需保持一段时间t1以确保比较器正确识别ΔV或者-ΔV并输出满摆幅的比较结果,SA信号在第一bit PWM信号结束后的t1时刻发生上升沿调变,寄存器在这一上升沿的触发下将比较器比较结果存储并输出至DATA,完成第一bit PWM信号的解码。After the first bit PWM signal ends, the voltage of the charging and discharging node C needs to be maintained for a period of time t 1 to ensure that the comparator correctly identifies ΔV or -ΔV and outputs the comparison result of full swing. The SA signal ends at the end of the first bit PWM signal. The rising edge modulation occurs at the next time t1 , and the register stores the comparator comparison result and outputs it to DATA under the trigger of this rising edge, and completes the decoding of the first bit PWM signal.

SA需在第二bit PWM信号结束之前变低。SWR在SA上升沿之后延时t2确保寄存器完成数据寄存并输出后闭合一段时间,将充放电电容电压重新置为VCM,SWR需在第二bit PWM信号结束之前断开,电容充放电解码模块在第一bit PWM信号期间完成充放电,且在第二bit PWM信号期间完成数据寄存输出以及模块的复位。SA needs to go low before the end of the second bit PWM signal. SWR delays t 2 after the rising edge of SA to ensure that the register is closed for a period of time after completing data registration and output, and resets the charging and discharging capacitor voltage to VCM. SWR needs to be disconnected before the end of the second bit PWM signal, and the capacitor charging and discharging decoding module The charging and discharging are completed during the first bit PWM signal, and the data register output and module reset are completed during the second bit PWM signal.

当输入PWM数据率发生变化,即UI的值发生变化,为了确保解码效果不受数据率的影响,ΔV或者-ΔV在不同数据率下应保持一致。即:When the input PWM data rate changes, that is, the value of UI changes, in order to ensure that the decoding effect is not affected by the data rate, ΔV or -ΔV should be consistent under different data rates. which is:

const为常数,当数据率变大UI变小,可以通过增加I0或者降低C0来确保电容充放电解码模块的正常工作,当数据率变小UI变大,可以通过降低I0或者增加C0来确保电容充放电解码模块的正常工作。const is a constant. When the data rate becomes larger and UI becomes smaller, you can increase I 0 or decrease C 0 to ensure the normal operation of the capacitor charging and discharging decoding module. When the data rate becomes smaller and UI becomes larger, you can decrease I 0 or increase C 0 to ensure the normal operation of the capacitor charging and discharging decoding module.

下面以两个电容充放电解码模块的情况为例,详细介绍本发明实施例时序逻辑产生电路输出时序逻辑过程。图4为时序逻辑产生电路输出时序逻辑信号示意图,在PWM信号到来之前第一电容充放电解码模块充放电电容初始电压值共模电压VCM,当第一bit PWM信号的低电平到来时,SWR1断开同时SWP1闭合,第一电容充放电解码模块充放电电容在低电平期间进行充电,在高电平到来时,SWP1断开同时SWN1闭合第一电容充放电解码模块充放电电容在高电平期间进行放电,高电平束后SWN1断开,完成充电放电过程,经过一段时间t1以确保比较器输出正确比较结果,SA1信号在第一bit PWM信号结束后的t1时刻发生上升沿调变,寄存器在这一上升沿的触发下将比较器比较结果存储并输出至DATA,完成第一bitPWM信号的解码。The following takes the case of two capacitor charging and discharging decoding modules as an example to describe in detail the output sequential logic process of the sequential logic generating circuit according to the embodiment of the present invention. Figure 4 is a schematic diagram of the sequential logic signal output by the sequential logic generation circuit. Before the arrival of the PWM signal, the initial voltage value of the charging and discharging capacitor of the first capacitor charging and discharging decoding module is the common mode voltage VCM. When the low level of the first bit PWM signal arrives, SWR1 When it is disconnected and SWP1 is closed, the charging and discharging capacitor of the first capacitor charging and discharging decoding module is charged during the low level period. When the high level arrives, SWP1 is disconnected and SWN1 is closed. The discharge is carried out during the flat period. After the high level ends, SWN1 is disconnected to complete the charging and discharging process. After a period of t 1 to ensure that the comparator outputs the correct comparison result, the SA1 signal has a rising edge at t 1 after the end of the first bit PWM signal. Modulation, the register stores the comparison result of the comparator under the trigger of this rising edge and outputs it to DATA to complete the decoding of the first bitPWM signal.

SA1需在第二bit信号结束之前变低。SWR1在SA1上升沿之后延时t2确保寄存器完成数据寄存及输出后闭合一段时间,将充放电电容电压重新置为VCM,SWR1需在第二bitPWM信号结束之前断开,第一电容充放电解码模块在第一bit PWM信号期间完成充放电,且在第二bit PWM信号期间完成数据寄存输出以及模块的复位。SA1 needs to go low before the end of the second bit signal. SWR1 delays t 2 after the rising edge of SA1 to ensure that the register is closed for a period of time after completing data registration and output, and resets the charge and discharge capacitor voltage to VCM. SWR1 needs to be disconnected before the end of the second bitPWM signal, and the first capacitor is charged and discharged to decode The module completes charging and discharging during the first bit PWM signal, and completes data register output and module reset during the second bit PWM signal.

在第一bit PWM信号期间第二电容充放电解码模块完成初始化,当第二bit PWM信号的低电平到来时,SWR2断开同时SWP2闭合,第二电容充放电解码模块的充放电电容在低电平期间进行充电,在高电平到来时,SWP2断开同时SWN2闭合第一电容充放电解码模块的充放电电容在高电平期间进行放电,高电平束后SWN2断开,完成充电放电过程,经过一段时间t1以确保比较器输出正确比较结果,SA2信号在第一bit PWM信号结束后的t1时刻发生上升沿调变,寄存器在这一上升沿的触发下将比较器比较结果存储并输出至DATA,完成第一bit PWM信号的解码。During the period of the first bit PWM signal, the second capacitor charging and discharging decoding module completes initialization. When the low level of the second bit PWM signal arrives, SWR2 is turned off and SWP2 is closed, and the charging and discharging capacitance of the second capacitor charging and discharging decoding module is low. Charging is performed during the high-level period. When the high-level comes, SWP2 is disconnected and SWN2 is closed. The first capacitor is charged and discharged. The charging and discharging capacitor of the decoding module is discharged during the high-level period. In the process, after a period of time t 1 to ensure that the comparator outputs the correct comparison result, the SA2 signal undergoes a rising edge modulation at time t 1 after the end of the first bit PWM signal, and the register will compare the result of the comparator under the trigger of this rising edge. Store and output to DATA to complete the decoding of the first bit PWM signal.

SA2需在第二bit信号结束之前变低。SWR2在SA2上升沿之后延时t2确保寄存器完成数据寄存并输出后闭合一段时间,将充放电电容电压重新置为VCM,SWR2需在第三bitPWM信号结束之前断开,第二电容充放电解码模块在第二bit PWM信号期间完成充放电,且在第三bit PWM信号期间完成数据寄存输出以及模块的复位。SA2 needs to go low before the end of the second bit signal. SWR2 delays t 2 after the rising edge of SA2 to ensure that the register is closed for a period of time after completing data registration and output, and resets the charge and discharge capacitor voltage to VCM, SWR2 needs to be disconnected before the end of the third bitPWM signal, and the second capacitor is charged and discharged to decode The module completes charging and discharging during the second bit PWM signal, and completes data register output and module reset during the third bit PWM signal.

在时序逻辑产生电路的控制下两个电容充放电解码模块交替工作,第一电容充放电解码模块在串行PWM信号的奇数bit进行充放电,在偶数bit完成数据寄存输出以及模块的复位,第二电容充放电解码模块在串行PWM信号的偶数bit进行充放电,在奇数bit完成数据寄存输出以及模块的复位,两个模块交替工作即可实现串行PWM信号的连续解码。Under the control of the sequential logic generation circuit, the two capacitor charging and discharging decoding modules work alternately. The first capacitor charging and discharging decoding module performs charging and discharging in the odd-numbered bits of the serial PWM signal, and completes the data register output and module reset in the even-numbered bits. The two-capacitor charging and discharging decoding module charges and discharges the even-numbered bits of the serial PWM signal, and completes the data register output and module reset at the odd-numbered bits. The two modules work alternately to realize the continuous decoding of the serial PWM signal.

另外,本发明实施例还提供了一种串行PWM信号解码方法,包括:In addition, an embodiment of the present invention also provides a serial PWM signal decoding method, including:

S1:在PWM信号到来之前,将一电容充放电解码模块的充放电电容C0初始电压值重置为共模电压VCM;S1: before the arrival of the PWM signal, reset the initial voltage value of the charging and discharging capacitor C 0 of a capacitor charging and discharging decoding module to the common mode voltage VCM;

S2:当一bit PWM信号到来时,所述充放电电容C0在该bit PWM信号低、高电平期间分别进行充、放电,所述充放电电容C0在该bit PWM信号充放电完成时的充放电节点C的电压为VCS2: When a bit PWM signal arrives, the charging and discharging capacitor C 0 is charged and discharged respectively during the low and high level periods of the bit PWM signal, and the charging and discharging capacitor C 0 is completed when the charging and discharging of the bit PWM signal is completed. The voltage of the charging and discharging node C is V C ;

S3:判断电压VC与共模电压VCM电压差ΔV极性识别PWM信号从而解码。S3: Determine the voltage difference ΔV between the voltage V C and the common mode voltage VCM to identify the PWM signal and decode the polarity.

本发明中,所有能产生驱动上述至少两个电容充放电解码模块完成解码工作的时序逻辑产生电路均可以用于本发明的基于电容充放电结构的串行PWM信号解码电路,无论时序逻辑产生电路具体以何种方式实现,均属于本发明的权利要求保护范围之内。In the present invention, all sequential logic generating circuits capable of generating and driving the above-mentioned at least two capacitor charging and discharging decoding modules to complete the decoding work can be used in the serial PWM signal decoding circuit based on the capacitor charging and discharging structure of the present invention, regardless of the sequential logic generating circuit. The specific manner in which it is implemented falls within the protection scope of the claims of the present invention.

本发明实施例基于电容充放电结构的串行PWM信号解码电路及方法,结构简单,避免了复杂的CDR,过采样结构的使用,采用容值可编程充放电电容以及电流值可编程电流源以实现了不同速率下的PWM信号解码。同时该PWM信号解码电路无需同步码流即能完整地实现对接收到的所有PWM信号实现解码,因此提高了信号传输效率降低了功耗。A serial PWM signal decoding circuit and method based on a capacitor charging and discharging structure in the embodiment of the present invention has a simple structure, avoids the use of complex CDR and oversampling structures, and adopts a programmable capacitance value charging and discharging capacitor and a current value programmable current source to The PWM signal decoding at different rates is realized. At the same time, the PWM signal decoding circuit can completely realize the decoding of all received PWM signals without synchronizing the code stream, thus improving the signal transmission efficiency and reducing the power consumption.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

需要说明的是,在附图或说明书正文中,未绘示或描述的实现方式,均为所属技术领域中普通技术人员所知的形式,并未进行详细说明。此外,上述对各元件和方法的定义并不仅限于实施例中提到的各种具体结构、形状或方式,本领域普通技术人员可对其进行简单地更改或替换,例如:It should be noted that, in the accompanying drawings or the text of the description, the implementations that are not shown or described are in the form known to those of ordinary skill in the technical field, and are not described in detail. In addition, the above definitions of each element and method are not limited to various specific structures, shapes or manners mentioned in the embodiments, and those of ordinary skill in the art can simply modify or replace them, for example:

所述充放电解码模块也可在PWM信号低电平期间进行放电,高电平期间进行充电,同样可以实现本发明。The charging and discharging decoding module can also discharge during the low level period of the PWM signal and charge during the high level period, and the present invention can also be implemented.

以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (8)

1.一种基于电容充放电结构的串行PWM信号解码电路,其特征在于,包括:1. a serial PWM signal decoding circuit based on capacitor charge-discharge structure, is characterized in that, comprises: 时序逻辑产生电路,其输入端接收PWM差分信号,并根据输入的PWM差分信号产生时序逻辑信号;A sequential logic generating circuit, whose input terminal receives PWM differential signals, and generates sequential logic signals according to the input PWM differential signals; 至少两个电容充放电解码模块,其输入端分别与所述时序逻辑产生电路的输出端连接,接收该时序逻辑产生电路发送的时序逻辑信号,并根据该时序逻辑信号进行充放电;其中,at least two capacitor charging and discharging decoding modules, whose input ends are respectively connected with the output ends of the sequential logic generating circuit, receive the sequential logic signal sent by the sequential logic generating circuit, and perform charging and discharging according to the sequential logic signal; wherein, 解码过程中所述电容充放电解码模块的充放电电容在充放电之前的电压为共模电压VCM,在充放电结束后充放电节点的电压为VC,通过判断二者的电压差极性识别PWM信号从而解码;其中,During the decoding process, the voltage of the charging and discharging capacitor of the capacitor charging and discharging decoding module before charging and discharging is the common mode voltage VCM, and the voltage of the charging and discharging node after the charging and discharging is completed is V C , which is identified by judging the polarity of the voltage difference between the two PWM signal is thus decoded; where, 所述电容充放电解码模块,包括:The capacitor charging and discharging decoding module includes: 充放电电容C0,其充放电节点C与共模电压VCM输入端通过复位开关SWR连接;The charging and discharging capacitor C 0 , and the charging and discharging node C is connected to the input terminal of the common mode voltage VCM through the reset switch SWR; 电流源Ich,其串联充电开关SWP用于对充放电电容C0进行充电;the current source I ch , the series charging switch SWP is used to charge the charging and discharging capacitor C 0 ; 电流源Idis,其串联放电开关SWN用于对充放电电容C0进行放电;a current source I dis , whose series-connected discharge switch SWN is used to discharge the charge and discharge capacitor C 0 ; 比较器,其正输入端与所述充放电电容C0的充放电节点C相连,其负输入端与所述共模电压输入端VCM连接,用于判断电压VC与共模电压VCM的电压差极性;A comparator, whose positive input terminal is connected to the charging and discharging node C of the charging and discharging capacitor C 0 , and whose negative input terminal is connected to the common mode voltage input terminal VCM, is used to judge the voltage difference between the voltage V C and the common mode voltage VCM polarity; 寄存器,其数据输入端口D与所述比较器的输出端连接,其数据输出端口Q与所述电容充放电解码模块的数据输出端DATA相连,其时钟端口clk与所述电容充放电解码模块的端口SA相连,用于存储解码结果;Register, its data input port D is connected to the output end of the comparator, its data output port Q is connected to the data output end DATA of the capacitor charging and discharging decoding module, and its clock port clk is connected to the capacitor charging and discharging decoding module. The port SA is connected to store the decoding result; 所述至少两个电容充放电解码模块在时序逻辑产生电路的控制下交替工作,实现串行PWM信号的连续解码;The at least two capacitor charging and discharging decoding modules work alternately under the control of the sequential logic generating circuit to realize continuous decoding of serial PWM signals; 该充放电电容的充放电节点的电压VC与共模电压VCM的电压差在不同数据率下保持一致,即满足以下关系式:The voltage difference between the voltage V C of the charging and discharging node of the charging and discharging capacitor and the voltage difference of the common mode voltage VCM remains the same at different data rates, that is, the following relationship is satisfied: 其中,UI为1bit数据时间长度,I0为充放电电流,C0为充放电电容的电容,const为常数。Among them, UI is the 1-bit data time length, I 0 is the charging and discharging current, C 0 is the capacitance of the charging and discharging capacitor, and const is a constant. 2.根据权利要求1所述的基于电容充放电结构的串行PWM信号解码电路,其特征在于,所述时序逻辑产生电路,包括:2. The serial PWM signal decoding circuit based on a capacitor charging and discharging structure according to claim 1, wherein the sequential logic generating circuit comprises: 输入端口PWM_P、PWM_N用于接收输入的低压差分PWM信号;The input ports PWM_P and PWM_N are used to receive the input low-voltage differential PWM signal; 至少两组时序逻辑输出端口,分别与所述至少两个电容充放电解码模块的输入端口连接,其中,At least two groups of sequential logic output ports are respectively connected to the input ports of the at least two capacitor charging and discharging decoding modules, wherein, 第一组时序逻辑输出端口的输出信号为SWP1、SWN1、SWR1及SA1,分别用于控制第一电容充放电解码模块的充电开关SWP、放电开关SWN、复位开关SWR以及端口SA;The output signals of the first group of sequential logic output ports are SWP1, SWN1, SWR1 and SA1, which are respectively used to control the charging switch SWP, the discharging switch SWN, the reset switch SWR and the port SA of the first capacitor charging and discharging decoding module; 第二组时序逻辑输出端口的输出信号为SWP2、SWN2、SWR2及SA2,分别用于控制第二电容充放电解码模块的充电开关SWP、放电开关SWN、复位开关SWR以及端口SA。The output signals of the second group of sequential logic output ports are SWP2, SWN2, SWR2 and SA2, respectively used to control the charging switch SWP, discharging switch SWN, reset switch SWR and port SA of the second capacitor charging and discharging decoding module. 3.根据权利要求2所述的基于电容充放电结构的串行PWM信号解码电路,其特征在于,在PWM信号低电平到来时,放电开关SWN断开同时充电开关SWP闭合,所述电流源Ich对充放电电容C0进行充电;在PWM信号高电平到来时,充电开关SWP断开同时放电开关SWN闭合,所述电流源Idis对充放电电容C0进行放电。3 . The serial PWM signal decoding circuit based on the capacitor charging and discharging structure according to claim 2 , wherein when the low level of the PWM signal arrives, the discharge switch SWN is turned off and the charge switch SWP is turned on, and the current source I ch charges the charging and discharging capacitor C 0 ; when the high level of the PWM signal arrives, the charging switch SWP is turned off and the discharging switch SWN is turned on, and the current source I dis discharges the charging and discharging capacitor C 0 . 4.根据权利要求2所述的基于电容充放电结构的串行PWM信号解码电路,其特征在于,所述电流源Ich与电流源Idis均为可编程电流源,该可编程电流源Ich与可编程电流源Idis的电流根据PWM信号数据率变化而变化,数据率越大电流越大;反之越小。4. The serial PWM signal decoding circuit based on a capacitor charging and discharging structure according to claim 2, wherein the current source I ch and the current source I dis are both programmable current sources, and the programmable current source I The currents of ch and the programmable current source Idis vary according to the data rate of the PWM signal. The larger the data rate, the larger the current; otherwise, the smaller it is. 5.根据权利要求2所述的基于电容充放电结构的串行PWM信号解码电路,其特征在于,所述充放电电容C0为可编程充放电电容,该充放电电容C0容值根据PWM信号数据率变化而变化,数据率越大容值越小;反之越大。5 . The serial PWM signal decoding circuit based on the capacitor charging and discharging structure according to claim 2 , wherein the charging and discharging capacitor C 0 is a programmable charging and discharging capacitor, and the capacitance value of the charging and discharging capacitor C 0 is based on the PWM. 6 . The signal data rate changes, the larger the data rate, the smaller the capacitance value; otherwise, the larger it is. 6.根据权利要求2所述的基于电容充放电结构的串行PWM信号解码电路,其特征在于,所述串行PWM信号解码电路包括两个电容充放电解码模块,该两个电容充放电解码模块在时序逻辑产生电路的控制下交替工作,实现串行PWM信号的连续解码。6 . The serial PWM signal decoding circuit based on a capacitor charging and discharging structure according to claim 2 , wherein the serial PWM signal decoding circuit comprises two capacitor charging and discharging decoding modules, the two capacitor charging and discharging decoding The modules work alternately under the control of the sequential logic generating circuit to realize the continuous decoding of serial PWM signals. 7.根据权利要求6所述的基于电容充放电结构的串行PWM信号解码电路,其特征在于,所述两个电容充放电解码模块分别为第一电容充放电解码模块和第二电容充放电解码模块;其中,7 . The serial PWM signal decoding circuit based on a capacitor charging and discharging structure according to claim 6 , wherein the two capacitor charging and discharging decoding modules are respectively a first capacitor charging and discharging decoding module and a second capacitor charging and discharging decoding module. 8 . decoding module; wherein, 第一电容充放电解码模块在串行PWM信号的奇数bit进行充放电,在偶数bit完成数据寄存输出以及模块的复位;The first capacitor charging and discharging decoding module performs charging and discharging in odd-numbered bits of the serial PWM signal, and completes data register output and module reset in even-numbered bits; 第二电容充放电解码模块在串行PWM信号的偶数bit进行充放电,在奇数bit完成数据寄存输出以及模块的复位;从而所述两个电容充放电解码模块交替工作实现串行PWM信号的连续解码。The second capacitor charging and discharging decoding module performs charging and discharging in the even-numbered bits of the serial PWM signal, and completes data register output and module reset in the odd-numbered bits; thus, the two capacitor charging and discharging decoding modules work alternately to realize the continuous serial PWM signal. decoding. 8.一种采用如权利要求1至7中任一项所述的基于电容充放电结构的串行PWM信号解码电路进行解码的方法,其特征在于,包括:8. A method for decoding using the serial PWM signal decoding circuit based on the capacitor charge-discharge structure according to any one of claims 1 to 7, characterized in that, comprising: S1:在PWM信号到来之前,将一电容充放电解码模块的充放电电容C0初始电压值重置为共模电压VCM;S1: before the arrival of the PWM signal, reset the initial voltage value of the charging and discharging capacitor C 0 of a capacitor charging and discharging decoding module to the common mode voltage VCM; S2:当一bit PWM信号到来时,所述充放电电容C0在该bit PWM信号低、高电平期间分别进行充、放电,所述充放电电容C0在该bit PWM信号充放电完成时的充放电节点C的电压为VCS2: When a bit PWM signal arrives, the charging and discharging capacitor C 0 is charged and discharged respectively during the low and high level periods of the bit PWM signal, and the charging and discharging capacitor C 0 is completed when the charging and discharging of the bit PWM signal is completed. The voltage of the charging and discharging node C is V C ; S3:判断电压VC与共模电压VCM电压差ΔV极性识别PWM信号从而解码。S3: Determine the voltage difference ΔV between the voltage V C and the common mode voltage VCM to identify the PWM signal and decode the polarity.
CN201710166006.XA 2017-03-20 2017-03-20 Serial PWM signal decoding circuit and method based on capacitor charging and discharging structure Active CN106951385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710166006.XA CN106951385B (en) 2017-03-20 2017-03-20 Serial PWM signal decoding circuit and method based on capacitor charging and discharging structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710166006.XA CN106951385B (en) 2017-03-20 2017-03-20 Serial PWM signal decoding circuit and method based on capacitor charging and discharging structure

Publications (2)

Publication Number Publication Date
CN106951385A CN106951385A (en) 2017-07-14
CN106951385B true CN106951385B (en) 2019-09-24

Family

ID=59471931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710166006.XA Active CN106951385B (en) 2017-03-20 2017-03-20 Serial PWM signal decoding circuit and method based on capacitor charging and discharging structure

Country Status (1)

Country Link
CN (1) CN106951385B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018170681A1 (en) * 2017-03-20 2018-09-27 中国科学院微电子研究所 Serial pwm signal decoding circuit and method based on capacitance charge-discharge structure
US10904048B2 (en) 2019-05-24 2021-01-26 SanDiskTechnologies LLC Pulse width modulated receiver systems and methods
CN111159087B (en) * 2020-01-17 2025-03-14 铠强科技(平潭)有限公司 A signal reading circuit and a single-line transmission circuit for integrated circuit cascade signals
CN111245425B (en) * 2020-03-10 2025-02-11 铠强科技(平潭)有限公司 Single-line transmission circuit and single-line transmission circuit for cascade data of diode integrated circuit
EP4020815A1 (en) * 2020-12-28 2022-06-29 STMicroelectronics S.r.l. Pulse width modulation decoder circuit, corresponding device and methods of operation

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283569A (en) * 2013-07-04 2015-01-14 奇景光电股份有限公司 signal decoding circuit

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112011105674T5 (en) * 2011-09-28 2014-07-17 Intel Corp. Data recovery at low power using overclocking
US8564365B2 (en) * 2012-01-20 2013-10-22 Qualcomm Incorporated Wide input bit-rate, power efficient PWM decoder
US9425781B2 (en) * 2013-03-29 2016-08-23 Stmicroelectronics International N.V. Syncless unit interval variation tolerant PWM receiver circuit, system and method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283569A (en) * 2013-07-04 2015-01-14 奇景光电股份有限公司 signal decoding circuit

Also Published As

Publication number Publication date
CN106951385A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
CN106951385B (en) Serial PWM signal decoding circuit and method based on capacitor charging and discharging structure
CN104113340B (en) Register-free asynchronous successive approximation analog-to-digital converter
CN108832915B (en) A duty cycle calibration circuit
CN105741742A (en) Shifting register unit, grid driving circuit and driving method thereof
CN101939909A (en) Class D power amplifier
TWI339510B (en) Noise shaping switch capacitor circuit and method thereof
CN111262559B (en) Delay line circuit with correction function and correction method thereof
WO2018170681A1 (en) Serial pwm signal decoding circuit and method based on capacitance charge-discharge structure
EP3206463B1 (en) Computing device and led driver triggered by power cord edge signal
CN102545589B (en) Direct current voltage conversion circuit
CN210780704U (en) A sawtooth wave generating circuit and a buck-boost converter
TWI683219B (en) A Biphase Mark Coding Transmitter
TWI568185B (en) Triangular waveform generator having differential output synchronized with external clock signal and method for generating a differential triangular waveform
CN108156716B (en) Control circuit, method and device for flashing back multiple LED lamps
CN101938269A (en) Power-on reset circuit
CN110266303A (en) Refresh circuit, method, chip and data transmission system
CN108880508A (en) A kind of low-power consumption Ultrahigh speed data sampling apparatus
CN102264166B (en) LED output drive circuit structure and method for providing drive current for LED
CN104283569A (en) signal decoding circuit
US8446189B2 (en) Power-on reset circuit
CN103036568B (en) A kind of gradual approaching A/D converter
CN203387492U (en) LED brightness control device
CN104320121A (en) Clock tree driving circuit with stable time delay
CN103633963B (en) Based on duty ratio comparison circuit and the method for single-wire-protocol
CN103746697B (en) Analog to digital conversion circuit

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201225

Address after: 510000 601, building a, 136 Kaiyuan Avenue, Huangpu District, Guangzhou City, Guangdong Province

Patentee after: AoXin integrated circuit technology (Guangdong) Co.,Ltd.

Address before: 100029 Beijing city Chaoyang District Beitucheng West Road No. 3

Patentee before: Institute of Microelectronics of the Chinese Academy of Sciences

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220429

Address after: 510000 room 710, Jianshe building, No. 348, Kaifa Avenue, Huangpu District, Guangzhou, Guangdong

Patentee after: Ruili flat core Microelectronics (Guangzhou) Co.,Ltd.

Address before: 510000 601, building a, 136 Kaiyuan Avenue, Huangpu District, Guangzhou City, Guangdong Province

Patentee before: AoXin integrated circuit technology (Guangdong) Co.,Ltd.

TR01 Transfer of patent right