TWI637269B - Electronic apparatus and operation method thereof - Google Patents

Electronic apparatus and operation method thereof Download PDF

Info

Publication number
TWI637269B
TWI637269B TW106145832A TW106145832A TWI637269B TW I637269 B TWI637269 B TW I637269B TW 106145832 A TW106145832 A TW 106145832A TW 106145832 A TW106145832 A TW 106145832A TW I637269 B TWI637269 B TW I637269B
Authority
TW
Taiwan
Prior art keywords
integrated circuit
pin
data
signal
clock
Prior art date
Application number
TW106145832A
Other languages
Chinese (zh)
Other versions
TW201928694A (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 TW106145832A priority Critical patent/TWI637269B/en
Application granted granted Critical
Publication of TWI637269B publication Critical patent/TWI637269B/en
Publication of TW201928694A publication Critical patent/TW201928694A/en

Links

Landscapes

  • Semiconductor Integrated Circuits (AREA)

Abstract

一種電子裝置。所述電子裝置包括第一積體電路以及第二積體電路。第一積體電路的方向接腳輸出方向控制訊號給第二積體電路的方向接腳。當方向控制訊號為第一邏輯態時,第一積體電路取得控制權。當第一積體電路取得控制權時,第一積體電路的時脈接腳輸出第一時脈訊號給第二積體電路的時脈接腳。當方向控制訊號為第二邏輯態時,第二積體電路取得控制權。當第二積體電路取得控制權時,第二積體電路的時脈接腳輸出第二時脈訊號給第一積體電路的時脈接腳。An electronic device. The electronic device includes a first integrated circuit and a second integrated circuit. The direction pin of the first integrated circuit outputs a direction control signal to the direction pin of the second integrated circuit. When the direction control signal is in the first logic state, the first integrated circuit takes control. When the first integrated circuit obtains the control right, the clock pin of the first integrated circuit outputs the first clock signal to the clock pin of the second integrated circuit. When the direction control signal is in the second logic state, the second integrated circuit takes control. When the second integrated circuit obtains the control right, the clock pin of the second integrated circuit outputs the second clock signal to the clock pin of the first integrated circuit.

Description

電子裝置及其操作方法Electronic device and method of operating same

本發明是有關於一種電子裝置及其操作方法。The present invention relates to an electronic device and a method of operating the same.

在兩個積體電路之間進行協同運作時,除了資料傳輸接腳外,還需要額外的控制接腳來傳遞特定的控制信號。一般而言,接腳的數量越多,積體電路的製造成本越高。另外,在兩個積體電路之間進行協同運作的過程中,其中一個積體電路擔任「主(master)」角色(主控端),而另一個積體電路擔任「僕(slave)」角色(被控端)。在習知技術中,主與僕是固定的。舉例來說,於主僕架構中,積體電路A擔任「主」角色(主控端),而積體電路B擔任「僕(slave)」角色(被控端)。同步操作所需的時脈信號是固定由積體電路A負責提供,而積體電路B接收積體電路A的時脈信號來進行協同運作。積體電路B不能從僕改變為主。In conjunction with the two integrated circuits, in addition to the data transfer pins, additional control pins are required to deliver specific control signals. In general, the more the number of pins, the higher the manufacturing cost of the integrated circuit. In addition, in the process of cooperative operation between two integrated circuits, one of the integrated circuits functions as the "master" (master), and the other integrated circuit acts as the "slave". (controlled terminal). In the prior art, the master and the servant are fixed. For example, in the master servant architecture, the integrated circuit A assumes the "master" role (the master), and the integrated circuit B acts as the "slave" role (the host). The clock signal required for the synchronous operation is fixedly provided by the integrated circuit A, and the integrated circuit B receives the clock signal of the integrated circuit A for cooperative operation. The integrated circuit B cannot be changed from the servant to the main.

本發明提供一種電子裝置及其操作方法,以依照操作需求而將控制權動態地切換給第一積體電路以及第二積體電路其中一者。The present invention provides an electronic device and an operating method thereof for dynamically switching control to one of a first integrated circuit and a second integrated circuit in accordance with operational requirements.

本發明的實施例提供一種電子裝置。所述電子裝置包括第一積體電路以及第二積體電路。第一積體電路至少具有方向接腳與時脈接腳,其中第一積體電路的方向接腳輸出方向控制訊號。第二積體電路至少具有方向接腳與時脈接腳。第二積體電路的方向接腳耦接第一積體電路的方向接腳,以接收方向控制訊號。第二積體電路的時脈接腳耦接第一積體電路的時脈接腳。當方向控制訊號為第一邏輯態時,第一積體電路取得控制權。當第一積體電路取得控制權時,第一積體電路的時脈接腳輸出第一時脈訊號給第二積體電路的時脈接腳。當方向控制訊號為第二邏輯態時,第二積體電路取得控制權。當第二積體電路取得控制權時,第二積體電路的時脈接腳輸出第二時脈訊號給第一積體電路的時脈接腳。Embodiments of the present invention provide an electronic device. The electronic device includes a first integrated circuit and a second integrated circuit. The first integrated circuit has at least a direction pin and a clock pin, wherein the direction pin of the first integrated circuit outputs a direction control signal. The second integrated circuit has at least a directional pin and a clock pin. The direction pin of the second integrated circuit is coupled to the direction pin of the first integrated circuit to receive the direction control signal. The clock pin of the second integrated circuit is coupled to the clock pin of the first integrated circuit. When the direction control signal is in the first logic state, the first integrated circuit takes control. When the first integrated circuit obtains the control right, the clock pin of the first integrated circuit outputs the first clock signal to the clock pin of the second integrated circuit. When the direction control signal is in the second logic state, the second integrated circuit takes control. When the second integrated circuit obtains the control right, the clock pin of the second integrated circuit outputs the second clock signal to the clock pin of the first integrated circuit.

本發明的實施例提供一種電子裝置的操作方法。電子裝置包括第一積體電路以及第二積體電路。所述操作方法包括:由第一積體電路的方向接腳輸出方向控制訊號給第二積體電路的方向接腳;當方向控制訊號為第一邏輯態時,由第一積體電路取得控制權;當第一積體電路取得控制權時,由第一積體電路的時脈接腳輸出第一時脈訊號給第二積體電路的時脈接腳;當方向控制訊號為第二邏輯態時,由第二積體電路取得控制權;以及當第二積體電路取得控制權時,由第二積體電路的時脈接腳輸出第二時脈訊號給第一積體電路的時脈接腳。Embodiments of the present invention provide a method of operating an electronic device. The electronic device includes a first integrated circuit and a second integrated circuit. The operation method includes: outputting a direction control signal to a direction pin of the second integrated circuit by a direction pin of the first integrated circuit; and obtaining control by the first integrated circuit when the direction control signal is in a first logic state; When the first integrated circuit obtains the control right, the clock pin of the first integrated circuit outputs the first clock signal to the clock pin of the second integrated circuit; when the direction control signal is the second logic In the state, the control is obtained by the second integrated circuit; and when the second integrated circuit obtains the control right, when the second pulse of the second integrated circuit outputs the second clock signal to the first integrated circuit Pulse pin.

基於上述,本發明諸實施例所述電子裝置及其操作方法可以藉由方向控制訊號而將控制權動態地切換給第一積體電路以及第二積體電路其中一者。當第一積體電路取得控制權時,第一積體電路可以輸出第一時脈訊號給第二積體電路。當第二積體電路取得控制權時,第二積體電路可以輸出第二時脈訊號給第一積體電路。Based on the above, the electronic device and the operating method thereof according to the embodiments of the present invention can dynamically switch the control right to one of the first integrated circuit and the second integrated circuit by using the direction control signal. When the first integrated circuit obtains the control right, the first integrated circuit can output the first clock signal to the second integrated circuit. When the second integrated circuit obtains the control right, the second integrated circuit can output the second clock signal to the first integrated circuit.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the invention will be apparent from the following description.

在本案說明書全文(包括申請專利範圍)中所使用的「耦接(或連接)」一詞可指任何直接或間接的連接手段。舉例而言,若文中描述第一裝置耦接(或連接)於第二裝置,則應該被解釋成該第一裝置可以直接連接於該第二裝置,或者該第一裝置可以透過其他裝置或某種連接手段而間接地連接至該第二裝置。另外,凡可能之處,在圖式及實施方式中使用相同標號的元件/構件/步驟代表相同或類似部分。不同實施例中使用相同標號或使用相同用語的元件/構件/步驟可以相互參照相關說明。The term "coupled (or connected)" as used throughout the specification (including the scope of the claims) may be used in any direct or indirect connection. For example, if the first device is described as being coupled (or connected) to the second device, it should be construed that the first device can be directly connected to the second device, or the first device can be A connection means is indirectly connected to the second device. In addition, wherever possible, the elements and/ Elements/components/steps that use the same reference numbers or use the same terms in different embodiments may refer to the related description.

圖1是依照本發明的一實施例的一種電子裝置100的電路方塊(circuit block)示意圖。所述電子裝置100包括第一積體電路110以及第二積體電路120。第一積體電路110至少具有方向接腳DR、時脈接腳CK、第一資料接腳D1與第二資料接腳D2。第二積體電路120至少具有方向接腳DR、時脈接腳CK、第一資料接腳D1與第二資料接腳D2。依照設計需求,第一積體電路110可能還配置有其他接腳,而第二積體電路120亦可能還配置有其他接腳。FIG. 1 is a schematic diagram of a circuit block of an electronic device 100 according to an embodiment of the invention. The electronic device 100 includes a first integrated circuit 110 and a second integrated circuit 120. The first integrated circuit 110 has at least a direction pin DR, a clock pin CK, a first data pin D1 and a second data pin D2. The second integrated circuit 120 has at least a direction pin DR, a clock pin CK, a first data pin D1 and a second data pin D2. According to design requirements, the first integrated circuit 110 may also be configured with other pins, and the second integrated circuit 120 may also be configured with other pins.

第一積體電路110的方向接腳DR輸出方向控制訊號DIR。第二積體電路120的方向接腳DR耦接第一積體電路110的方向接腳DR,以接收方向控制訊號DIR。第二積體電路120的時脈接腳CK耦接第一積體電路110的時脈接腳CK。第二積體電路120的第一資料接腳D1耦接第一積體電路110的第一資料接腳D1。第二積體電路120的第二資料接腳D2耦接第一積體電路110的第二資料接腳D2。The direction pin DR of the first integrated circuit 110 outputs a direction control signal DIR. The direction pin DR of the second integrated circuit 120 is coupled to the direction pin DR of the first integrated circuit 110 to receive the direction control signal DIR. The clock pin CK of the second integrated circuit 120 is coupled to the clock pin CK of the first integrated circuit 110. The first data pin D1 of the second integrated circuit 120 is coupled to the first data pin D1 of the first integrated circuit 110. The second data pin D2 of the second integrated circuit 120 is coupled to the second data pin D2 of the first integrated circuit 110.

圖2是依照本發明的一實施例的一種電子裝置的操作方法的流程示意圖。請參照圖1與圖2。於步驟S210中,第一積體電路110的方向接腳DR輸出方向控制訊號DIR給第二積體電路120的方向接腳DR。步驟S220判斷方向控制訊號DIR的邏輯態。當步驟S220的判斷結果表示方向控制訊號DIR為第一邏輯態時,步驟S230會被進行。當步驟S220的判斷結果表示方向控制訊號DIR為第二邏輯態時,步驟S250會被進行。FIG. 2 is a schematic flow chart of a method of operating an electronic device according to an embodiment of the invention. Please refer to FIG. 1 and FIG. 2 . In step S210, the direction pin DR of the first integrated circuit 110 outputs the direction control signal DIR to the direction pin DR of the second integrated circuit 120. Step S220 determines the logic state of the direction control signal DIR. When the result of the determination in step S220 indicates that the direction control signal DIR is in the first logic state, step S230 is performed. When the result of the determination in step S220 indicates that the direction control signal DIR is in the second logic state, step S250 is performed.

所述第一邏輯態與所述第二邏輯態可以依照設計需求來決定。舉例來說,在一實施例中,所述第一邏輯態可以是邏輯態「1」(例如高邏輯準位),而所述第二邏輯態可以是邏輯態「0」(例如低邏輯準位)。在另一實施例中,所述第一邏輯態可以是邏輯態「0」,而所述第二邏輯態可以是邏輯態「1」。The first logic state and the second logic state may be determined according to design requirements. For example, in an embodiment, the first logic state may be a logic state "1" (eg, a high logic level), and the second logic state may be a logic state "0" (eg, a low logic level) Bit). In another embodiment, the first logic state may be a logic state "0", and the second logic state may be a logic state "1".

所述方向控制訊號DIR的初始態可以依照設計需求來決定。舉例來說,在一實施例中,所述方向控制訊號DIR的初始態可以是第二邏輯態。在另一實施例中,所述方向控制訊號DIR的初始態可以是第一邏輯態。The initial state of the direction control signal DIR can be determined according to design requirements. For example, in an embodiment, the initial state of the direction control signal DIR may be the second logic state. In another embodiment, the initial state of the direction control signal DIR may be the first logic state.

當方向控制訊號DIR為第一邏輯態時,第一積體電路110在步驟S230中取得控制權。當第一積體電路110取得控制權時,第一積體電路110的時脈接腳CK在步驟S240中輸出時脈訊號SCL給第二積體電路120的時脈接腳CK。當方向控制訊號DIR為第二邏輯態時,第二積體電路120在步驟S250中取得控制權。當第二積體電路120取得控制權時,第二積體電路120的時脈接腳CK在步驟S260中輸出時脈訊號SCL給第一積體電路110的時脈接腳CK。When the direction control signal DIR is in the first logic state, the first integrated circuit 110 acquires the control right in step S230. When the first integrated circuit 110 obtains the control right, the clock pin CK of the first integrated circuit 110 outputs the clock signal SCL to the clock pin CK of the second integrated circuit 120 in step S240. When the direction control signal DIR is in the second logic state, the second integrated circuit 120 obtains the control right in step S250. When the second integrated circuit 120 obtains the control right, the clock pin CK of the second integrated circuit 120 outputs the clock signal SCL to the clock pin CK of the first integrated circuit 110 in step S260.

