TWI780942B - Digital circuit capable of generating differential signal and microcontroller using the same - Google Patents
Digital circuit capable of generating differential signal and microcontroller using the same Download PDFInfo
- Publication number
- TWI780942B TWI780942B TW110136980A TW110136980A TWI780942B TW I780942 B TWI780942 B TW I780942B TW 110136980 A TW110136980 A TW 110136980A TW 110136980 A TW110136980 A TW 110136980A TW I780942 B TWI780942 B TW I780942B
- Authority
- TW
- Taiwan
- Prior art keywords
- signal
- input
- output
- output connection
- connection pads
- Prior art date
Links
Images
Landscapes
- Semiconductor Integrated Circuits (AREA)
- Logic Circuits (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
本發明涉及一種數位電路及微控制器,且特別是一種可產生差動訊號的數位電路與使用其之微控制器。 The present invention relates to a digital circuit and a microcontroller, and in particular to a digital circuit capable of generating differential signals and a microcontroller using it.
在某些訊號傳輸較為高速的系統上,會使用差動訊號(Differential Signal)的型態傳輸訊號,因為使用差動訊號的型態傳輸訊號可抵抗雜訊。差動訊號為兩個彼此相差180度的訊號所組成,如圖1所示。圖1是繪示一種理想的差動訊號,兩訊號間具有相等的振幅以及180度的相位差。若將正相訊號Sp和反相訊號Sn交疊,兩個訊號交疊的位置會正好落於兩個訊號的振幅中間,這代表此差動訊號DFS的品質很好。然而,在實際的應用中,因為電路延遲的關係,通常會其中一個訊號相較於另一訊號較為落後或領先。若訊號無法保持接近180度的相位差時,如圖2所示,反相訊號Sn相較於正相訊號Sp有一延遲DLY,此即會導致兩個訊號的交疊點已不在振幅中間,這有可能會導致接收端誤判此差動訊號DFS’轉態的時間。傳統上,差動訊號需要透過類比電路實現才能具有低誤差的特性,因此通常需要額外設計類比電路去產生差動訊號。 In some systems with relatively high-speed signal transmission, differential signal (Differential Signal) type transmission signal is used, because the type of differential signal transmission signal can resist noise. A differential signal consists of two signals that are 180 degrees out of phase with each other, as shown in Figure 1. Figure 1 shows an ideal differential signal with equal amplitudes and a phase difference of 180 degrees between the two signals. If the positive-phase signal Sp and the negative-phase signal Sn are overlapped, the overlapping position of the two signals will be exactly in the middle of the amplitude of the two signals, which means that the quality of the differential signal DFS is very good. However, in practical applications, due to circuit delay, one of the signals usually lags behind or leads the other signal. If the signal cannot maintain a phase difference close to 180 degrees, as shown in Figure 2, the anti-phase signal Sn has a delay DLY compared with the normal-phase signal Sp, which will cause the overlapping point of the two signals to no longer be in the middle of the amplitude. It may cause the receiving end to misjudge the transition time of the differential signal DFS'. Traditionally, differential signals need to be implemented through analog circuits to have low error characteristics, so it is usually necessary to additionally design analog circuits to generate differential signals.
在現有技術中,也有提出過以數位電路的設計來解決差動訊號產生需要繁複的類比電路設計的問題。然而,現有的數位電路還是難以產生高精度/低誤差的差動訊號,因此也難以應用在高速傳輸的應用環境。如圖3所示,圖 3是一種傳統的差動訊號產生電路的示意圖。功能控制電路FCC可以控制正相訊號Sp和反相訊號Sn是否被輸出之外,另一個主要功能是選擇其他元件或功能模組的輸入輸出信號是否能夠透過輸入輸出連接墊PAD0和PAD1來輸入輸出。換言之,在數位電路中,使用者可以透過改變功能控制電路FCC的設定值PAD0_SEL和PAD1_SEL,來改變輸入輸出連接墊PAD0和PAD1的模式或者輸出值,進而使輸入輸出連接墊PAD0和PAD1可以被自由設定成多種功能。於此,因著重於正相訊號Sp和反相訊號Sn的輸出,故未繪示功能控制電路FCC與其他元件或功能模組的關係。 In the prior art, it has also been proposed to use digital circuit design to solve the problem of complicated analog circuit design required for differential signal generation. However, it is still difficult for existing digital circuits to generate high-precision/low-error differential signals, so it is also difficult to apply to high-speed transmission applications. As shown in Figure 3, Fig. 3 is a schematic diagram of a conventional differential signal generating circuit. The function control circuit FCC can control whether the positive phase signal Sp and the negative phase signal Sn are output. Another main function is to select whether the input and output signals of other components or functional modules can be input and output through the input and output connection pads PAD0 and PAD1. . In other words, in the digital circuit, the user can change the mode or output value of the input and output connection pads PAD0 and PAD1 by changing the setting values PAD0_SEL and PAD1_SEL of the function control circuit FCC, so that the input and output connection pads PAD0 and PAD1 can be freely Set to multiple functions. Here, since the output of the positive-phase signal Sp and the negative-phase signal Sn is emphasized, the relationship between the functional control circuit FCC and other components or functional modules is not shown.
在一般利用數位電路產生差動訊號的方案中,可採用反相器INV來產生反相訊號Sn,其中正相訊號Sp和反相訊號Sn會分別經由功能控制電路FCC被提供至對應的輸入輸出連接墊PAD0和PAD1。一般來說,正相訊號Sp和反相訊號Sn到達輸入輸出連接墊PAD0和PAD1的過程中會經過許多數位電路(例如,多工器與邏輯閘)組成的組合電路CC1和CC2。由於反相訊號Sn與正相訊號Sp所經過的組合電路CC1和CC2不一定相同,這些組合電路CC1和CC2在實際佈局時所擺放的位置以及訊號傳遞路徑也會不一樣,因此就會讓反相訊號Sn與正相訊號Sp產生延遲上的問題,使得最後波形也會如圖2一般,無法讓訊號間彼此相位差達到180度的相位。若此差動時脈非常高速可能會導致使用此時脈同步的電路傳輸失敗,只能透過後段工程不斷的去修正正相訊號Sp和反相訊號Sn到輸入輸出連接墊PAD0和PAD1的路徑,讓兩個訊號接近180度,但是此過程非常繁瑣且不好調整,另外有可能因為組合電路CC1和CC2經過的邏輯過多,導致在某個功能設定下雖然是相差180度的,但是換了一個功能設定兩者的相位又產生了偏移。 In the general scheme of using digital circuits to generate differential signals, the inverter INV can be used to generate the inverted signal Sn, wherein the positive-phase signal Sp and the inverted signal Sn will be respectively provided to the corresponding input and output through the function control circuit FCC Connect pads PAD0 and PAD1. Generally speaking, the positive-phase signal Sp and the negative-phase signal Sn will pass through combination circuits CC1 and CC2 composed of many digital circuits (eg, multiplexers and logic gates) when they reach the I/O connection pads PAD0 and PAD1 . Since the combination circuits CC1 and CC2 passed by the anti-phase signal Sn and the normal-phase signal Sp are not necessarily the same, the positions and signal transmission paths of these combination circuits CC1 and CC2 in the actual layout will also be different, so it will make There is a problem of delay between the inverted signal Sn and the normal-phase signal Sp, so that the final waveform will be as shown in Figure 2, and the phase difference between the signals cannot reach 180 degrees. If the differential clock is very high-speed, it may cause the transmission failure of the circuit using this clock synchronization. The only way to correct the path of the positive-phase signal Sp and the negative-phase signal Sn to the input and output connection pads PAD0 and PAD1 is to continuously correct the path through the back-end engineering. Make the two signals close to 180 degrees, but this process is very cumbersome and difficult to adjust. In addition, it may be because the combination circuit CC1 and CC2 have passed too much logic, resulting in a difference of 180 degrees under a certain function setting, but a different one The phase of the function settings and the two have shifted again.
本發明的實施例提供一種可產生差動訊號的數位電路,此數位電路包括訊號生成電路、第一和第二輸入輸出連接墊以及第三和第四輸入輸出連接墊。訊號生成電路用以基於輸入訊號產生構成差動訊號的第一訊號與第二訊號,其中第一訊號與第二訊號彼此反相。第一和第二輸入輸出連接墊耦接所述訊號生成電路,並且根據第一啟用訊號決定是否啟用。第三和第四輸入輸出連接墊用以根據與所述第一啟用訊號反相的第二啟用訊號決定是否啟用。當所述第一和所述第二輸入輸出連接墊被啟用時,所述第一和所述第二輸入輸出連接墊分別用以傳輸構成所述差動訊號的第一訊號與第二訊號,以及當所述第三和所述第四輸入輸出連接墊被啟用時,所述第三和所述第四輸入輸出連接墊用以傳輸多個功能訊號。所述第一和所述第三輸入輸出連接墊共同耦接至多個封裝引腳其中之一,以及所述第二和所述第四輸入輸出連接墊共同耦接至所述多個封裝引腳其中之另一。 An embodiment of the present invention provides a digital circuit capable of generating differential signals. The digital circuit includes a signal generating circuit, first and second input and output connection pads, and third and fourth input and output connection pads. The signal generating circuit is used for generating a first signal and a second signal constituting a differential signal based on the input signal, wherein the first signal and the second signal are opposite to each other. The first and second input-output connection pads are coupled to the signal generating circuit, and whether to enable is determined according to the first enabling signal. The third and fourth input-output connection pads are used to determine whether to enable according to a second enable signal that is opposite to the first enable signal. When the first and the second input-output connection pads are enabled, the first and the second input-output connection pads are respectively used to transmit a first signal and a second signal constituting the differential signal, And when the third and the fourth input-output connection pads are enabled, the third and the fourth input-output connection pads are used to transmit a plurality of functional signals. The first and the third input-output connection pads are commonly coupled to one of a plurality of package pins, and the second and the fourth input-output connection pads are commonly coupled to the plurality of package pins another of them.
本發明的實施例提供一種微控制器,其包括多個封裝引腳、功能控制電路、訊號生成電路、第一和第二輸入輸出連接墊以及第三和第四輸入輸出連接墊。功能控制電路用以產生多個功能訊號。訊號生成電路用以基於時脈訊號產生構成差動訊號的第一訊號與第二訊號,其中第一訊號與第二訊號彼此反相。第一和第二輸入輸出連接墊耦接所述訊號生成電路,以分別接收構成所述差動訊號的所述第一訊號與所述第二訊號。第三和第四輸入輸出連接墊耦接所述功能控制電路,以分別接收所述多個功能訊號。所述第一和所述第三輸入輸出連接墊共同耦接至所述多個封裝引腳其中之一,以及所述第二和所述第四輸入輸出連接墊共同耦接至所述多個封裝引腳其中之另一。 An embodiment of the present invention provides a microcontroller, which includes a plurality of package pins, a function control circuit, a signal generating circuit, first and second input and output connection pads, and third and fourth input and output connection pads. The function control circuit is used for generating multiple function signals. The signal generating circuit is used for generating a first signal and a second signal constituting a differential signal based on the clock signal, wherein the first signal and the second signal are opposite to each other. The first and second input-output connection pads are coupled to the signal generation circuit for respectively receiving the first signal and the second signal constituting the differential signal. The third and fourth input-output connection pads are coupled to the function control circuit to respectively receive the plurality of function signals. The first and the third input-output connection pads are commonly coupled to one of the plurality of package pins, and the second and the fourth input-output connection pads are commonly coupled to the plurality of package pins. The other of the package pins.
綜上所述,相較於先前技術,本發明實施例的可產生差動訊號的數位電路及使用其之微控制器,由於不用額外設計類比電路來產生差動訊號,因此可以大幅地縮短電路設計時程。再者,相較於傳統的以數位電路來產生差 動訊號的機制來說,本發明實施例可以有效地改善數位電路在不同應用情境下差動訊號的相位偏移問題,並且也同時降低了電路調校的複雜性。另外,由於在本實施例的設計下電路的封裝引腳不需使用額外的引腳,也可使微控制器可選擇性地有輸出精確差動時脈訊號的能力,因此可在不增加成本或電路複雜度的前提下,使微控制器可更廣泛地應用於高速傳輸的情境。 In summary, compared with the prior art, the digital circuit capable of generating differential signals and the microcontroller using it in the embodiment of the present invention can greatly shorten the circuit because no additional analog circuit is designed to generate differential signals. design schedule. Furthermore, compared to the traditional digital circuit to generate the difference For the mechanism of dynamic signals, the embodiments of the present invention can effectively improve the phase shift problem of differential signals of digital circuits in different application scenarios, and also reduce the complexity of circuit adjustment. In addition, since the packaging pins of the circuit do not need to use extra pins under the design of this embodiment, the microcontroller can also optionally have the ability to output accurate differential clock signals, so it can be used without increasing the cost. Under the premise of reducing or circuit complexity, the microcontroller can be more widely used in high-speed transmission scenarios.
為了進一步理解本發明的技術、手段和效果,可以參考以下詳細描述和附圖,從而可以徹底和具體地理解本發明的目的、特徵和概念。然而,以下詳細描述和附圖僅用於參考和說明本發明的實現方式,其並非用於限制本發明。 In order to further understand the techniques, means and effects of the present invention, reference can be made to the following detailed description and accompanying drawings, so that the purpose, features and concepts of the present invention can be thoroughly and specifically understood. However, the following detailed description and drawings are only for reference and illustration of the implementation of the present invention, and are not intended to limit the present invention.
50:微控制器 50: microcontroller
52、52_clk、52_clkb:封裝引腳 52, 52_clk, 52_clkb: package pins
100、200:數位電路 100, 200: digital circuit
110:訊號生成電路 110: Signal generating circuit
112、INV、132_1、132_2:反相器 112, INV, 132_1, 132_2: inverter
114:延遲電路 114: delay circuit
120_1~120_4、PAD0、PAD1:輸入輸出連接墊 120_1~120_4, PAD0, PAD1: input and output connection pads
130、FCC:功能控制電路 130. FCC: Function Control Circuit
CLK、CLK’、CLK_b:時脈訊號 CLK, CLK', CLK_b: clock signal
DFS、DFS’:差動訊號 DFS, DFS’: differential signal
Dout:資料輸出端 Dout: data output terminal
DLY:延遲 DLY: delayed
EN:啟用端 EN: enable terminal
PAD0_SEL、PAD1_SEL:功能控制電路的設定值 PAD0_SEL, PAD1_SEL: set value of function control circuit
S1:輸入訊號 S1: input signal
S1’、S1_b:訊號 S1’, S1_b: signal
Sen、Sen_b:啟用訊號 Sen, Sen_b: enable signal
SEL1、SEL2:功能訊號 SEL1, SEL2: function signal
Sp:正相訊號 Sp: positive phase signal
Sn:反相訊號 Sn: anti-phase signal
提供的附圖用以使本發明所屬技術領域具有通常知識者可以進一步理解本發明,並且被併入與構成本發明之說明書的一部分。附圖示出了本發明的示範實施例,並且用以與本發明之說明書一起用於解釋本發明的原理。 The accompanying drawings are provided to enable those skilled in the art to which the present invention pertains to further understand the present invention, and are incorporated in and constitute a part of the specification of the present invention. The drawings illustrate exemplary embodiments of the invention and together with the description serve to explain principles of the invention.
圖1是一種差動訊號的波形示意圖。 FIG. 1 is a schematic diagram of a waveform of a differential signal.
圖2是另一種差動訊號的波形示意圖。 FIG. 2 is a schematic diagram of another differential signal waveform.
圖3是一種傳統的差動訊號產生電路的示意圖。 FIG. 3 is a schematic diagram of a conventional differential signal generating circuit.
圖4是本發明一實施例的可產生差動訊號的數位電路的示意圖。 FIG. 4 is a schematic diagram of a digital circuit capable of generating differential signals according to an embodiment of the present invention.
圖5是本發明一實施例的微控制器的示意圖。 FIG. 5 is a schematic diagram of a microcontroller according to an embodiment of the present invention.
現在將詳細參考本發明的示範實施例,其示範實施例會在附圖中被繪示出。在可能的情況下,在附圖和說明書中使用相同的元件符號來指代相 同或相似的部件。另外,示範實施例的做法僅是本發明之設計概念的實現方式之一,下述的該等示範皆非用於限定本發明。 Reference will now be made in detail to the exemplary embodiments of the invention, which are illustrated in the accompanying drawings. Where possible, the same reference numerals are used in the drawings and description to refer to same or similar parts. In addition, the practice of the exemplary embodiment is only one of the implementations of the design concept of the present invention, and the following demonstrations are not intended to limit the present invention.
關於本文中所使用之『第一』、『第二』、...等,並非特別指稱次序或順位的意思,亦非用以限定本發明,其僅僅是為了區別以相同技術用語描述的元件或操作而已。 The terms "first", "second", ... etc. used herein do not refer to the meaning of order or sequence, nor are they used to limit the present invention, but are only used to distinguish elements described with the same technical terms. or operation only.
另外,關於本文中所使用之『耦接』或『連接』,均可指二或多個元件相互直接作實體或電性接觸,或是相互間接作實體或電性接觸,亦可指二或多個元件相互操作或動作。 In addition, the "coupling" or "connection" used in this article can refer to two or more elements in direct physical or electrical contact with each other, or indirect physical or electrical contact with each other, and can also refer to two or more components. Multiple elements operate or act on each other.
本發明實施例提出一種以數位電路來實施的差動訊號產生機制,由於不用額外設計類比電路來產生差動訊號,因此可以大幅地縮短電路設計時程。再者,相較於傳統的以數位電路來產生差動訊號的機制來說,本發明實施例可以有效地改善數位電路在不同應用情境下,差動訊號的相位偏移問題,並且也同時降低了電路調校的複雜性,進而使微控制器可更廣泛地應用於高速傳輸的情境下。底下以數個實施例來進一步說明所述之數位電路及使用其之微控制器。 The embodiment of the present invention proposes a differential signal generation mechanism implemented by a digital circuit. Since no additional design of an analog circuit is required to generate the differential signal, the circuit design time can be greatly shortened. Furthermore, compared with the traditional mechanism of using digital circuits to generate differential signals, the embodiments of the present invention can effectively improve the phase shift problem of differential signals in different application scenarios of digital circuits, and at the same time reduce the The complexity of circuit adjustment is reduced, and the microcontroller can be more widely used in high-speed transmission situations. Below, several embodiments are used to further illustrate the digital circuit and the microcontroller using it.
圖4是本發明一實施例的可產生差動訊號的數位電路的示意圖。請先參照圖4,本實施例的數位電路100可經配置而在特定工作模式下產生差動訊號DFS,其包括訊號生成電路110以及多個輸入輸出連接墊(I/O pads)。訊號生成電路110會基於單端的輸入訊號S1產生差動訊號DFS,其中所述輸入訊號S1可例如是時脈訊號,但本發明不以此為限制。
FIG. 4 is a schematic diagram of a digital circuit capable of generating differential signals according to an embodiment of the present invention. Please refer to FIG. 4 first. The
所述多個輸入輸出連接墊是用以作為數位電路100向外部輸出訊號,或是從外部接收訊號並向內部的控制電路傳輸的介面。各輸入輸出連接墊可包含有連接墊(pad)以及輸入輸出單元,其中所述輸入輸出單元可例如包含靜電防護電路、緩衝電路及供電電路等。在本實施例中,所述多個輸入輸出連
接墊在本實施例中是繪示為以其中4個為例來進行說明,如輸入輸出連接墊120_1~120_4,但本發明不以此為限。
The plurality of input and output connection pads are used as an interface for the
各個輸入輸出連接墊120_1~120_4具有啟用端EN和資料輸出端Dout。各個輸入輸出連接墊120_1~120_4會根據啟用端EN上的訊號決定是否啟用,並且會在被啟用時將資料傳輸端Dout上的訊號傳輸至連接墊。輸入輸出連接墊120_1和120_2分別通過資料輸出端Dout耦接訊號生成電路110以接收由訊號S1_b和S1’所組成的差動訊號DFS,並且根據從啟用端EN接收的啟用訊號Sen決定是否啟用,其中訊號S1_b和S1’實質上彼此反相,相差了180度。輸入輸出連接墊120_3和120_4分別通過資料輸出端Dout接收功能訊號SEL1和SEL2,並且通過啟用(enable)端EN接收啟用訊號Sen_b。啟用訊號Sen和Sen_b是互為反相之訊號,亦即當輸入輸出連接墊120_1和120_2被啟用時,輸入輸出連接墊120_3和120_4會被禁用;相反地,當輸入輸出連接墊120_3和120_4被啟用時,輸入輸出連接墊120_1和120_2會被禁用。
Each of the input and output connection pads 120_1˜120_4 has an enable terminal EN and a data output terminal Dout. Each of the input and output connection pads 120_1˜120_4 will determine whether to be enabled according to the signal on the enable terminal EN, and will transmit the signal on the data transmission terminal Dout to the connection pads when enabled. The input and output connection pads 120_1 and 120_2 are respectively coupled to the
啟用訊號Sen和Sen_b以及功能訊號SEL1和SEL2可以是例如由一功能控制電路(未繪示)所產生。所述功能控制電路可根據使用者的選擇來提供不同的功能訊號SEL1和SEL2以及啟用訊號Sen和Sen_b給各個輸入輸出連接墊120_1~120_4,藉以設定各個輸入輸出連接墊120_1~120_4的工作模式以及輸出值。所述功能控制電路通過多個可選擇的邏輯電路組合來實現所述可供使用者設定工作模式及輸出值的功能,但本發明不僅限於此。 The enable signals Sen and Sen_b and the function signals SEL1 and SEL2 may be generated, for example, by a function control circuit (not shown). The function control circuit can provide different function signals SEL1 and SEL2 and enable signals Sen and Sen_b to each input and output connection pad 120_1~120_4 according to the user's selection, so as to set the working mode of each input and output connection pad 120_1~120_4 and output value. The function control circuit realizes the function that the user can set the working mode and the output value through the combination of multiple selectable logic circuits, but the present invention is not limited thereto.
具體而言,數位電路100可以選擇性地被設定為輸出差動訊號DFS或是輸出功能訊號SEL1和SEL2。當數位電路100被設定為輸出差動訊號DFS時,功能控制電路可產生對應的啟用訊號Sen和Sen_b(例如1和0),使輸入輸出連接墊120_1和120_2被啟用,並且使輸入輸出連接墊120_3和120_4被禁用。此時,輸入輸出連接墊120_1和120_2會被用以傳輸差動訊號DFS。另一方面,當
數位電路100被設定為輸出功能訊號SEL1和SEL2時,功能控制電路可產生對應的啟用訊號Sen和Sen_b(例如0和1),使輸入輸出連接墊120_1和120_2被啟用,並且使輸入輸出連接墊120_3和120_4被禁用。
Specifically, the
更具體地說,相較於圖3所示的差動訊號產生電路而言,本實施例的配置是增設兩個輸入輸出連接墊120_1和120_2於數位電路100中,並且所述兩個輸入輸出連接墊120_1和120_2是直接連接訊號生成電路110的輸出以接收構成差動訊號DFS的訊號S1’、S1_b,使輸入輸出連接墊120_1和120_2專屬作為輸出差動訊號DFS之用。由於差動訊號DFS不是通過功能控制電路產生,因此即便使用者在設定其他各個輸入輸出連接墊的模式或輸出值時,也不會因為電路組合路徑改變而造成差動訊號DFS產生不同的相位延遲。換言之,本實施例的數位電路100可輸出穩定維持大致上具有180度相位差的差動訊號DFS,更適於應用在高速傳輸的環境。
More specifically, compared with the differential signal generation circuit shown in FIG. 3 , the configuration of this embodiment is to add two input-output connection pads 120_1 and 120_2 in the
另一方面,由於增設的輸入輸出連接墊120_1和120_2與其他用以輸出功能訊號SEL1和SEL2的輸入輸出連接墊120_3和120_4具有相同的配置(即,採用同樣/類似的輸入輸出單元),因此也無需再另外設計類比電路來解決輸出訊號的靜電防護及推動力問題。另外也不需要通過調整功能控制電路中各個邏輯電路組合的延遲來匹配差動訊號DFS的相位,因此可大幅降低了電路設計的時程。 On the other hand, since the additional I/O pads 120_1 and 120_2 have the same configuration as the other I/O pads 120_3 and 120_4 for outputting the functional signals SEL1 and SEL2 (i.e., adopt the same/similar I/O units), therefore There is no need to design another analog circuit to solve the problem of static electricity protection and driving force of the output signal. In addition, there is no need to adjust the delay of each logic circuit combination in the functional control circuit to match the phase of the differential signal DFS, so the time schedule of circuit design can be greatly reduced.
再者,由於輸入輸出連接墊120_1和120_2是被配置為和兩個對應的功能性輸入輸出連接墊120_3和120_4互補的啟用/禁用,因此只要透過將輸入輸出連接墊120_1和輸入輸出連接墊120_3連接至同一根引腳,並且將輸入輸出連接墊120_2和輸入輸出連接墊120_4連接至另一根引腳,就可以在不增加封裝引腳的前提下,實現可選的差動訊號DFS輸出功能,同時也不會造成訊號衝突。此部份在後續實施例中會進一步描述。 Moreover, since the I/O pads 120_1 and 120_2 are configured to be enabled/disabled complementary to the two corresponding functional I/O pads 120_3 and 120_4, as long as the I/O pads 120_1 and I/O pads 120_3 Connect to the same pin, and connect the input and output connection pad 120_2 and the input and output connection pad 120_4 to another pin, so that the optional differential signal DFS output function can be realized without increasing the package pins , and will not cause signal conflicts. This part will be further described in the subsequent embodiments.
在一些實施例中,輸入輸出連接墊120_1~120_4的啟用控制可以例如是所述功能控制電路將輸入輸出連接墊120_1~120_4設定為輸出模式,並且禁用輸入輸出連接墊120_1~120_4的控制可以例如是所述功能控制電路將輸入輸出連接墊120_1~120_4設定為輸入模式,但本發明不以此為限。簡單地說,輸入輸出連接墊120_1~120_4的啟用端EN可能接收其他不同的啟用訊號,來達到輸入或輸出的目的,不會僅讓輸入輸出連接墊120_1~120_4僅用於輸出。 In some embodiments, the enable control of the input and output connection pads 120_1~120_4 may be, for example, that the function control circuit sets the input and output connection pads 120_1~120_4 to the output mode, and the control of disabling the input and output connection pads 120_1~120_4 may be, for example, It is the function control circuit that sets the input and output connection pads 120_1 - 120_4 as the input mode, but the present invention is not limited thereto. In short, the enable terminals EN of the input/output connection pads 120_1~120_4 may receive other different enable signals to achieve the purpose of input or output, and the input/output connection pads 120_1~120_4 are not only used for output.
在一些實施例中,訊號生成電路110可包括反相器112以及延遲電路114。反相器112具有輸入端和輸出端,其中反相器112的輸入端接收輸入訊號S1,且反相器112的輸出端耦接輸入輸出連接墊120_1之資料輸出端Dout以傳輸與輸入訊號S1反相的訊號S1_b。延遲電路114的輸入端接收輸入訊號S1,並且延遲電路114的輸出端耦接輸入輸出連接墊120_2之資料輸出端Dout。延遲電路114是用以調整輸入訊號S1的相位,以補償輸入訊號S1和反相訊號S1_b之間的相位差,亦即減少如圖2所示的延遲DLY,並產生調整後的訊號S1’,其中經調整後的訊號S1’與反相於訊號S1’的訊號S1_b組成差動訊號DFS。
In some embodiments, the
接下來說明應用上述數位電路之微控制器的實施範例。請參照圖5,圖5是本發明一實施例的微控制器的示意圖。在本實施例中,微控制器50包括多個封裝引腳52以及數位電路200,其中數位電路200包括訊號生成電路110、輸入輸出連接墊120_1~120_4以及功能控制電路130。
Next, an implementation example of a microcontroller using the above-mentioned digital circuit will be described. Please refer to FIG. 5 , which is a schematic diagram of a microcontroller according to an embodiment of the present invention. In this embodiment, the
訊號生成電路110用以基於時脈訊號CLK產生差動訊號DFS,其中差動訊號DFS包含經延遲電路114進行相位調整後的時脈訊號CLK’以及與時脈訊號CLK’的反相時脈訊號CLK_b。
The
輸入輸出連接墊120_1之資料輸出端Dout耦接訊號生成電路110的反相器112的輸出端,以接收反相時脈訊號CLK_b。輸入輸出連接墊120_2之資料輸出端Dout耦接訊號生成電路110的延遲電路114的輸出端,以接收時脈訊
號CLK’。輸入輸出連接墊120_3和120_4之資料輸出端Dout耦接功能控制電路130以分別接收功能訊號SEL1和SEL2。
The data output terminal Dout of the I/O pad 120_1 is coupled to the output terminal of the
功能控制電路130耦接輸入輸出連接墊120_1~120_4之啟用端EN。功能控制電路130除產生功能訊號SEL1和SEL2外,還會產生啟用訊號Sen和Sen_b來控制各個輸入輸出連接墊120_1~120_4的啟用/禁用。在本實施例中,輸入輸出連接墊120_1和120_2從功能控制電路130接收啟用訊號Sen,並且輸入輸出連接墊120_3和120_4從功能控制電路130接收與啟用訊號Sen反相的啟用訊號Sen_b。另外,有關於訊號生成電路110、輸入輸出連接墊120_1~120_4以及功能控制電路130之間的配置與運作可參照上述圖4實施例之說明,於此不再贅述。
The
在一些實施例中,功能控制電路130更包括用以產生啟用訊號Sen_b的反相器132_1和132_2。反相器132_1的輸入端接收啟用訊號Sen,並且反相器132_1的輸出端產生反相的啟用訊號Sen’並傳輸至輸入輸出連接墊120_3之啟用端EN。反相器132_2的輸入端接收啟用訊號Sen,並且反相器132_2的輸出端產生反相的啟用訊號Sen’並傳輸至輸入輸出連接墊120_4之啟用端EN。雖然上述實施例及圖5中是繪示利用兩個反相器132_1和132_2來產生輸入輸出連接墊120_3和120_4所需的啟用訊號Sen_b為例,但本發明不以此為限。在其他實施例中,功能控制電路130也可利用單一反相器,並且將該單一反相器的輸出端同時接到輸入輸出連接墊120_3和120_4之啟用端EN的配置來實施。
In some embodiments, the
在本實施例中,輸入輸出連接墊120_1和120_3通過打線被配置為共同耦接至所封裝引腳52_clkb,並且輸入輸出連接墊120_2和120_4通過打線被配置為共同耦接至所封裝引腳52_clk。通過上述配置,當數位電路200被設置為輸出差動訊號DFS時,輸入輸出連接墊120_1和120_2會響應於啟用訊號Sen而啟用,並且將時脈訊號CLK_b和CLK分別傳輸到封裝引腳52_clkb和52_clk上,使得微控制器50可以通過封裝引腳52_clkb和52_clk輸出差動時脈訊號DFS給外部
電路。另一方面,當數位電路200被設置為輸出功能訊號SEL1和SEL2時,輸入輸出連接墊120_3和120_4會響應於啟用訊號Sen_b而啟用,並且將功能訊號SEL1和SEL2分別傳輸到封裝引腳52_clkb和52_clk上,使得微控制器50可以通過封裝引腳52_clkb和52_clk輸出功能訊號SEL1和SEL2給外部電路。
In this embodiment, the input and output connection pads 120_1 and 120_3 are configured to be commonly coupled to the packaged pin 52_clkb through wire bonding, and the input and output connection pads 120_2 and 120_4 are configured to be commonly coupled to the packaged pin 52_clk through wire bonding . Through the above configuration, when the
換言之,在本實施例中,輸入輸出連接墊120_1-120_4共用了兩支封裝引腳52_clkb和52_clk來實現兩種不同訊號功能的輸出,包含一般可供使用者設定的輸入/輸出功能以及差動時脈訊號輸出功能。 In other words, in this embodiment, the input and output connection pads 120_1-120_4 share two package pins 52_clkb and 52_clk to realize the output of two different signal functions, including the input/output function and differential Clock signal output function.
以電路布局的角度來看,輸入輸出連接墊120_1-120_4可以是被排列配置於靠近封裝引腳52的一側。在一些實施例中,用以輸出差動訊號DFS的輸入輸出連接墊120_1和120_2係位於相鄰的位置,且以映射方式對稱配置。亦即,輸入輸出連接墊120_1和120_2中的部分或全部電路元件是可在一基準線之兩側以對稱方式排布,並且輸入輸出連接墊120_1和120_2的資料輸出端Dout係位於鄰近側。如此配置方式可以盡可能地減低時脈訊號CLK’和CLK_b間的相位差異,以使差動訊號DFS具有更加良好的特性。
From the perspective of circuit layout, the input and output connection pads 120_1 - 120_4 may be arranged and arranged on a side close to the
在一些實施例中,訊號生成電路110的反相器112可以配置在輸入輸出連接墊120_1和120_2的中間,並且在符合布局走線規則的前提下,盡可能的靠近輸入輸出連接墊120_1和120_2。所述反相器112配置在輸入輸出連接墊120_1和120_2的中間,係指反相器112布局的位置與輸入輸出連接墊120_1之資料輸出端Dout之間的間距實質上相等於與輸入輸出連接墊120_2之資料輸出端Dout之間的間距。
In some embodiments, the
另外,在本發明實施例中,數位電路200可以具有4個以上的輸入輸出連接墊。如圖5,輸入輸出連接墊120_3的上側可以再設有一個輸入輸出連接墊,以及輸入輸出連接墊120_4的下側再設有一個輸入輸出連接墊,亦即,數位電路200共有6個輸入輸出連接墊,輸入輸出連接墊120_3的上側與輸入輸出連
接墊120_4的下側之共兩個輸入輸出連接墊可以用於分別接收另一組輸出差動訊號的正向訊號與反向訊號,也可以是用於分別接收另外幾個功能訊號。功能控制電路130可以提供另一個啟用訊號來控制上述兩個輸入輸出連接墊的啟用,且此時啟用訊號Sen_b不為啟用訊號Sen的反相訊號,而是三個啟用訊號在在三個不同時間點為表示啟用的電壓準位。上述兩個輸入輸出連接墊可以分別耦接到封裝引腳52_clk與52_clkb,以達到封裝引腳52_clk與52_clkb可以根據啟用信號的不同,而輸出兩組不同輸出差動信號與一組多個功能信號的其中一組,或者輸出兩組功能信號與一組輸出差動信號的其中一組。
In addition, in the embodiment of the present invention, the
綜合以上所述,相較於先前技術,本發明實施例的可產生差動訊號的數位電路及使用其之微控制器,由於不用額外設計類比電路來產生差動訊號,因此可以大幅地縮短電路設計時程。再者,相較於傳統的以數位電路來產生差動訊號的機制來說,本發明實施例可以有效地改善數位電路在不同應用情境下差動訊號的相位偏移問題,並且也同時降低了電路調校的複雜性。另外,由於在本實施例的設計下電路的封裝引腳不需使用額外的引腳,也可使微控制器可選擇性地有輸出精確差動時脈訊號的能力,因此可在不增加成本或電路複雜度的前提下,使微控制器可更廣泛地應用於高速傳輸的情境。 In summary, compared with the prior art, the digital circuit capable of generating differential signals and the microcontroller using it in the embodiment of the present invention can greatly shorten the circuit because no additional design of analog circuits is required to generate differential signals. design schedule. Furthermore, compared with the traditional mechanism of using digital circuits to generate differential signals, the embodiments of the present invention can effectively improve the phase shift of digital circuits in different application scenarios, and also reduce the The complexity of circuit tuning. In addition, since the packaging pins of the circuit do not need to use extra pins under the design of this embodiment, the microcontroller can also optionally have the ability to output accurate differential clock signals, so it can be used without increasing the cost. Under the premise of reducing or circuit complexity, the microcontroller can be more widely used in high-speed transmission scenarios.
應當理解,本文描述的示例和實施例僅用於說明目的,並且鑑於其的各種修改或改變將被建議給本領域技術人員,並且將被包括在本申請的精神和範圍以及所附權利要求的範圍之內。 It should be understood that the examples and embodiments described herein are for illustrative purposes only, and that various modifications or changes in view thereof will be suggested to those skilled in the art, and will be included within the spirit and scope of the application and the scope of the appended claims. within range.
100:數位電路 100: digital circuit
110:訊號生成電路 110: Signal generation circuit
112:反相器 112: Inverter
114:延遲電路 114: delay circuit
120_1~120_4:輸入輸出連接墊 120_1~120_4: input and output connection pads
DFS:差動訊號 DFS: Differential Signaling
Dout:資料輸出端 Dout: data output terminal
EN:啟用端 EN: enable end
S1:輸入訊號 S1: input signal
S1’、S1_b:訊號 S1’, S1_b: signal
Sen、Sen_b:啟用訊號 Sen, Sen_b: enable signal
SEL1、SEL2:功能訊號 SEL1, SEL2: function signal
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110136980A TWI780942B (en) | 2021-10-05 | 2021-10-05 | Digital circuit capable of generating differential signal and microcontroller using the same |
CN202111477835.2A CN115933806A (en) | 2021-10-05 | 2021-12-06 | Digital circuit capable of generating differential signal and microcontroller using same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110136980A TWI780942B (en) | 2021-10-05 | 2021-10-05 | Digital circuit capable of generating differential signal and microcontroller using the same |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI780942B true TWI780942B (en) | 2022-10-11 |
TW202316802A TW202316802A (en) | 2023-04-16 |
Family
ID=85462717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW110136980A TWI780942B (en) | 2021-10-05 | 2021-10-05 | Digital circuit capable of generating differential signal and microcontroller using the same |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115933806A (en) |
TW (1) | TWI780942B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070126431A1 (en) * | 2005-12-06 | 2007-06-07 | Honeywell International Inc. | Dynamically switched line and fault detection for differential signaling systems |
US7378867B1 (en) * | 2002-06-04 | 2008-05-27 | Actel Corporation | Field-programmable gate array low voltage differential signaling driver utilizing two complimentary output buffers |
TW201421905A (en) * | 2012-11-26 | 2014-06-01 | Via Tech Inc | Low voltage differential signal driving circuit and electronic device compatible with wired transmission |
US8773421B2 (en) * | 2010-02-23 | 2014-07-08 | Rohm Co., Ltd. | Multiplexer for differential signal |
-
2021
- 2021-10-05 TW TW110136980A patent/TWI780942B/en active
- 2021-12-06 CN CN202111477835.2A patent/CN115933806A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7378867B1 (en) * | 2002-06-04 | 2008-05-27 | Actel Corporation | Field-programmable gate array low voltage differential signaling driver utilizing two complimentary output buffers |
US20070126431A1 (en) * | 2005-12-06 | 2007-06-07 | Honeywell International Inc. | Dynamically switched line and fault detection for differential signaling systems |
US8773421B2 (en) * | 2010-02-23 | 2014-07-08 | Rohm Co., Ltd. | Multiplexer for differential signal |
TW201421905A (en) * | 2012-11-26 | 2014-06-01 | Via Tech Inc | Low voltage differential signal driving circuit and electronic device compatible with wired transmission |
Non-Patent Citations (1)
Title |
---|
網路文獻 Nexperia " XS3A1T3157 Low-ohmic single-pole double-throw analog switch" Nexperia 2020年3月17日公開文件 https://www.mouser.tw/new/nexperia/nexperia-xs3a1tx157-low-ohmic-analog-switches/ * |
Also Published As
Publication number | Publication date |
---|---|
TW202316802A (en) | 2023-04-16 |
CN115933806A (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4937609B2 (en) | Output buffer circuit, differential output buffer circuit and transmission method | |
US9310830B2 (en) | High-speed I/O data system | |
JP4756965B2 (en) | Output buffer circuit | |
US9525573B2 (en) | Serializing transmitter | |
US8415980B2 (en) | Serializing transmitter | |
US8008946B2 (en) | Semiconductor integrated circuit | |
JP2009118480A (en) | On-die termination device and semiconductor memory device including the same | |
JP2009302703A (en) | Complementary optical wiring system | |
US7005891B2 (en) | Data transmission circuit for universal serial bus system | |
US7961000B1 (en) | Impedance matching circuit and method | |
US9432061B2 (en) | Serializing transmitter | |
TWI780942B (en) | Digital circuit capable of generating differential signal and microcontroller using the same | |
US20130038386A1 (en) | Differential transmission circuit | |
KR100678332B1 (en) | Bus Driver with Data Dependent Drive Strength Control Logic | |
JP2004281960A (en) | Ultra-high speed interface using intersymbol interference suppression resistor | |
US10608616B2 (en) | Clock distribution | |
JP5257493B2 (en) | Output buffer circuit | |
TW201926895A (en) | Signal driver circuit and semiconductor apparatus using the signal driver circuit | |
TWI694677B (en) | Current mode logic buffer device for suppressing electromagnetic interference and signal generating method thereof | |
KR102646553B1 (en) | Transmitter equalization device based voltage regulation | |
JP2001068988A (en) | Differential signal output circuit | |
CN111953335B (en) | Current mode logic buffer device capable of inhibiting electromagnetic interference and signal generation method | |
JPH0332137A (en) | Signal transmitter | |
Qian et al. | A 1.25 Gbps FPGA I/O Cell Design for Source-Synchronous System in 65nm CMOS Process | |
JP2003087103A (en) | Integrated semiconductor circuit and method for transmitting signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent |