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 PDF

Info

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
Application number
TW110136980A
Other languages
Chinese (zh)
Other versions
TW202316802A (en
Inventor
藍永吉
Original Assignee
新唐科技股份有限公司
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 新唐科技股份有限公司 filed Critical 新唐科技股份有限公司
Priority to TW110136980A priority Critical patent/TWI780942B/en
Priority to CN202111477835.2A priority patent/CN115933806A/en
Application granted granted Critical
Publication of TWI780942B publication Critical patent/TWI780942B/en
Publication of TW202316802A publication Critical patent/TW202316802A/en

Links

Images

Landscapes

  • Semiconductor Integrated Circuits (AREA)
  • Logic Circuits (AREA)
  • Selective Calling Equipment (AREA)

Abstract

A digital circuit capable of generating differential signal and a microcontroller using the same are provided. The digital circuit includes a signal generating circuit, a first, a second, a third, and a fourth input/output pads (I/O pads). The signal generating circuit is configured to generate a first signal and a second signal, both of which form a differential signal, based on an input signal, wherein the second signal is inverted to the second signal. The first and the second I/O pads are coupled to the signal generating circuit and determine whether to enable according to a first enable signal. The third and the fourth I/O pads are configured to determine whether to enable according to a second enable signal which is inverted to the first enable signal. When the first and the second I/O pads are enabled, the first and the second I/O pads are configured to transmit the differential signal.

Description

可產生差動訊號的數位電路與使用其之微控制器 Digital circuits capable of generating differential signals and microcontrollers using them

本發明涉及一種數位電路及微控制器,且特別是一種可產生差動訊號的數位電路與使用其之微控制器。 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 digital circuit 100 of this embodiment can be configured to generate a differential signal DFS in a specific working mode, which includes a signal generating circuit 110 and a plurality of input/output connection pads (I/O pads). The signal generating circuit 110 generates the differential signal DFS based on the single-ended input signal S1, wherein the input signal S1 can be, for example, a clock signal, but the present invention is not limited thereto.

所述多個輸入輸出連接墊是用以作為數位電路100向外部輸出訊號,或是從外部接收訊號並向內部的控制電路傳輸的介面。各輸入輸出連接墊可包含有連接墊(pad)以及輸入輸出單元,其中所述輸入輸出單元可例如包含靜電防護電路、緩衝電路及供電電路等。在本實施例中,所述多個輸入輸出連 接墊在本實施例中是繪示為以其中4個為例來進行說明,如輸入輸出連接墊120_1~120_4,但本發明不以此為限。 The plurality of input and output connection pads are used as an interface for the digital circuit 100 to output signals to the outside, or to receive signals from the outside and transmit them to the internal control circuit. Each input and output connection pad may include a connection pad and an input and output unit, wherein the input and output unit may include, for example, an electrostatic protection circuit, a buffer circuit, a power supply circuit, and the like. In this embodiment, the multiple input and output connections In this embodiment, four of the pads are shown as an example for illustration, such as the input and output connection pads 120_1 - 120_4 , but the present invention is not limited thereto.

各個輸入輸出連接墊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 signal generating circuit 110 through the data output terminal Dout to receive the differential signal DFS composed of the signals S1_b and S1', and determine whether to enable or not according to the enable signal Sen received from the enable terminal EN, The signals S1_b and S1' are substantially in antiphase with each other, and the phase difference is 180 degrees. The I/O pads 120_3 and 120_4 respectively receive the function signals SEL1 and SEL2 through the data output terminal Dout, and receive the enable signal Sen_b through the enable terminal EN. The enabling signals Sen and Sen_b are mutually inverse signals, that is, when the I/O pads 120_1 and 120_2 are enabled, the I/O pads 120_3 and 120_4 will be disabled; conversely, when the I/O pads 120_3 and 120_4 are enabled When enabled, the input and output connection pads 120_1 and 120_2 are disabled.

啟用訊號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 digital circuit 100 can be selectively set to output the differential signal DFS or output the function signals SEL1 and SEL2 . When the digital circuit 100 is set to output the differential signal DFS, the function control circuit can generate corresponding enabling signals Sen and Sen_b (for example, 1 and 0), so that the input and output connection pads 120_1 and 120_2 are enabled, and the input and output connection pads 120_3 and 120_4 are disabled. At this time, the I/O pads 120_1 and 120_2 are used to transmit the differential signal DFS. On the other hand, when When the digital circuit 100 is set to output the function signals SEL1 and SEL2, the function control circuit can generate corresponding enable signals Sen and Sen_b (such as 0 and 1), so that the input and output connection pads 120_1 and 120_2 are enabled, and the input and output connection pads 120_3 and 120_4 are disabled.

更具體地說,相較於圖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 digital circuit 100, and the two input-output pads 120_2 The connection pads 120_1 and 120_2 are directly connected to the output of the signal generating circuit 110 to receive the signals S1 ′ and S1_b constituting the differential signal DFS, so that the input and output connection pads 120_1 and 120_2 are exclusively used for outputting the differential signal DFS. Since the differential signal DFS is not generated by the functional control circuit, even if the user sets the mode or output value of other input and output pads, it will not cause different phase delays of the differential signal DFS due to the change of the circuit combination path . In other words, the digital circuit 100 of this embodiment can output the differential signal DFS stably maintaining a phase difference of approximately 180 degrees, which is more suitable for applications in high-speed transmission environments.

另一方面,由於增設的輸入輸出連接墊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 signal generating circuit 110 may include an inverter 112 and a delay circuit 114 . The inverter 112 has an input terminal and an output terminal, wherein the input terminal of the inverter 112 receives the input signal S1, and the output terminal of the inverter 112 is coupled to the data output terminal Dout of the input-output connection pad 120_1 to transmit the input signal S1. Inverted signal S1_b. The input end of the delay circuit 114 receives the input signal S1 , and the output end of the delay circuit 114 is coupled to the data output end Dout of the I/O connection pad 120_2 . The delay circuit 114 is used to adjust the phase of the input signal S1 to compensate the phase difference between the input signal S1 and the inverted signal S1_b, that is, to reduce the delay DLY shown in FIG. 2 and generate the adjusted signal S1', The adjusted signal S1 ′ and the signal S1_b which is inverse to the signal S1 ′ constitute the differential signal DFS.

接下來說明應用上述數位電路之微控制器的實施範例。請參照圖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 microcontroller 50 includes a plurality of package pins 52 and a digital circuit 200 , wherein the digital circuit 200 includes a signal generating circuit 110 , input and output connection pads 120_1 - 120_4 and a function control circuit 130 .

訊號生成電路110用以基於時脈訊號CLK產生差動訊號DFS,其中差動訊號DFS包含經延遲電路114進行相位調整後的時脈訊號CLK’以及與時脈訊號CLK’的反相時脈訊號CLK_b。 The signal generating circuit 110 is used to generate a differential signal DFS based on the clock signal CLK, wherein the differential signal DFS includes the clock signal CLK' after phase adjustment by the delay circuit 114 and the clock signal inverse to the clock signal CLK' CLK_b.

輸入輸出連接墊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 inverter 112 of the signal generating circuit 110 to receive the inverted clock signal CLK_b. The data output terminal Dout of the input-output connection pad 120_2 is coupled to the output terminal of the delay circuit 114 of the signal generating circuit 110 to receive the clock signal No. CLK'. The data output terminals Dout of the I/O pads 120_3 and 120_4 are coupled to the function control circuit 130 to receive function signals SEL1 and SEL2 respectively.

功能控制電路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 function control circuit 130 is coupled to the enabling terminals EN of the input and output connection pads 120_1 - 120_4 . In addition to generating the function signals SEL1 and SEL2 , the function control circuit 130 also generates enabling signals Sen and Sen_b to control enabling/disabling of each input/output connection pad 120_1 ˜ 120_4 . In this embodiment, the I/O pads 120_1 and 120_2 receive the enable signal Sen from the function control circuit 130 , and the I/O pads 120_3 and 120_4 receive the enable signal Sen_b from the function control circuit 130 , which is inverse to the enable signal Sen. In addition, for the configuration and operation among the signal generating circuit 110 , the input/output connection pads 120_1 ˜ 120_4 , and the function control circuit 130 , please refer to the description of the embodiment in FIG. 4 above, and details will not be repeated here.

在一些實施例中,功能控制電路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 function control circuit 130 further includes inverters 132_1 and 132_2 for generating the enable signal Sen_b. The input terminal of the inverter 132_1 receives the enable signal Sen, and the output terminal of the inverter 132_1 generates an inverted enable signal Sen' and transmits it to the enable terminal EN of the I/O pad 120_3. The input terminal of the inverter 132_2 receives the enable signal Sen, and the output terminal of the inverter 132_2 generates an inverted enable signal Sen' and transmits it to the enable terminal EN of the I/O pad 120_4. Although the above-mentioned embodiment and FIG. 5 show that two inverters 132_1 and 132_2 are used to generate the enable signal Sen_b required by the input and output pads 120_3 and 120_4 as an example, the present invention is not limited thereto. In other embodiments, the function control circuit 130 can also be implemented by using a single inverter, and the output terminal of the single inverter is simultaneously connected to the enable terminals EN of the input-output connection pads 120_3 and 120_4 .

在本實施例中,輸入輸出連接墊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 digital circuit 200 is set to output the differential signal DFS, the input and output pads 120_1 and 120_2 will be enabled in response to the enable signal Sen, and transmit the clock signals CLK_b and CLK to the package pins 52_clkb and 52_clkb respectively. 52_clk, so that the microcontroller 50 can output the differential clock signal DFS to the outside through the package pins 52_clkb and 52_clk circuit. On the other hand, when the digital circuit 200 is configured to output the functional signals SEL1 and SEL2, the I/O pads 120_3 and 120_4 are enabled in response to the enable signal Sen_b, and transmit the functional signals SEL1 and SEL2 to the package pins 52_clkb and 52_clkb respectively. 52_clk, so that the microcontroller 50 can output the function signals SEL1 and SEL2 to the external circuit through the package pins 52_clkb and 52_clk.

換言之,在本實施例中,輸入輸出連接墊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 package pin 52 . In some embodiments, the input and output connection pads 120_1 and 120_2 for outputting the differential signal DFS are located adjacent to each other and configured symmetrically in a mapping manner. That is, some or all of the circuit elements in the I/O pads 120_1 and 120_2 can be symmetrically arranged on both sides of a reference line, and the data output terminals Dout of the I/O pads 120_1 and 120_2 are located on adjacent sides. Such configuration can reduce the phase difference between the clock signals CLK' and CLK_b as much as possible, so that the differential signal DFS has better characteristics.

在一些實施例中,訊號生成電路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 inverter 112 of the signal generating circuit 110 can be arranged in the middle of the input and output connection pads 120_1 and 120_2, and as close as possible to the input and output connection pads 120_1 and 120_2 under the premise of complying with the layout and routing rules. . The inverter 112 is arranged in the middle of the input and output connection pads 120_1 and 120_2, which means that the distance between the position of the layout of the inverter 112 and the data output terminal Dout of the input and output connection pad 120_1 is substantially equal to the distance between the input and output connection pads 120_1. The distance between the data output terminals Dout of the pads 120_2.

另外,在本發明實施例中,數位電路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 digital circuit 200 may have more than four input and output connection pads. As shown in Fig. 5, an input and output connection pad can be provided on the upper side of the input and output connection pad 120_3, and an input and output connection pad can be provided on the lower side of the input and output connection pad 120_4, that is, the digital circuit 200 has 6 input and output pads in total. connection pad, the upper side of the input and output connection pad 120_3 is connected with the input and output The two input and output connection pads on the lower side of the pad 120_4 can be used to respectively receive the forward signal and the reverse signal of another set of output differential signals, and can also be used to respectively receive several other functional signals. The function control circuit 130 can provide another enabling signal to control the enabling of the above two input and output connection pads, and at this time the enabling signal Sen_b is not the inversion signal of the enabling signal Sen, but the three enabling signals at three different times Dots represent enabled voltage levels. The above two input and output connection pads can be coupled to the package pins 52_clk and 52_clkb respectively, so that the package pins 52_clk and 52_clkb can output two sets of different output differential signals and a set of multiple function signals according to different enabling signals One of the groups, or output two groups of functional signals and one group of output differential signals.

綜合以上所述,相較於先前技術,本發明實施例的可產生差動訊號的數位電路及使用其之微控制器,由於不用額外設計類比電路來產生差動訊號,因此可以大幅地縮短電路設計時程。再者,相較於傳統的以數位電路來產生差動訊號的機制來說,本發明實施例可以有效地改善數位電路在不同應用情境下差動訊號的相位偏移問題,並且也同時降低了電路調校的複雜性。另外,由於在本實施例的設計下電路的封裝引腳不需使用額外的引腳,也可使微控制器可選擇性地有輸出精確差動時脈訊號的能力,因此可在不增加成本或電路複雜度的前提下,使微控制器可更廣泛地應用於高速傳輸的情境。 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)

一種可產生差動訊號的數位電路,包括:訊號生成電路,用以基於輸入訊號產生構成差動訊號的第一訊號與第二訊號,其中所述第一訊號與所述第二訊號彼此反相;第一和第二輸入輸出連接墊,耦接所述訊號生成電路,並且根據第一啟用訊號決定是否啟用;以及第三和第四輸入輸出連接墊,用以根據第二啟用訊號決定是否啟用;其中當所述第一和所述第二輸入輸出連接墊被啟用時,所述第一和所述第二輸入輸出連接墊分別用以傳輸構成所述差動訊號的所述第一訊號與所述第二訊號,以及當所述第三和所述第四輸入輸出連接墊被啟用時,所述第三和所述第四輸入輸出連接墊用以傳輸多個功能訊號;其中所述第一和所述第三輸入輸出連接墊共同耦接至多個封裝引腳其中之一,以及所述第二和所述第四輸入輸出連接墊共同耦接至所述多個封裝引腳其中之另一;其中所述輸入訊號為時脈訊號,並且所述訊號生成電路包括:反相器,具有輸入端和輸出端,其輸入端接收所述時脈訊號,且其輸出端耦接所述第一輸入輸出連接墊之資料輸出端以傳輸所述第一訊號,且所述第一訊號為反相時脈訊號;以及 延遲電路,用以調整所述時脈訊號的相位,以產生所述第二訊號,所述第二訊號為調整相位後的所述時脈訊號,調整相位後的所述時脈訊號與所述反相時脈訊號的相位互相匹配,其中所述延遲電路將調整後的時脈訊號傳輸至所述第二輸入輸出連接墊之資料輸出端。 A digital circuit capable of generating a differential signal, comprising: a signal generating circuit for generating a first signal and a second signal constituting a differential signal based on an 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 determine whether to enable according to the first enable signal; and the third and fourth input-output connection pads are used to determine whether to enable according to the second enable signal ; wherein when the first and the second input and output connection pads are enabled, the first and the second input and output connection pads are respectively used to transmit the first signal and the The second 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; wherein the first one 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 other of the plurality of package pins 1. wherein the input signal is a clock signal, and the signal generating circuit includes: an inverter having an input terminal and an output terminal, the input terminal of which receives the clock signal, and the output terminal of which is coupled to the first a data output terminal of an input-output pad for transmitting the first signal, and the first signal is an inverted clock signal; and a delay circuit, used to adjust the phase of the clock signal to generate the second signal, the second signal is the phase-adjusted clock signal, and the phase-adjusted clock signal is the same as the The phases of the anti-phase clock signals are matched with each other, and the delay circuit transmits the adjusted clock signal to the data output end of the second input-output connection pad. 如請求項1所述之可產生差動訊號的數位電路,更包括:功能控制電路,耦接所述第一至所述第四輸入輸出連接墊,用以產生所述第一啟用訊號、所述第二啟用訊號以及所述多個功能訊號。 The digital circuit capable of generating differential signals as described in Claim 1, further comprising: a function control circuit coupled to the first to the fourth input-output connection pads for generating the first enable signal, the The second activation signal and the plurality of function signals. 如請求項2所述之可產生差動訊號的數位電路,更包括:第五和第六輸入輸出連接墊,用以根據第三啟用訊號決定是否啟用;其中所述功能控制電路更提供所述第三啟用訊號,且所述第一、所述第三和所述第五輸入輸出連接墊共同耦接至該封裝引腳,以及所述第二、所述第四和所述第六輸入輸出連接墊共同耦接至該另一封裝引腳。 The digital circuit capable of generating differential signals as described in claim 2 further includes: fifth and sixth input and output connection pads, used to determine whether to enable according to the third enabling signal; wherein the function control circuit further provides the described A third enable signal, and the first, the third and the fifth input and output connection pads are commonly coupled to the package pin, and the second, the fourth and the sixth input and output The connection pads are commonly coupled to the other package pin. 如請求項2所述之可產生差動訊號的數位電路,其中所述功能控制電路包括:至少一反相器,具有輸入端和輸出端,其輸入端接收所述第一啟用訊號,且其輸出端耦接所述第三和所述第四輸入輸出連接墊以輸出所述第二啟用訊號。 The digital circuit capable of generating differential signals as described in Claim 2, wherein the function control circuit includes: at least one inverter having an input terminal and an output terminal, the input terminal of which receives the first enabling signal, and its The output terminal is coupled to the third and the fourth input-output connection pads to output the second enabling signal. 如請求項1所述之可產生差動訊號的數位電路,其中所述第一輸入輸出連接墊和所述第二輸入輸出連接墊係相鄰且以映射方式對稱配置,並且所述第一輸入輸出連接墊和所述第二輸入輸出連接墊之資料輸出端位於鄰近側。 The digital circuit capable of generating differential signals as described in Claim 1, wherein the first input-output connection pad and the second input-output connection pad are adjacent and symmetrically arranged in a mapping manner, and the first input The output connection pad and the data output terminal of the second input-output connection pad are located on adjacent sides. 如請求項5所述之可產生差動訊號的數位電路,其中所述反相器配置在與所述第一輸入輸出連接墊之資料輸出端具有第一間距並且與所述第二輸入輸出連接墊之資料輸出端具有第二間距的位置,其中所述第一間距和所述第二間距實質上相等。 The digital circuit capable of generating differential signals as described in Claim 5, wherein the inverter is arranged with a first distance from the data output end of the first input-output connection pad and connected to the second input-output The data output ends of the pads have positions at a second pitch, wherein the first pitch and the second pitch are substantially equal. 一種微控制器,包括:多個封裝引腳;功能控制電路,用以產生多個功能訊號;訊號生成電路,用以基於時脈訊號產生構成差動訊號的第一訊號與第二訊號;第一和第二輸入輸出連接墊,耦接所述訊號生成電路,以分別接收構成所述差動訊號的所述第一訊號與所述第二訊號;以及第三和第四輸入輸出連接墊,耦接所述功能控制電路,以分別接收所述多個功能訊號,其中,所述第一和所述第三輸入輸出連接墊共同耦接至所述多個封裝引腳其中之一,以及所述第二和所述第四輸入輸出連接墊共同耦接至所述多個封裝引腳其中之另一; 其中所述訊號生成電路包括:反相器,具有輸入端和輸出端,其輸入端接收所述時脈訊號,且其輸出端耦接所述第一輸入輸出連接墊之資料輸出端以傳輸所述第一訊號,且所述第一訊號為反相時脈訊號;以及延遲電路,用以調整所述時脈訊號的相位,以產生所述第二訊號,所述第二訊號為調整相位後的所述時脈訊號,調整相位後的所述時脈訊號與所述反相時脈訊號的相位互相匹配,其中所述延遲電路將調整後的時脈訊號傳輸至所述第二輸入輸出連接墊之資料輸出端。 A microcontroller, comprising: a plurality of packaging pins; a function control circuit for generating a plurality of function signals; a signal generation circuit for generating a first signal and a second signal constituting a differential signal based on a clock signal; the second one and second input-output connection pads, coupled to the signal generating circuit, to respectively receive the first signal and the second signal constituting the differential signal; and third and fourth input-output connection pads, coupled to the function control circuit to respectively receive the plurality of function signals, wherein the first and the third input-output connection pads are commonly coupled to one of the plurality of package pins, and the The second and the fourth input-output connection pads are commonly coupled to another one of the plurality of package pins; Wherein the signal generating circuit includes: an inverter having an input terminal and an output terminal, the input terminal of which receives the clock signal, and the output terminal of which is coupled to the data output terminal of the first input-output connection pad to transmit the The first signal, and the first signal is an inverted clock signal; and a delay circuit, used to adjust the phase of the clock signal to generate the second signal, the second signal is the adjusted phase The phase of the adjusted clock signal matches the phase of the inverted clock signal, wherein the delay circuit transmits the adjusted clock signal to the second input-output connection Pad data output. 如請求項7所述之微控制器,其中所述功能控制電路更用以產生第一啟用訊號以及與所述第一啟用訊號反相的第二啟用訊號,所述第一和所述第二輸入輸出連接墊接收所述第一啟用訊號,並且所述第三和所述第四輸入輸出連接墊接收所述第二啟用訊號。 The microcontroller as described in claim item 7, wherein the function control circuit is further used to generate a first enable signal and a second enable signal that is opposite to the first enable signal, the first and the second An IO pad receives the first enable signal, and the third and fourth IO pads receive the second enable signal. 如請求項8所述之微控制器,其中當所述第一和所述第二輸入輸出連接墊響應於所述第一啟用訊號被啟用時,所述第一和所述第二輸入輸出連接墊傳輸所述差動訊號的所述第一訊號與所述第二訊號分別至所述其中之一和所述其中之另一封裝引腳上;以及當所述第三和所述第四輸入輸出連接墊響應於所述第二啟用訊號被啟用時,所述第三和所述第四輸入輸出連接墊傳輸所述多 個功能訊號分別至所述其中之一和所述其中之另一封裝引腳上。 The microcontroller according to claim 8, wherein when said first and said second I/O connection pads are enabled in response to said first enable signal, said first and said second I/O connection pads Pad transmits said first signal and said second signal of said differential signal to said one of them and said other one of said package pins respectively; and when said third and said fourth input When an output pad is enabled in response to the second enable signal, the third and the fourth input-output pads transmit the multiple A functional signal is respectively sent to one of the above-mentioned ones and the other package pin of the above-mentioned ones. 如請求項7所述之微控制器,其中所述第一至所述第四輸入輸出連接墊排列配置於靠近所述其中之一和所述其中之另一封裝引腳之一側,所述第一輸入輸出連接墊和所述第二輸入輸出連接墊相鄰且以映射方式對稱配置,所述第一輸入輸出連接墊和所述第三輸入輸出連接墊分別打線連接至所述其中之一封裝引腳,並且所述第二輸入輸出連接墊和所述第四輸入輸出連接墊分別打線連接至所述其中之另一封裝引腳。 The microcontroller according to claim 7, wherein the first to the fourth input and output connection pads are arranged on one side close to the one of them and the other package pin of the said one of them, said The first input and output connection pads are adjacent to the second input and output connection pads and arranged symmetrically in a mapping manner, and the first input and output connection pads and the third input and output connection pads are respectively wired to one of the package pins, and the second input-output connection pad and the fourth input-output connection pad are connected to the other package pin by wire bonding respectively.
TW110136980A 2021-10-05 2021-10-05 Digital circuit capable of generating differential signal and microcontroller using the same TWI780942B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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