因此,本實施例可以藉由方向控制訊號DIR而將控制權動態地切換給第一積體電路110以及第二積體電路120其中一者。舉例來說,於主僕架構中,取得控制權的第一積體電路110可以擔任「主(master)」角色(主控端),而第二積體電路120則擔任「僕(slave)」角色(被控端)。當第一積體電路110取得控制權時,第一積體電路110可以輸出時脈訊號SCL給第二積體電路120。在控制權從第一積體電路110動態地被切換給第二積體電路120後,取得控制權的第二積體電路120可以改擔任「主」角色(主控端),而第一積體電路110則改擔任「僕」角色(被控端)。當第二積體電路120取得控制權時,第二積體電路120可以輸出第二時脈訊號SCL給第一積體電路110。基於時脈訊號SCL,第一積體電路110與第二積體電路120可以進行協同操作。Therefore, in this embodiment, the control right can be dynamically switched to one of the first integrated circuit 110 and the second integrated circuit 120 by the direction control signal DIR. For example, in the master servant architecture, the first integrated circuit 110 that takes control can serve as the "master" role (the master), and the second integrated circuit 120 acts as the "slave". Role (the host). When the first integrated circuit 110 obtains the control right, the first integrated circuit 110 can output the clock signal SCL to the second integrated circuit 120. After the control right is dynamically switched from the first integrated circuit 110 to the second integrated circuit 120, the second integrated circuit 120 that obtains the control right can be changed to the "main" role (the master), and the first product The body circuit 110 is changed to the "servant" role (controlled terminal). When the second integrated circuit 120 obtains the control right, the second integrated circuit 120 can output the second clock signal SCL to the first integrated circuit 110. Based on the clock signal SCL, the first integrated circuit 110 and the second integrated circuit 120 can perform cooperative operation.

當第一積體電路110取得控制權時,第一積體電路110的第一資料接腳D1作為第一積體電路110的資料輸出接腳,而第二積體電路120的第一資料接腳D1作為第二積體電路120的資料輸入接腳。因此,取得控制權的第一積體電路110可以輸出主資料訊號MOSI給第二積體電路120。當第一積體電路110取得控制權時,第一積體電路110的第二資料接腳D2作為第一積體電路110的資料輸入接腳,而第二積體電路120的第二資料接腳D2作為第二積體電路120的資料輸出接腳。因此,基於第一積體電路110的控制,第二積體電路120可以輸出僕資料訊號MISO給第一積體電路110。When the first integrated circuit 110 obtains the control right, the first data pin D1 of the first integrated circuit 110 serves as the data output pin of the first integrated circuit 110, and the first data of the second integrated circuit 120 is connected. The foot D1 serves as a data input pin of the second integrated circuit 120. Therefore, the first integrated circuit 110 that obtains the control can output the main data signal MOSI to the second integrated circuit 120. When the first integrated circuit 110 obtains the control right, the second data pin D2 of the first integrated circuit 110 serves as the data input pin of the first integrated circuit 110, and the second data of the second integrated circuit 120 is connected. The foot D2 serves as a data output pin of the second integrated circuit 120. Therefore, based on the control of the first integrated circuit 110, the second integrated circuit 120 can output the servant signal MISO to the first integrated circuit 110.

當第二積體電路120取得控制權時,第二積體電路120的第一資料接腳D1作為第二積體電路120的資料輸出接腳,而第一積體電路110的第一資料接腳D1作為第一積體電路110的資料輸入接腳。因此,取得控制權的第二積體電路120可以輸出主資料訊號MOSI給第一積體電路110。當第二積體電路120取得控制權時,第二積體電路120的第二資料接腳D2作為第二積體電路120的資料輸入接腳,而第一積體電路110的第二資料接腳D2作為第一積體電路110的資料輸出接腳。因此,基於第二積體電路120的控制,第一積體電路110可以輸出僕資料訊號MISO給第二積體電路120。When the second integrated circuit 120 obtains the control right, the first data pin D1 of the second integrated circuit 120 serves as the data output pin of the second integrated circuit 120, and the first data of the first integrated circuit 110 is connected. The foot D1 serves as a data input pin of the first integrated circuit 110. Therefore, the second integrated circuit 120 that obtains the control can output the main data signal MOSI to the first integrated circuit 110. When the second integrated circuit 120 obtains the control right, the second data pin D2 of the second integrated circuit 120 serves as the data input pin of the second integrated circuit 120, and the second data of the first integrated circuit 110 is connected. The foot D2 serves as a data output pin of the first integrated circuit 110. Therefore, based on the control of the second integrated circuit 120, the first integrated circuit 110 can output the servant signal MISO to the second integrated circuit 120.

於本實施例中,「在時脈接腳CK的訊號為第三邏輯態時,第一資料接腳D1的訊號從第四邏輯態轉態至第五邏輯態」被定義為一個起始訊號。所述起始訊號表示資料傳輸期間的開始。「在時脈接腳CK的訊號為第三邏輯態時,第一資料接腳D1的訊號從第五邏輯態轉態至第四邏輯態」被定義為一個結束訊號。所述結束訊號表示資料傳輸期間的結束。所述第三邏輯態、第四邏輯態與第五邏輯態可以依照設計需求來設定。舉例來說,在本實施例中,所述第三邏輯態可以是邏輯態「1」(例如高邏輯準位),所述第四邏輯態可以是邏輯態「1」,而所述第五邏輯態可以是邏輯態「0」(例如低邏輯準位)。在另一實施例中,所述第三邏輯態可以是邏輯態「0」,所述第四邏輯態可以是邏輯態「0」,而所述第五邏輯態可以是邏輯態「1」。In this embodiment, "when the signal of the clock pin CK is in the third logic state, the signal of the first data pin D1 transitions from the fourth logic state to the fifth logic state" is defined as a start signal. . The start signal indicates the beginning of the data transmission period. "When the signal of the clock pin CK is in the third logic state, the signal of the first data pin D1 transitions from the fifth logic state to the fourth logic state" is defined as an end signal. The end signal indicates the end of the data transmission period. The third logic state, the fourth logic state, and the fifth logic state may be set according to design requirements. For example, in this embodiment, the third logic state may be a logic state "1" (eg, a high logic level), the fourth logic state may be a logic state "1", and the fifth The logic state can be a logic state of "0" (eg, a low logic level). In another embodiment, the third logic state may be a logic state "0", the fourth logic state may be a logic state "0", and the fifth logic state may be a logic state "1".

圖3是依照本發明的一實施例說明圖1所示電路的訊號的時序示意圖。請參照圖1與圖3。在圖3所示實施例中,「在時脈接腳CK的時脈訊號SCL為邏輯態1(例如高邏輯準位)時,第一資料接腳D1的主資料訊號MOSI從邏輯態1轉態至邏輯態0(例如低邏輯準位)」被定義為一個起始訊號STA,而「在時脈訊號SCL為邏輯態1時,主資料訊號MOSI從邏輯態0轉態至邏輯態1」被定義為一個結束訊號STP。所述起始訊號STA表示資料傳輸期間的開始,而所述結束訊號STP表示資料傳輸期間的結束。3 is a timing diagram illustrating signals of the circuit of FIG. 1 in accordance with an embodiment of the present invention. Please refer to FIG. 1 and FIG. 3. In the embodiment shown in FIG. 3, "when the clock signal SCL of the clock pin CK is in the logic state 1 (for example, the high logic level), the main data signal MOSI of the first data pin D1 is changed from the logic state 1 State to logic state 0 (eg, low logic level) is defined as a start signal STA, and "when the clock signal SCL is logic state 1, the main data signal MOSI transitions from logic state 0 to logic state 1" It is defined as an end signal STP. The start signal STA indicates the start of the data transmission period, and the end signal STP indicates the end of the data transmission period.

在圖3所示實施例中,所述方向控制訊號DIR的初始態被假設是邏輯態「0」(例如低邏輯準位)。當方向控制訊號DIR為邏輯態「0」時,第二積體電路120取得控制權。當第二積體電路120取得控制權時(亦即當方向控制訊號DIR為邏輯態「0」時),第二積體電路120可以輸出時脈訊號SCL給第一積體電路110,以及第二積體電路120可以輸出起始訊號STA給第一積體電路110,以開啟一個資料傳輸期間DP1。於資料傳輸期間DP1中,時脈訊號SCL的脈衝寬度(持續高邏輯準位的時間長)或波谷寬度(持續低邏輯準位的時間長)小於門檻寬度,其中所述門檻寬度可以依照設計需求來決定。於資料傳輸期間DP1中,第二積體電路120可以輸出主資料訊號MOSI給第一積體電路110,並且第一積體電路110可以輸出僕資料訊號MISO給第二積體電路120。於資料傳輸期間DP1中,主資料訊號MOSI在時脈訊號SCL為低邏輯準位時可以進行轉態(transition),而且主資料訊號MOSI在時脈訊號SCL為高邏輯準位時不進行轉態。僕資料訊號MISO的操作可以參照主資料訊號MOSI的相關說明來類推。第二積體電路120可以輸出結束訊號STP給第一積體電路110,以結束資料傳輸期間DP1。In the embodiment shown in FIG. 3, the initial state of the direction control signal DIR is assumed to be a logic state of "0" (eg, a low logic level). When the direction control signal DIR is in the logic state "0", the second integrated circuit 120 takes control. When the second integrated circuit 120 obtains the control right (that is, when the direction control signal DIR is in the logic state "0"), the second integrated circuit 120 can output the clock signal SCL to the first integrated circuit 110, and The second integrated circuit 120 can output the start signal STA to the first integrated circuit 110 to turn on a data transmission period DP1. During the data transmission period DP1, the pulse width of the clock signal SCL (the duration of the continuous high logic level) or the valley width (the length of the continuous low logic level) is less than the threshold width, wherein the threshold width can be designed according to the design requirements. To decide. During the data transmission period DP1, the second integrated circuit 120 can output the main data signal MOSI to the first integrated circuit 110, and the first integrated circuit 110 can output the servant data signal MISO to the second integrated circuit 120. During the data transmission period DP1, the main data signal MOSI can be transitioned when the clock signal SCL is at a low logic level, and the main data signal MOSI does not change when the clock signal SCL is at a high logic level. . The operation of the servant data signal MISO can be analogized with the relevant description of the main data signal MOSI. The second integrated circuit 120 can output the end signal STP to the first integrated circuit 110 to end the data transfer period DP1.

第一積體電路110可以將方向控制訊號DIR拉昇至邏輯態1(例如高邏輯準位),以便從第二積體電路120取回控制權。當第一積體電路110取得控制權時(亦即當方向控制訊號DIR為邏輯態「1」時),第一積體電路110可以輸出時脈訊號SCL給第二積體電路120,以及第一積體電路110可以輸出起始訊號STA給第二積體電路120,以開啟一個資料傳輸期間DP2。於資料傳輸期間DP2中,第一積體電路110可以輸出主資料訊號MOSI給第二積體電路120,並且第二積體電路120可以輸出僕資料訊號MISO給第一積體電路110。於資料傳輸期間DP2中的時脈訊號SCL、主資料訊號MOSI與僕資料訊號MISO的操作可以參照資料傳輸期間DP1的相關說明來類推。第一積體電路110可以輸出結束訊號STP給第二積體電路120,以結束資料傳輸期間DP2。The first integrated circuit 110 can pull the direction control signal DIR to a logic state 1 (eg, a high logic level) to retrieve control from the second integrated circuit 120. When the first integrated circuit 110 obtains the control right (that is, when the direction control signal DIR is in the logic state "1"), the first integrated circuit 110 can output the clock signal SCL to the second integrated circuit 120, and An integrated circuit 110 can output a start signal STA to the second integrated circuit 120 to turn on a data transmission period DP2. In the data transmission period DP2, the first integrated circuit 110 can output the main data signal MOSI to the second integrated circuit 120, and the second integrated circuit 120 can output the servant information signal MISO to the first integrated circuit 110. The operation of the clock signal SCL, the main data signal MOSI and the servant data signal MISO in the DP2 during data transmission can be analogized with reference to the relevant description of the DP1 during the data transmission period. The first integrated circuit 110 can output the end signal STP to the second integrated circuit 120 to end the data transfer period DP2.

在此假設時脈訊號SCL於資料傳輸期間(例如圖3所示資料傳輸期間DP1或資料傳輸期間DP2)的脈衝寬度(或波谷寬度)小於一個門檻寬度。所述門檻寬度可以依照設計需求來決定。在圖1所示實施例中,「當第一積體電路110取得控制權時,時脈訊號SCL的脈衝寬度(或波谷寬度)大於門檻寬度」被定義為一個重置訊號。第一積體電路110可以藉由所述重置訊號來重置第二積體電路120。藉此,第一積體電路110(第二積體電路120)可以省去額外的重置接腳。It is assumed here that the pulse width (or trough width) of the clock signal SCL during data transmission (for example, DP1 during data transmission or DP2 during data transmission shown in FIG. 3) is less than one threshold width. The threshold width can be determined according to design requirements. In the embodiment shown in FIG. 1, "when the first integrated circuit 110 takes control, the pulse width (or valley width) of the clock signal SCL is greater than the threshold width" is defined as a reset signal. The first integrated circuit 110 can reset the second integrated circuit 120 by the reset signal. Thereby, the first integrated circuit 110 (the second integrated circuit 120) can dispense with an additional reset pin.

圖4是依照本發明的另一實施例說明圖1所示電路的訊號的時序示意圖。請參照圖1與圖4。在圖4所示實施例中,「當第一積體電路110取得控制權時(亦即當方向控制訊號DIR為邏輯態「1」時),時脈訊號SCL與/或主資料訊號MOSI被下拉並持續超過所述門檻寬度(例如超過1毫秒)」被定義為一個重置訊號RST。第一積體電路110可以藉由所述重置訊號RST來重置第二積體電路120。4 is a timing diagram illustrating signals of the circuit of FIG. 1 in accordance with another embodiment of the present invention. Please refer to FIG. 1 and FIG. 4. In the embodiment shown in FIG. 4, "When the first integrated circuit 110 obtains the control right (that is, when the direction control signal DIR is in the logic state "1"), the clock signal SCL and/or the main data signal MOSI are Pulling down and continuing beyond the threshold width (eg, more than 1 millisecond) is defined as a reset signal RST. The first integrated circuit 110 can reset the second integrated circuit 120 by the reset signal RST.

圖5是依照本發明的又一實施例說明圖1所示電路的訊號的時序示意圖。請參照圖1與圖5。在圖5所示實施例中,「方向控制訊號DIR的脈衝寬度PW落於一個寬度範圍內」被定義為一個中斷(interrupt)訊號INT。所述寬度範圍可以依照設計需求來決定。例如,所述寬度範圍可以是1微秒至10微秒。第一積體電路110可以藉由中斷訊號INT通知第二積體電路一個中斷要求。藉此,第一積體電路110(第二積體電路120)可以省去額外的中斷接腳。FIG. 5 is a timing diagram illustrating signals of the circuit of FIG. 1 in accordance with still another embodiment of the present invention. Please refer to FIG. 1 and FIG. 5. In the embodiment shown in FIG. 5, "the pulse width PW of the direction control signal DIR falls within a width range" is defined as an interrupt signal INT. The width range can be determined according to design requirements. For example, the width may range from 1 microsecond to 10 microseconds. The first integrated circuit 110 can notify the second integrated circuit of an interrupt request by the interrupt signal INT. Thereby, the first integrated circuit 110 (second integrated circuit 120) can dispense with additional interrupt pins.

圖6是依照本發明的更一實施例說明圖1所示電路的訊號的時序示意圖。請參照圖1與圖6。在此假設第一積體電路110具有一個中斷旗標(或是中斷暫存器)。在圖6所示實施例中,當第二積體電路120從第一積體電路110取得控制權時(亦即在方向控制訊號DIR為從邏輯態「1」轉態至邏輯態「0」後),第二積體電路120會先藉由主資料訊號MOSI要求讀取第一積體電路110的所述中斷旗標(或是中斷暫存器)。基於第二積體電路120的要求/控制,第一積體電路110可以藉由僕資料訊號MISO而將所述中斷旗標(或是中斷暫存器)的內容回傳給第二積體電路120。依照所述中斷旗標(或是中斷暫存器)的內容,第二積體電路120可以得知第一積體電路有無提出中斷要求。藉此,第一積體電路110(第二積體電路120)可以省去額外的中斷接腳。6 is a timing diagram illustrating signals of the circuit of FIG. 1 in accordance with a further embodiment of the present invention. Please refer to FIG. 1 and FIG. 6. It is assumed here that the first integrated circuit 110 has an interrupt flag (or an interrupt register). In the embodiment shown in FIG. 6, when the second integrated circuit 120 obtains control from the first integrated circuit 110 (that is, when the direction control signal DIR is changed from the logic state "1" to the logic state "0" Thereafter, the second integrated circuit 120 first requests the interrupt flag (or interrupt register) of the first integrated circuit 110 by the main data signal MOSI. Based on the request/control of the second integrated circuit 120, the first integrated circuit 110 can transmit the content of the interrupt flag (or the interrupt register) to the second integrated circuit by using the servant signal MISO. 120. According to the content of the interrupt flag (or interrupt register), the second integrated circuit 120 can know whether the first integrated circuit has an interrupt request. Thereby, the first integrated circuit 110 (second integrated circuit 120) can dispense with additional interrupt pins.

值得注意的是,在不同的應用情境中,第一積體電路110及/或第二積體電路120的相關功能可以利用一般的編程語言(programming languages,例如C或C++)、硬體描述語言(hardware description languages,例如Verilog HDL或VHDL)或其他合適的編程語言來實現為軟體、韌體或硬體。可執行所述相關功能的編程語言可以被佈置為任何已知的計算機可存取媒體(computer-accessible medias),例如磁帶(magnetic tapes)、半導體(semiconductors)記憶體、磁盤(magnetic disks)或光盤(compact disks,例如CD-ROM或DVD-ROM),或者可通過互聯網(Internet)、有線通信(wired communication)、無線通信(wireless communication)或其它通信介質傳送所述編程語言。所述編程語言可以被存放在計算機的可存取媒體中,以便於由計算機的處理器來存取/執行所述軟體(或韌體)的編程碼(programming codes)。對於硬體實現,一或多個控制器、微控制器、微處理器、特殊應用積體電路(Application-specific integrated circuit, ASIC)、數位訊號處理器(digital signal processor, DSP)、場可程式邏輯閘陣列(Field Programmable Gate Array, FPGA)及/或其他處理單元中的各種邏輯區塊、模組和電路可以被用於實現或執行本文實施例所述功能。另外,本發明的裝置和方法可以通過硬體和軟體的組合來實現。It should be noted that in different application scenarios, the related functions of the first integrated circuit 110 and/or the second integrated circuit 120 can utilize a general programming language (such as C or C++), a hardware description language. (hardware description languages, such as Verilog HDL or VHDL) or other suitable programming language to implement as software, firmware or hardware. The programming language that can perform the related functions can be arranged as any known computer-accessible media, such as magnetic tapes, semiconductors, magnetic disks, or optical disks. (compact disks, such as CD-ROM or DVD-ROM), or the programming language can be transmitted over the Internet, wired communication, wireless communication, or other communication medium. The programming language can be stored in an accessible medium of the computer such that the software (or firmware) programming codes are accessed/executed by the processor of the computer. For hardware implementation, one or more controllers, microcontrollers, microprocessors, application-specific integrated circuits (ASICs), digital signal processors (DSPs), field programmable Various logic blocks, modules, and circuits in a Field Programmable Gate Array (FPGA) and/or other processing unit may be used to implement or perform the functions described in this embodiment. Additionally, the apparatus and method of the present invention can be implemented by a combination of hardware and software.

綜上所述,上述諸實施例所述電子裝置100及其操作方法可以藉由方向控制訊號DIR而控制權動態地切換給第一積體電路110以及第二積體電路120其中一者。當第一積體電路110取得控制權時,第一積體電路110可以輸出時脈訊號SCL給第二積體電路120,以及第一積體電路110可以輸出主資料訊號MOSI給第二積體電路120。基於取得控制權的第一積體電路110的控制,第二積體電路120可以輸出僕資料訊號MISO給第一積體電路110。當第二積體電路120取得控制權時,第二積體電路120可以輸出時脈訊號SCL給第一積體電路110,以及第二積體電路120可以輸出主資料訊號MOSI給第一積體電路110。基於取得控制權的第二積體電路120的控制,第一積體電路110可以輸出僕資料訊號MISO給第二積體電路120。In summary, the electronic device 100 and the operating method thereof according to the above embodiments can dynamically switch to one of the first integrated circuit 110 and the second integrated circuit 120 by the direction control signal DIR. When the first integrated circuit 110 obtains the control right, the first integrated circuit 110 can output the clock signal SCL to the second integrated circuit 120, and the first integrated circuit 110 can output the main data signal MOSI to the second integrated body. Circuit 120. Based on the control of the first integrated circuit 110 that obtains the control, the second integrated circuit 120 can output the servant signal MISO to the first integrated circuit 110. When the second integrated circuit 120 obtains the control right, the second integrated circuit 120 can output the clock signal SCL to the first integrated circuit 110, and the second integrated circuit 120 can output the main data signal MOSI to the first integrated body. Circuit 110. Based on the control of the second integrated circuit 120 that obtains the control, the first integrated circuit 110 can output the servant signal MISO to the second integrated circuit 120.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

100‧‧‧電子裝置100‧‧‧Electronic devices

110‧‧‧第一積體電路 110‧‧‧First integrated circuit

120‧‧‧第二積體電路 120‧‧‧Second integrated circuit

CK‧‧‧時脈接腳 CK‧‧‧ clock pin

D1‧‧‧第一資料接腳 D1‧‧‧First data pin

D2‧‧‧第二資料接腳 D2‧‧‧Second data pin

DIR‧‧‧方向控制訊號 DIR‧‧‧ direction control signal

DP1、DP2‧‧‧資料傳輸期間 DP1, DP2‧‧‧ data transmission period

DR‧‧‧方向接腳 DR‧‧‧ direction pin

INT‧‧‧中斷訊號 INT‧‧‧ interrupt signal

MISO‧‧‧僕資料訊號 MISO‧‧‧ servant information signal

MOSI‧‧‧主資料訊號 MOSI‧‧‧ Master Data Signal

PW‧‧‧脈衝寬度 PW‧‧‧ pulse width

RST‧‧‧重置訊號 RST‧‧‧Reset signal

S210~S260‧‧‧步驟 S210~S260‧‧‧Steps

SCL‧‧‧時脈訊號 SCL‧‧‧ clock signal

STA‧‧‧起始訊號 STA‧‧‧ start signal

STP‧‧‧結束訊號 STP‧‧‧End signal

圖1是依照本發明的一實施例的一種電子裝置的電路方塊(circuit block)示意圖。 圖2是依照本發明的一實施例的一種電子裝置的操作方法的流程示意圖。 圖3是依照本發明的一實施例說明圖1所示電路的訊號的時序示意圖。 圖4是依照本發明的另一實施例說明圖1所示電路的訊號的時序示意圖。 圖5是依照本發明的又一實施例說明圖1所示電路的訊號的時序示意圖。 圖6是依照本發明的更一實施例說明圖1所示電路的訊號的時序示意圖。FIG. 1 is a schematic diagram of a circuit block of an electronic device according to an embodiment of the invention. FIG. 2 is a schematic flow chart of a method of operating an electronic device according to an embodiment of the invention. 3 is a timing diagram illustrating signals of the circuit of FIG. 1 in accordance with an embodiment of the present invention. 4 is a timing diagram illustrating signals of the circuit of FIG. 1 in accordance with another embodiment of the present invention. FIG. 5 is a timing diagram illustrating signals of the circuit of FIG. 1 in accordance with still another embodiment of the present invention. 6 is a timing diagram illustrating signals of the circuit of FIG. 1 in accordance with a further embodiment of the present invention.

Claims (14)

一種電子裝置,包括: 一第一積體電路,至少具有一方向接腳與一時脈接腳,其中該第一積體電路的該方向接腳輸出一方向控制訊號;以及 一第二積體電路,至少具有一方向接腳與一時脈接腳,其中該第二積體電路的該方向接腳耦接該第一積體電路的該方向接腳以接收該方向控制訊號,該第二積體電路的該時脈接腳耦接該第一積體電路的該時脈接腳, 其中當該方向控制訊號為一第一邏輯態時該第一積體電路取得一控制權,當該第一積體電路取得該控制權時該第一積體電路的該時脈接腳輸出一第一時脈訊號給該第二積體電路的該時脈接腳,當該方向控制訊號為一第二邏輯態時該第二積體電路取得該控制權,以及當該第二積體電路取得該控制權時該第二積體電路的該時脈接腳輸出一第二時脈訊號給該第一積體電路的該時脈接腳。An electronic device comprising: a first integrated circuit having at least one direction pin and one clock pin, wherein the direction pin of the first integrated circuit outputs a direction control signal; and a second integrated circuit Having at least one direction pin and one clock pin, wherein the direction pin of the second integrated circuit is coupled to the direction pin of the first integrated circuit to receive the direction control signal, the second integrated body The clock pin of the circuit is coupled to the clock pin of the first integrated circuit, wherein the first integrated circuit obtains a control right when the direction control signal is a first logic state, when the first When the integrated circuit obtains the control right, the clock pin of the first integrated circuit outputs a first clock signal to the clock pin of the second integrated circuit, and when the direction control signal is a second In the logic state, the second integrated circuit obtains the control right, and when the second integrated circuit obtains the control right, the clock pin of the second integrated circuit outputs a second clock signal to the first The clock pin of the integrated circuit. 如申請專利範圍第1項所述的電子裝置,其中該方向控制訊號的初始態為該第二邏輯態。The electronic device of claim 1, wherein the initial state of the direction control signal is the second logic state. 如申請專利範圍第1項所述的電子裝置,其中該第一積體電路還具有一第一資料接腳與一第二資料接腳,該第二積體電路還具有一第一資料接腳與一第二資料接腳,該第二積體電路的該第一資料接腳耦接該第一積體電路的該第一資料接腳,該第二積體電路的該第二資料接腳耦接該第一積體電路的該第二資料接腳; 其中當該第一積體電路取得該控制權時,該第一積體電路的該第一資料接腳作為該第一積體電路的一資料輸出接腳,該第二積體電路的該第一資料接腳作為該第二積體電路的一資料輸入接腳,該第一積體電路的該第二資料接腳作為該第一積體電路的一資料輸入接腳,而該第二積體電路的該第二資料接腳作為該第二積體電路的一資料輸出接腳;以及 其中當該第二積體電路取得該控制權時,該第二積體電路的該第一資料接腳作為該第二積體電路的一資料輸出接腳,該第一積體電路的該第一資料接腳作為該第一積體電路的一資料輸入接腳,該第二積體電路的該第二資料接腳作為該第二積體電路的一資料輸入接腳,而該第一積體電路的該第二資料接腳作為該第一積體電路的一資料輸出接腳。The electronic device of claim 1, wherein the first integrated circuit further has a first data pin and a second data pin, and the second integrated circuit further has a first data pin. The first data pin of the second integrated circuit is coupled to the first data pin of the first integrated circuit, and the second data pin of the second integrated circuit is coupled to a second data pin. The second data pin of the first integrated circuit is coupled to the second integrated circuit; wherein the first integrated circuit of the first integrated circuit serves as the first integrated circuit when the first integrated circuit obtains the control a data output pin, the first data pin of the second integrated circuit is used as a data input pin of the second integrated circuit, and the second data pin of the first integrated circuit is used as the first a data input pin of the integrated circuit, wherein the second data pin of the second integrated circuit serves as a data output pin of the second integrated circuit; and wherein the second integrated circuit obtains the When the control is performed, the first data pin of the second integrated circuit serves as the second integrated circuit a data output pin, the first data pin of the first integrated circuit is used as a data input pin of the first integrated circuit, and the second data pin of the second integrated circuit is used as the second A data input pin of the integrated circuit, and the second data pin of the first integrated circuit serves as a data output pin of the first integrated circuit. 如申請專利範圍第3項所述的電子裝置,其中「在該些時脈接腳的訊號為一第三邏輯態時該些第一資料接腳的訊號從一第四邏輯態轉態至一第五邏輯態」被定義為一起始訊號,該起始訊號表示一資料傳輸期間的開始,「在該些時脈接腳的訊號為該第三邏輯態時該些第一資料接腳的訊號從該第五邏輯態轉態至該第四邏輯態」被定義為一結束訊號,該結束訊號表示該資料傳輸期間的結束。The electronic device of claim 3, wherein the signals of the first data pins are changed from a fourth logic state to a signal when the signals of the clock pins are in a third logic state. The fifth logic state is defined as a start signal, and the start signal indicates the beginning of a data transmission period, and "the signal of the first data pins when the signals of the clock pins are the third logic state" The transition from the fifth logic state to the fourth logic state is defined as an end signal indicating the end of the data transmission period. 如申請專利範圍第1項所述的電子裝置,其中該第一時脈訊號於一資料傳輸期間的一脈衝寬度小於一門檻寬度,「當該第一積體電路取得該控制權時,該第一時脈訊號的該脈衝寬度大於該門檻寬度」被定義為一重置訊號,該第一積體電路藉由該重置訊號重置該第二積體電路。The electronic device of claim 1, wherein a pulse width of the first clock signal during a data transmission period is less than a threshold width, "when the first integrated circuit obtains the control right, the first The pulse width of the one-time pulse signal is greater than the threshold width is defined as a reset signal, and the first integrated circuit resets the second integrated circuit by the reset signal. 如申請專利範圍第1項所述的電子裝置,其中「該方向控制訊號的一脈衝寬度落於一寬度範圍內」被定義為一中斷訊號,該第一積體電路藉由該中斷訊號通知該第二積體電路一中斷要求。The electronic device of claim 1, wherein "a pulse width of the direction control signal falls within a width range" is defined as an interrupt signal, and the first integrated circuit notifies the interrupt signal by the interrupt signal The second integrated circuit is interrupted. 如申請專利範圍第1項所述的電子裝置,其中該第一積體電路具有一中斷旗標,當該第二積體電路從該第一積體電路取得該控制權時,該第二積體電路讀取該第一積體電路的該中斷旗標以得知該第一積體電路有無提出一中斷要求。The electronic device of claim 1, wherein the first integrated circuit has an interrupt flag, and when the second integrated circuit obtains the control right from the first integrated circuit, the second product The body circuit reads the interrupt flag of the first integrated circuit to know whether the first integrated circuit has an interrupt request. 一種電子裝置的操作方法,其中該電子裝置包括一第一積體電路以及一第二積體電路,所述操作方法包括: 由該第一積體電路的一方向接腳輸出一方向控制訊號給該第二積體電路的一方向接腳; 當該方向控制訊號為一第一邏輯態時,由該第一積體電路取得一控制權; 當該第一積體電路取得該控制權時,由該第一積體電路的一時脈接腳輸出一第一時脈訊號給該第二積體電路的一時脈接腳; 當該方向控制訊號為一第二邏輯態時,由該第二積體電路取得該控制權;以及 當該第二積體電路取得該控制權時,由該第二積體電路的該時脈接腳輸出一第二時脈訊號給該第一積體電路的該時脈接腳。An operating method of an electronic device, wherein the electronic device includes a first integrated circuit and a second integrated circuit, the operating method includes: outputting a directional control signal from a direction pin of the first integrated circuit a direction pin of the second integrated circuit; when the direction control signal is a first logic state, obtaining a control right by the first integrated circuit; when the first integrated circuit obtains the control right, And outputting a first clock signal to a clock pin of the second integrated circuit by a clock pin of the first integrated circuit; and when the direction control signal is a second logic state, the second product The body circuit obtains the control right; and when the second integrated circuit obtains the control right, the clock pin of the second integrated circuit outputs a second clock signal to the first integrated circuit Clock pin. 如申請專利範圍第8項所述的操作方法,其中該方向控制訊號的初始態為該第二邏輯態。The operating method of claim 8, wherein the initial state of the direction control signal is the second logic state. 如申請專利範圍第8項所述的操作方法,其中該第二積體電路的一第一資料接腳耦接該第一積體電路的一第一資料接腳,該第二積體電路的一第二資料接腳耦接該第一積體電路的一第二資料接腳; 當該第一積體電路取得該控制權時,該第一積體電路的一第一資料接腳作為該第一積體電路的一資料輸出接腳,該第二積體電路的該第一資料接腳作為該第二積體電路的一資料輸入接腳,該第一積體電路的該第二資料接腳作為該第一積體電路的一資料輸入接腳,而該第二積體電路的該第二資料接腳作為該第二積體電路的一資料輸出接腳;以及 當該第二積體電路取得該控制權時,該第二積體電路的該第一資料接腳作為該第二積體電路的一資料輸出接腳,該第一積體電路的該第一資料接腳作為該第一積體電路的一資料輸入接腳,該第二積體電路的該第二資料接腳作為該第二積體電路的一資料輸入接腳,而該第一積體電路的該第二資料接腳作為該第一積體電路的一資料輸出接腳。The method of claim 8, wherein a first data pin of the second integrated circuit is coupled to a first data pin of the first integrated circuit, and the second integrated circuit a second data pin is coupled to a second data pin of the first integrated circuit; when the first integrated circuit obtains the control, a first data pin of the first integrated circuit serves as the first data pin a data output pin of the first integrated circuit, the first data pin of the second integrated circuit is used as a data input pin of the second integrated circuit, and the second data of the first integrated circuit a pin as a data input pin of the first integrated circuit, and the second data pin of the second integrated circuit serves as a data output pin of the second integrated circuit; and when the second product When the control circuit obtains the control, the first data pin of the second integrated circuit serves as a data output pin of the second integrated circuit, and the first data pin of the first integrated circuit serves as the data pin. a data input pin of the first integrated circuit, the second data connection of the second integrated circuit As a data input of the second integrated circuit pin, the first integrated circuit and the second data pin of a data output of the first integrated circuit as a pin. 如申請專利範圍第10項所述的操作方法,更包括: 將「在該些時脈接腳的訊號為一第三邏輯態時該些第一資料接腳的訊號從一第四邏輯態轉態至一第五邏輯態」定義為一起始訊號,其中該起始訊號表示一資料傳輸期間的開始;以及 將「在該些時脈接腳的訊號為該第三邏輯態時該些第一資料接腳的訊號從該第五邏輯態轉態至該第四邏輯態」定義為一結束訊號,其中該結束訊號表示該資料傳輸期間的結束。The operation method of claim 10, further comprising: "turning the signals of the first data pins from a fourth logic state when the signals of the clock pins are in a third logic state State to a fifth logic state is defined as a start signal, wherein the start signal indicates the beginning of a data transmission period; and "the first time when the signals of the clock pins are the third logic state The signal of the data pin transitions from the fifth logic state to the fourth logic state is defined as an end signal, wherein the end signal indicates the end of the data transmission period. 如申請專利範圍第8項所述的操作方法,其中該第一時脈訊號於一資料傳輸期間的一脈衝寬度小於一門檻寬度,所述操作方法更包括: 將「當該第一積體電路取得該控制權時,該第一時脈訊號的該脈衝寬度大於該門檻寬度」定義為一重置訊號,其中該第一積體電路藉由該重置訊號重置該第二積體電路。The method of claim 8, wherein the first pulse signal has a pulse width less than a threshold width during a data transmission, and the operating method further comprises: “When the first integrated circuit is When the control is obtained, the pulse width of the first clock signal is greater than the threshold width defined as a reset signal, wherein the first integrated circuit resets the second integrated circuit by the reset signal. 如申請專利範圍第8項所述的操作方法,更包括: 將「該方向控制訊號的一脈衝寬度落於一寬度範圍內」定義為一中斷訊號,其中該第一積體電路藉由該中斷訊號通知該第二積體電路一中斷要求。The method of operation of claim 8 further includes: defining "a pulse width of the direction control signal within a width range" as an interrupt signal, wherein the first integrated circuit is interrupted by the interrupt The signal informs the second integrated circuit of an interrupt request. 如申請專利範圍第8項所述的操作方法,其中該第一積體電路具有一中斷旗標,所述操作方法更包括: 當該第二積體電路從該第一積體電路取得該控制權時,由該第二積體電路讀取該第一積體電路的該中斷旗標以得知該第一積體電路有無提出一中斷要求。The operation method of claim 8, wherein the first integrated circuit has an interrupt flag, and the operating method further comprises: obtaining the control from the first integrated circuit when the second integrated circuit In the right time, the interrupt flag of the first integrated circuit is read by the second integrated circuit to know whether the first integrated circuit has an interrupt request.
TW106145832A 2017-12-26 2017-12-26 Electronic apparatus and operation method thereof TWI637269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106145832A TWI637269B (en) 2017-12-26 2017-12-26 Electronic apparatus and operation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106145832A TWI637269B (en) 2017-12-26 2017-12-26 Electronic apparatus and operation method thereof

Publications (2)

Publication Number Publication Date
TWI637269B true TWI637269B (en) 2018-10-01
TW201928694A TW201928694A (en) 2019-07-16

Family

ID=64797461

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106145832A TWI637269B (en) 2017-12-26 2017-12-26 Electronic apparatus and operation method thereof

Country Status (1)

Country Link
TW (1) TWI637269B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW468112B (en) * 1999-12-15 2001-12-11 Via Tech Inc Arbitrating method of bus between control chipsets
EP1302775A1 (en) * 2001-10-16 2003-04-16 Italtel s.p.a. A clock generation system for a prototyping apparatus
US20050172164A1 (en) * 2004-01-21 2005-08-04 International Business Machines Corporation Autonomous fail-over to hot-spare processor using SMI
TW200931269A (en) * 2008-01-04 2009-07-16 Silicon Image Inc Control bus for connection of electronic devices
TW201334386A (en) * 2011-11-02 2013-08-16 Marvell World Trade Ltd Regulated power supply voltage for digital circuits
TWI460573B (en) * 2009-02-02 2014-11-11 Asustek Comp Inc Computer system and overclocking method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW468112B (en) * 1999-12-15 2001-12-11 Via Tech Inc Arbitrating method of bus between control chipsets
EP1302775A1 (en) * 2001-10-16 2003-04-16 Italtel s.p.a. A clock generation system for a prototyping apparatus
US20050172164A1 (en) * 2004-01-21 2005-08-04 International Business Machines Corporation Autonomous fail-over to hot-spare processor using SMI
TW200931269A (en) * 2008-01-04 2009-07-16 Silicon Image Inc Control bus for connection of electronic devices
TWI460573B (en) * 2009-02-02 2014-11-11 Asustek Comp Inc Computer system and overclocking method thereof
TW201334386A (en) * 2011-11-02 2013-08-16 Marvell World Trade Ltd Regulated power supply voltage for digital circuits

Also Published As

Publication number Publication date
TW201928694A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
JP5629819B2 (en) Apparatus and method for using variable clock gating hysteresis in communication port
US9490791B2 (en) Method and circuit for detecting USB 3.0 LFPS signal
JP5330513B2 (en) Arbitration apparatus, arbitration system, arbitration method, semiconductor integrated circuit, and image processing apparatus
JPH10513294A (en) Synchronous DMA transfer protocol
KR20170110610A (en) Receive clock calibration for a serial bus
JP2021507363A (en) Serial communication device
US9071256B1 (en) Method for link resets in a SerDes system
KR100395383B1 (en) Data transfer apparatus
TWI637269B (en) Electronic apparatus and operation method thereof
US9299408B2 (en) Integrated circuit comprising circuitry to change a clock signal frequency while a data signal is valid
JP2003228549A (en) Method and device for controlling access of bus bridge circuit
US20040117742A1 (en) Controlling the propagation of a digital signal by means of variable I/O delay compensation using delay-tracking
US9965430B2 (en) Integrated circuit and operation method of serializer/deserializer physical layer circuit thereof
JP4988411B2 (en) Method and apparatus for reading data from a serial data source in a parallel format
CN110008155B (en) Electronic device and operation method thereof
US10459869B2 (en) Electronic apparatus and operation method thereof
US7673091B2 (en) Method to hide or reduce access latency of a slow peripheral in a pipelined direct memory access system
US6748513B1 (en) Method and apparatus for a low latency source-synchronous address receiver for a host system bus in a memory controller
JP3590361B2 (en) Integrated circuit device
US8127108B2 (en) Apparatus, system and method for prefetching data in bus system
US9806735B2 (en) High speed data transfer for analog-to-digital converters
JP2011028732A (en) Image processing device
JP2004234438A (en) Memory control circuit
KR940008479B1 (en) Bus arbitration method
US20060015667A1 (en) Combined command and response on-chip data interface