TWI812490B - Signal transceiving device and signal transceiving method thereof - Google Patents

Signal transceiving device and signal transceiving method thereof Download PDF

Info

Publication number
TWI812490B
TWI812490B TW111136594A TW111136594A TWI812490B TW I812490 B TWI812490 B TW I812490B TW 111136594 A TW111136594 A TW 111136594A TW 111136594 A TW111136594 A TW 111136594A TW I812490 B TWI812490 B TW I812490B
Authority
TW
Taiwan
Prior art keywords
size
controller
interrupt
signal
interrupt signal
Prior art date
Application number
TW111136594A
Other languages
Chinese (zh)
Other versions
TW202414233A (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 TW111136594A priority Critical patent/TWI812490B/en
Application granted granted Critical
Publication of TWI812490B publication Critical patent/TWI812490B/en
Publication of TW202414233A publication Critical patent/TW202414233A/en

Links

Images

Landscapes

  • Reduction Or Emphasis Of Bandwidth Of Signals (AREA)

Abstract

A signal transceiving device and a signal transceiving method are provided. The signal transceiving device includes a first controller and a second controller. The first controller is configured to transmit transmission data. The second controller is coupled to the first controller by a plurality of interrupt signal wires and a data transmission bus. Wherein the second controller respectively transmits a plurality of interrupt signals to the first controller through the plurality of interrupt signal wires, and the first controller determines a size of the transmission data according to the interrupt signals.

Description

信號收發裝置及其信號收發方法Signal transceiver device and signal transceiver method

本發明是有關於一種信號收發裝置及其信號收發方法,且特別是有關於一種可對傳輸資料的尺寸進行調整的信號收發裝置。The present invention relates to a signal transceiver device and a signal transceiver method, and in particular to a signal transceiver device that can adjust the size of transmitted data.

隨著科技的進步,電子產品已經成為人們生活中必不可少的工具。在電子裝置中,對於兩個單獨的系統而言,總是需要進行資料傳輸。在傳統技術中,發送傳輸資料的第一控制器總是傳輸具有一定尺寸的傳輸資料。在一些情形中,接收傳輸資料的第二控制器可能不需要完整尺寸的傳輸資料。如果第二控制器僅需要傳輸資料的一部分,則會浪費用於傳輸具有完整尺寸的傳輸資料的頻寬。即,由於傳輸資料以完整尺寸進行傳輸,因此第一控制器及第二控制器的負載會無效率的被增大。With the advancement of technology, electronic products have become indispensable tools in people's lives. In electronic devices, there is always a need for data transfer between two separate systems. In the conventional technology, the first controller that sends the transmission data always transmits the transmission data with a certain size. In some cases, the second controller receiving the transmission may not require the full size of the transmission. If the second controller only needs to transmit a portion of the data, bandwidth used to transmit the full size of the transmission data will be wasted. That is, since the transmission data is transmitted in full size, the loads of the first controller and the second controller will be inefficiently increased.

本發明提供一種可對傳輸資料的尺寸進行調整的信號收發裝置及信號收發方法。The invention provides a signal transceiver device and a signal transceiver method that can adjust the size of transmission data.

本發明的信號收發裝置包括第一控制器及第二控制器。第一控制器被配置以傳送傳輸資料。第二控制器透過多條中斷信號線及資料傳輸匯流排耦接到第一控制器。其中第二控制器透過所述多條中斷信號線分別將多個中斷信號傳輸到第一控制器,且第一控制器根據中斷信號確定傳輸資料的尺寸。The signal transceiver device of the present invention includes a first controller and a second controller. The first controller is configured to transmit transmission data. The second controller is coupled to the first controller through a plurality of interrupt signal lines and data transmission buses. The second controller transmits multiple interrupt signals to the first controller respectively through the multiple interrupt signal lines, and the first controller determines the size of the transmitted data according to the interrupt signals.

本發明的信號收發方法包括:提供將耦接在第一控制器與第二控制器之間的多條中斷信號線;第二控制器透過所述多條中斷信號線分別將多個中斷信號傳輸到第一控制器;以及第一控制器根據中斷信號確定傳輸資料的尺寸。The signal transceiving method of the present invention includes: providing a plurality of interrupt signal lines to be coupled between a first controller and a second controller; the second controller respectively transmits a plurality of interrupt signals through the plurality of interrupt signal lines. to the first controller; and the first controller determines the size of the transmission data according to the interrupt signal.

基於上述,在信號收發裝置中,第二控制器可在信號傳輸序列期間透過所述多條中斷信號線將中斷信號發送到第一控制器。為了控制傳輸資料的尺寸,第二控制器可使所述中斷信號中的至少一個中斷信號轉態。第一控制器可確定傳輸資料的尺寸,且將具有預期尺寸的傳輸資料傳輸到第二控制器。Based on the above, in the signal transceiver device, the second controller may send the interrupt signal to the first controller through the plurality of interrupt signal lines during the signal transmission sequence. In order to control the size of the transmitted data, the second controller may transition at least one of the interrupt signals. The first controller may determine the size of the transmission data and transmit the transmission data with the expected size to the second controller.

請參照圖1,圖1繪示本公開的實施例的信號收發裝置的示意圖。信號收發裝置100包括第一控制器110及第二控制器120。第一控制器110具有第一中斷引腳INTP1及第二中斷引腳INTP2。第一控制器110的第一中斷引腳INTP1可耦接到第一中斷信號線W1的一端,且第一控制器110的第二中斷引腳INTP2可耦接到第二中斷信號線W2的一端。第二控制器120具有第一中斷引腳INTP3及第二中斷引腳INTP4。第二控制器120的第一中斷引腳INTP3可耦接到第一中斷信號線W1的另一端,且第二控制器120的第二中斷引腳INTP4可耦接到第二中斷信號線W2的另一端。即,第一控制器110可透過第一中斷信號線W1及第二中斷信號線W2耦接到第二控制器120。Please refer to FIG. 1 , which is a schematic diagram of a signal transceiver device according to an embodiment of the present disclosure. The signal transceiving device 100 includes a first controller 110 and a second controller 120 . The first controller 110 has a first interrupt pin INTP1 and a second interrupt pin INTP2. The first interrupt pin INTP1 of the first controller 110 may be coupled to one end of the first interrupt signal line W1, and the second interrupt pin INTP2 of the first controller 110 may be coupled to one end of the second interrupt signal line W2 . The second controller 120 has a first interrupt pin INTP3 and a second interrupt pin INTP4. The first interrupt pin INTP3 of the second controller 120 may be coupled to the other end of the first interrupt signal line W1, and the second interrupt pin INTP4 of the second controller 120 may be coupled to the second interrupt signal line W2. another side. That is, the first controller 110 may be coupled to the second controller 120 through the first interrupt signal line W1 and the second interrupt signal line W2.

第一中斷信號線W1及第二中斷信號線W2分別被配置以傳輸中斷信號CS1及CS2。在此實施例中,第二控制器120可透過第一中斷信號線W1將中斷信號CS1傳輸到第一控制器110,且第二控制器120可透過第二中斷信號線W2將中斷信號CS2傳輸到第一控制器110。The first interrupt signal line W1 and the second interrupt signal line W2 are configured to transmit interrupt signals CS1 and CS2 respectively. In this embodiment, the second controller 120 can transmit the interrupt signal CS1 to the first controller 110 through the first interrupt signal line W1, and the second controller 120 can transmit the interrupt signal CS2 through the second interrupt signal line W2. to the first controller 110.

另一方面,第一控制器110還透過資料傳輸匯流排DTB耦接到第二控制器120。資料傳輸匯流排DTB用於在第一控制器110與第二控制器120之間傳輸資料。On the other hand, the first controller 110 is also coupled to the second controller 120 through the data transmission bus DTB. The data transmission bus DTB is used to transmit data between the first controller 110 and the second controller 120 .

在此實施例中,在資料傳輸操作期間,如果第二控制器120需要由第一控制器110讀取資料。第二控制器120可分別透過第一中斷信號線W1及第二中斷信號線W2將中斷信號CS1及CS2發送到第一控制器110。在此實施例中,第二控制器120可根據所需傳輸資料的尺寸產生中斷信號CS1及CS2。相應地,第一控制器110可分別透過第一中斷信號線W1及第二中斷信號線W2接收中斷信號CS1及CS2。第一控制器110可確定傳輸資料的尺寸,且透過資料傳輸匯流排DTB將具有預期尺寸的傳輸資料發送到第二控制器120。In this embodiment, during the data transmission operation, if the second controller 120 needs to read data from the first controller 110 . The second controller 120 may send the interrupt signals CS1 and CS2 to the first controller 110 through the first interrupt signal line W1 and the second interrupt signal line W2 respectively. In this embodiment, the second controller 120 can generate interrupt signals CS1 and CS2 according to the size of the required transmission data. Correspondingly, the first controller 110 can receive the interrupt signals CS1 and CS2 through the first interrupt signal line W1 and the second interrupt signal line W2 respectively. The first controller 110 can determine the size of the transmission data, and send the transmission data with the expected size to the second controller 120 through the data transmission bus DTB.

詳細地說,第二控制器120可根據所需傳輸資料的尺寸判斷是否在中斷信號CS1到CS2中的每一者上產生轉態緣。舉例來說,如果所需傳輸資料的尺寸是第一尺寸,則第二控制器120可僅選擇使中斷信號CS1轉態;如果所需傳輸資料的尺寸是第二尺寸,則第二控制器120可僅選擇使中斷信號CS2轉態;如果所需傳輸資料的尺寸是第三尺寸,則第二控制器120可選擇使中斷信號CS1及CS2轉態。In detail, the second controller 120 may determine whether a transition edge is generated on each of the interrupt signals CS1 to CS2 according to the size of the required transmission data. For example, if the size of the required transmission data is the first size, the second controller 120 may only choose to transition the interrupt signal CS1; if the size of the required transmission data is the second size, the second controller 120 Only the interrupt signal CS2 may be selected to transition; if the size of the required transmission data is the third size, the second controller 120 may select to transition the interrupt signals CS1 and CS2.

此外,第一控制器110可檢測中斷信號CS1及CS2中的每一者的轉態緣以確定傳輸資料的尺寸。舉例來說,如果僅檢測到中斷信號CS1上的一個轉態緣,則第一控制器110可確定傳輸資料的尺寸是第一尺寸。如果第一控制器110僅檢測到中斷信號CS2上的一個轉態緣,則第一控制器110可確定傳輸資料的尺寸是第二尺寸。如果第一控制器110檢測到中斷信號CS1及CS2二者上的轉態緣,則第一控制器110可確定傳輸資料的尺寸是第三尺寸。此處,第一尺寸可小於第二尺寸,且第二尺寸可小於第三尺寸。在一些實施例中,第一尺寸可為16位元組,第二尺寸可為32位元組,且第三尺寸可為64位元組。In addition, the first controller 110 may detect the transition edge of each of the interrupt signals CS1 and CS2 to determine the size of the transmitted data. For example, if only one transition edge on the interrupt signal CS1 is detected, the first controller 110 may determine that the size of the transmitted data is the first size. If the first controller 110 detects only one transition edge on the interrupt signal CS2, the first controller 110 may determine that the size of the transmitted data is the second size. If the first controller 110 detects transition edges on both interrupt signals CS1 and CS2, the first controller 110 may determine that the size of the transmitted data is the third size. Here, the first size may be smaller than the second size, and the second size may be smaller than the third size. In some embodiments, the first size may be 16 bytes, the second size may be 32 bytes, and the third size may be 64 bytes.

如果檢測到傳輸資料的尺寸為第一尺寸,則第一控制器110可透過資料傳輸匯流排DTB將具有第一尺寸的傳輸資料傳輸到第二控制器120。如果檢測到傳輸資料的尺寸為第二尺寸,則第一控制器110可透過資料傳輸匯流排DTB將具有第二尺寸的傳輸資料傳輸到第二控制器120。當然,如果檢測到傳輸資料的尺寸為第三尺寸,則第一控制器110可透過資料傳輸匯流排DTB將具有第三尺寸的傳輸資料傳輸到第二控制器120。這樣一來,第一控制器110僅需要將具有所需尺寸的傳輸資料傳輸到第二控制器120,且第一控制器110的負載可減小。If it is detected that the size of the transmission data is the first size, the first controller 110 may transmit the transmission data having the first size to the second controller 120 through the data transmission bus DTB. If it is detected that the size of the transmission data is the second size, the first controller 110 may transmit the transmission data with the second size to the second controller 120 through the data transmission bus DTB. Of course, if it is detected that the size of the transmission data is the third size, the first controller 110 may transmit the transmission data with the third size to the second controller 120 through the data transmission bus DTB. In this way, the first controller 110 only needs to transmit the transmission data with the required size to the second controller 120, and the load of the first controller 110 can be reduced.

另一方面,資料傳輸匯流排DTB可為序列介面資料匯流排,例如串列週邊介面(serial peripheral interface,SPI)資料匯流排或通用非同步接收器/發射器(universal asynchronous receiver/transmitter,UART)資料匯流排。On the other hand, the data transmission bus DTB can be a serial interface data bus, such as a serial peripheral interface (SPI) data bus or a universal asynchronous receiver/transmitter (UART) Data bus.

在此實施例中,第一控制器110及第二控制器120是具有計算功能的處理器。作為另外一種選擇,第一控制器110及第二控制器120中的每一者可為利用硬體描述語言(hardware description language,HDL)或本領域相關技術人員熟知的任何數位電路設計方法設計而成的硬體電路,並且透過現場可程式設計閘陣列(field programmable gate array,FPGA)、複雜可程式設計邏輯裝置(complex programmable logic device,CPLD)或應用專用積體電路(application-specific integrated circuit,ASIC)來實施。In this embodiment, the first controller 110 and the second controller 120 are processors with computing functions. Alternatively, each of the first controller 110 and the second controller 120 may be designed using a hardware description language (HDL) or any digital circuit design method well known to those skilled in the art. Integrated hardware circuits, and through field programmable gate array (FPGA), complex programmable logic device (CPLD) or application-specific integrated circuit (application-specific integrated circuit), ASIC) to implement.

請共同參照圖1及圖2A到圖2C,其中圖2A到圖2C是根據本公開實施例的中斷信號的波形圖。在圖2A到圖2B中,中斷信號CS1及CS2由第二控制器120產生,且由第一控制器110檢測。在圖2A中,第一控制器110可檢測到中斷信號CS1上的一個轉態緣210,但檢測不到中斷信號CS2上的轉態緣。即,第一控制器110可確定傳輸資料的尺寸是第一尺寸。在圖2B中,第一控制器110檢測不到中斷信號CS1上的轉態緣,但可檢測到中斷信號CS2上的一個轉態緣220。即,第一控制器110可確定傳輸資料的尺寸是第二尺寸。在圖2C中,第一控制器110可檢測到中斷信號CS1上的一個轉態緣210,且可檢測到中斷信號CS2上的一個轉態緣220。即,第一控制器110可確定傳輸資料的尺寸是第三尺寸。Please refer to FIG. 1 and FIG. 2A to FIG. 2C together, where FIG. 2A to FIG. 2C are waveform diagrams of interrupt signals according to embodiments of the present disclosure. In FIGS. 2A and 2B , interrupt signals CS1 and CS2 are generated by the second controller 120 and detected by the first controller 110 . In FIG. 2A, the first controller 110 can detect a transition edge 210 on the interrupt signal CS1, but cannot detect a transition edge on the interrupt signal CS2. That is, the first controller 110 may determine that the size of the transmission data is the first size. In FIG. 2B , the first controller 110 cannot detect a transition edge on the interrupt signal CS1 , but can detect a transition edge 220 on the interrupt signal CS2 . That is, the first controller 110 may determine that the size of the transmission data is the second size. In FIG. 2C , the first controller 110 may detect a transition edge 210 on the interrupt signal CS1 and may detect a transition edge 220 on the interrupt signal CS2. That is, the first controller 110 may determine that the size of the transmission data is the third size.

詳細地說,第一控制器110可透過連續監視中斷信號CS1及CS2的邏輯電壓準位來檢測中斷信號CS1及CS2。以中斷信號CS1為例,如果第一控制器110在時間點t1處檢測到中斷信號CS1為低邏輯電壓準位,且在緊接著時間點t1的時間點t2處檢測到中斷信號CS1變成高邏輯電壓準位,則可檢測到為上升邊沿的轉態緣210。In detail, the first controller 110 can detect the interrupt signals CS1 and CS2 by continuously monitoring the logic voltage levels of the interrupt signals CS1 and CS2. Taking the interrupt signal CS1 as an example, if the first controller 110 detects that the interrupt signal CS1 is a low logic voltage level at a time point t1, and detects that the interrupt signal CS1 becomes a high logic level at a time point t2 immediately following the time point t1. voltage level, a transition edge 210 that is a rising edge can be detected.

此處應注意,在此實施例中,第二控制器120可產生具有上升邊沿210及220的中斷信號CS1及CS2,以將傳輸資料的所需尺寸通知第一控制器110。在其他實施例中,第二控制器120也可產生具有下降邊沿的中斷信號CS1及CS2,以將傳輸資料的所需尺寸通知第一控制器110。It should be noted here that in this embodiment, the second controller 120 may generate interrupt signals CS1 and CS2 with rising edges 210 and 220 to notify the first controller 110 of the required size of the transmitted data. In other embodiments, the second controller 120 may also generate interrupt signals CS1 and CS2 with falling edges to notify the first controller 110 of the required size of the transmitted data.

請參照圖3,圖3繪示根據本公開另一實施例的信號收發裝置的示意圖。信號收發裝置300包括第一控制器310及第二控制器320。第一控制器310具有多個中斷引腳INTP11到INTP1N。第一控制器310的中斷引腳INTP11到中斷引腳INTP1N可分別耦接到中斷信號線W1到WN的一端。第二控制器320具有多個中斷引腳INTP21到INTP2N。第二控制器320的中斷引腳INTP21到中斷引腳INTP2N可分別耦接到中斷信號線W1到WN的另一端。即,第一控制器310可透過中斷信號線W1到WN耦接到第二控制器320。在此實施例中,中斷信號線W1到WN的數目可大於2。Please refer to FIG. 3 , which is a schematic diagram of a signal transceiver device according to another embodiment of the present disclosure. The signal transceiving device 300 includes a first controller 310 and a second controller 320 . The first controller 310 has a plurality of interrupt pins INTP11 to INTP1N. The interrupt pins INTP11 to INTP1N of the first controller 310 may be coupled to one end of the interrupt signal lines W1 to WN respectively. The second controller 320 has a plurality of interrupt pins INTP21 to INTP2N. The interrupt pins INTP21 to INTP2N of the second controller 320 may be coupled to the other ends of the interrupt signal lines W1 to WN respectively. That is, the first controller 310 may be coupled to the second controller 320 through the interrupt signal lines W1 to WN. In this embodiment, the number of interrupt signal lines W1 to WN may be greater than two.

中斷信號線W1到WN分別被配置以傳輸中斷信號CS1到CSN。在此實施例中,第二控制器320可透過第一中斷信號線W1到WN分別將中斷信號CS1到CSN傳輸到第一控制器310。The interrupt signal lines W1 to WN are configured to transmit interrupt signals CS1 to CSN, respectively. In this embodiment, the second controller 320 may transmit the interrupt signals CS1 to CSN to the first controller 310 through the first interrupt signal lines W1 to WN respectively.

另一方面,第一控制器310還透過資料傳輸匯流排DTB耦接到第二控制器120。資料傳輸匯流排DTB用於在第一控制器310與第二控制器320之間傳輸資料。On the other hand, the first controller 310 is also coupled to the second controller 120 through the data transmission bus DTB. The data transmission bus DTB is used to transmit data between the first controller 310 and the second controller 320 .

在此實施例中,在資料傳輸操作期間,如果第二控制器320需要由第一控制器310讀取資料。第二控制器320可分別透過中斷信號線W1到WN將中斷信號CS1到CSN發送到第一控制器110。中斷信號CS1到CSN用於將所需傳輸資料的尺寸通知第一控制器310。第二控制器320可根據所需傳輸資料的尺寸產生中斷信號CS1到CSN。第一控制器310可根據中斷信號CS1到CSN確定傳輸資料的尺寸,並透過資料傳輸匯流排DTB將具有預期尺寸的傳輸資料發送到第二控制器120。In this embodiment, during the data transmission operation, if the second controller 320 needs to read data from the first controller 310 . The second controller 320 may send the interrupt signals CS1 to CSN to the first controller 110 through the interrupt signal lines W1 to WN respectively. The interrupt signals CS1 to CSN are used to notify the first controller 310 of the size of the required transmission data. The second controller 320 may generate interrupt signals CS1 to CSN according to the size of the required transmission data. The first controller 310 can determine the size of the transmission data according to the interrupt signal CS1 to CSN, and send the transmission data with the expected size to the second controller 120 through the data transmission bus DTB.

詳細地說,第二控制器320可根據所需傳輸資料的尺寸來判斷是否在中斷信號CS1到CSN中的每一者上產生轉態緣。舉例來說,如果所需傳輸資料的尺寸是第一尺寸,則第二控制器320可僅選擇使中斷信號CS1轉態;如果所需傳輸資料的尺寸是第二尺寸,則第二控制器320可僅選擇使中斷信號CS2轉態;如果所需傳輸資料的尺寸是第三尺寸,則第二控制器320可選擇使中斷信號CS1及CS2轉態;並且如果所需傳輸資料的尺寸是第四尺寸,則第二控制器320可僅選擇使中斷信號CSN轉態。其中第一尺寸、第二尺寸、第三尺寸與第四尺寸是不同的。In detail, the second controller 320 may determine whether a transition edge occurs on each of the interrupt signals CS1 to CSN according to the size of the required transmission data. For example, if the size of the required transmission data is the first size, the second controller 320 may only choose to transition the interrupt signal CS1; if the size of the required transmission data is the second size, the second controller 320 Only the interrupt signal CS2 can be selected to transition; if the size of the required data to be transmitted is the third size, the second controller 320 can be selected to transition the interrupt signals CS1 and CS2; and if the size of the data to be transmitted is the fourth size size, the second controller 320 may only choose to transition the interrupt signal CSN. The first size, the second size, the third size and the fourth size are different.

此處應注意,所需傳輸資料的尺寸與中斷信號CS1到CSN的轉態狀態(transition state)之間的關係可由所屬領域中的技術人員任意確定,且以上所提及的實例僅為示例性實例而不用於限制本公開的範圍。It should be noted here that the relationship between the size of the required transmission data and the transition state of the interrupt signal CS1 to CSN can be arbitrarily determined by those skilled in the art, and the examples mentioned above are only illustrative. Examples are not intended to limit the scope of the disclosure.

此外,第一控制器310可檢測中斷信號CS1到CSN中的每一者的轉態緣以確定傳輸資料的尺寸。舉例來說,如果僅檢測到中斷信號CS1上的一個轉態緣,則第一控制器310可確定傳輸資料的尺寸是第一尺寸。如果第一控制器310僅檢測到中斷信號CS2上的一個轉態緣,則第一控制器310可確定傳輸資料的尺寸是第二尺寸。如果第一控制器310檢測到中斷信號CS1及CS2二者上的轉態緣,則第一控制器310可確定傳輸資料的尺寸是第三尺寸。如果第一控制器310僅檢測到中斷信號CSN上的一個轉態緣,則第一控制器310可確定傳輸資料的尺寸是第四尺寸。In addition, the first controller 310 may detect the transition edge of each of the interrupt signals CS1 to CSN to determine the size of the transmission data. For example, if only one transition edge on the interrupt signal CS1 is detected, the first controller 310 may determine that the size of the transmitted data is the first size. If the first controller 310 detects only one transition edge on the interrupt signal CS2, the first controller 310 may determine that the size of the transmitted data is the second size. If the first controller 310 detects transition edges on both interrupt signals CS1 and CS2, the first controller 310 may determine that the size of the transmitted data is the third size. If the first controller 310 detects only one transition edge on the interrupt signal CSN, the first controller 310 may determine that the size of the transmitted data is the fourth size.

請參照圖4,圖4繪示根據本公開實施例的資料收發方法的流程圖。在步驟S410中,提供將耦接在第一控制器與第二控制器之間的多條中斷信號線。在步驟S420中,第二控制器透過所述多條中斷信號線分別將多個中斷信號傳輸到第一控制器。在步驟S430中,第一控制器可根據中斷信號確定傳輸資料的尺寸。Please refer to FIG. 4 , which illustrates a flow chart of a data sending and receiving method according to an embodiment of the present disclosure. In step S410, a plurality of interrupt signal lines to be coupled between the first controller and the second controller are provided. In step S420, the second controller transmits multiple interrupt signals to the first controller respectively through the multiple interrupt signal lines. In step S430, the first controller may determine the size of the transmission data according to the interrupt signal.

步驟S410到S430的細節已經在以上所提及的實施例中進行闡述,且在此不再贅述。The details of steps S410 to S430 have been explained in the above-mentioned embodiments and will not be described again here.

100、300:信號收發裝置 110、310:第一控制器 120、320:第二控制器 210、220:轉態緣 CS1、CS2~CSN:中斷信號 DTB:資料傳輸匯流排 INTP1、INTP3:第一中斷引腳 INTP2、INTP4:第二中斷引腳 INTP11、INTP12~INTP1N、INTP21、INTP22~INTP2N:中斷引腳 S410、S420、S430:步驟 W1、W2、W3~WN:中斷信號線 100, 300: Signal transceiver device 110, 310: first controller 120, 320: Second controller 210, 220: Transformation CS1, CS2~CSN: interrupt signal DTB: data transfer bus INTP1, INTP3: first interrupt pin INTP2, INTP4: second interrupt pin INTP11, INTP12~INTP1N, INTP21, INTP22~INTP2N: interrupt pins S410, S420, S430: steps W1, W2, W3~WN: interrupt signal line

圖1繪示本公開的實施例的信號收發裝置的示意圖。 圖2A到圖2C是根據本公開實施例的中斷信號的波形圖。 圖3繪示根據本公開另一實施例的信號收發裝置的示意圖。 圖4繪示根據本公開實施例的資料收發方法的流程圖。 FIG. 1 is a schematic diagram of a signal transceiver device according to an embodiment of the present disclosure. 2A to 2C are waveform diagrams of interrupt signals according to embodiments of the present disclosure. FIG. 3 is a schematic diagram of a signal transceiver device according to another embodiment of the present disclosure. FIG. 4 illustrates a flow chart of a data sending and receiving method according to an embodiment of the present disclosure.

100:信號收發裝置 100:Signal transceiver device

110:第一控制器 110:First controller

120:第二控制器 120: Second controller

DTB:資料傳輸匯流排 DTB: data transfer bus

INTP1、INTP3:第一中斷引腳 INTP1, INTP3: first interrupt pin

INTP2、INTP4:第二中斷引腳 INTP2, INTP4: second interrupt pin

W1、W2:中斷信號線 W1, W2: Interrupt signal line

CS1、CS2:中斷信號 CS1, CS2: interrupt signal

Claims (15)

一種信號收發裝置,包括:第一控制器,被配置以傳送傳輸資料;第二控制器,透過多條中斷信號線及資料傳輸匯流排耦接到所述第一控制器,其中所述第二控制器透過所述多條中斷信號線分別將多個中斷信號傳輸到所述第一控制器,且所述第一控制器根據所述中斷信號確定所述傳輸資料的尺寸。 A signal transceiver device includes: a first controller configured to transmit transmission data; a second controller coupled to the first controller through a plurality of interrupt signal lines and a data transmission bus, wherein the second controller The controller transmits multiple interrupt signals to the first controller respectively through the multiple interrupt signal lines, and the first controller determines the size of the transmission data according to the interrupt signals. 如請求項1所述的信號收發裝置,其中所述第一控制器檢測所述中斷信號中的每一者的轉態緣以確定所述傳輸資料的所述尺寸。 The signal transceiver device of claim 1, wherein the first controller detects the transition edge of each of the interrupt signals to determine the size of the transmission data. 如請求項2所述的信號收發裝置,其中所述轉態緣是上升邊沿或下降邊沿。 The signal transceiver device according to claim 2, wherein the transition edge is a rising edge or a falling edge. 如請求項2所述的信號收發裝置,其中所述第一控制器被配置以:如果僅檢測到所述中斷信號中的第一中斷信號的所述轉態緣,則確定所述傳輸資料的所述尺寸是第一尺寸;如果僅檢測到所述中斷信號中的第二中斷信號的所述轉態緣,則確定所述傳輸資料的所述尺寸是第二尺寸;以及如果檢測到所述中斷信號中的所述第一中斷信號及所述第二中斷信號二者的所述轉態緣,則確定所述傳輸資料的所述尺寸是第三尺寸。 The signal transceiver device according to claim 2, wherein the first controller is configured to: if only the transition edge of the first interrupt signal in the interrupt signal is detected, determine the transmission data The size is a first size; if only the transition edge of a second interrupt signal in the interrupt signal is detected, it is determined that the size of the transmission data is a second size; and if the transition edge of the second interrupt signal in the interrupt signal is detected, The transition edges of the first interrupt signal and the second interrupt signal in the interrupt signals determine that the size of the transmission data is the third size. 如請求項4所述的信號收發裝置,其中所述第一尺寸小於所述第二尺寸且所述第二尺寸小於所述第三尺寸。 The signal transceiver device of claim 4, wherein the first size is smaller than the second size and the second size is smaller than the third size. 如請求項4所述的信號收發裝置,其中所述第一控制器還被配置以:如果僅檢測到所述中斷信號中的第三中斷信號的所述轉態緣,則確定所述傳輸資料的所述尺寸是第四尺寸,其中所述第四尺寸不同於所述第一尺寸、所述第二尺寸及所述第三尺寸中的任一者。 The signal transceiver device according to claim 4, wherein the first controller is further configured to: if only the transition edge of the third interrupt signal in the interrupt signal is detected, determine the transmission data The dimension of is a fourth dimension, wherein the fourth dimension is different from any one of the first dimension, the second dimension and the third dimension. 如請求項4所述的信號收發裝置,其中所述資料傳輸匯流排是序列介面資料匯流排。 The signal transceiver device of claim 4, wherein the data transmission bus is a serial interface data bus. 如請求項7所述的信號收發裝置,其中所述資料傳輸匯流排是串列週邊介面(SPI)資料匯流排或通用非同步接收器/發射器(UART)資料匯流排。 The signal transceiver device of claim 7, wherein the data transmission bus is a serial peripheral interface (SPI) data bus or a universal asynchronous receiver/transmitter (UART) data bus. 如請求項1所述的信號收發裝置,其中所述第一控制器具有多個第一中斷引腳以分別耦接到所述多條中斷信號線,所述第二控制器具有多個第二中斷引腳以分別耦接到所述多條中斷信號線。 The signal transceiver device according to claim 1, wherein the first controller has a plurality of first interrupt pins to be coupled to the plurality of interrupt signal lines respectively, and the second controller has a plurality of second interrupt pins. The interrupt pins are respectively coupled to the plurality of interrupt signal lines. 一種信號收發方法,包括:提供將耦接在第一控制器與第二控制器之間的多條中斷信號線;所述第二控制器透過所述多條中斷信號線分別將多個中斷信號傳輸到所述第一控制器;以及 所述第一控制器根據所述中斷信號確定傳輸資料的尺寸。 A signal transceiving method includes: providing a plurality of interrupt signal lines to be coupled between a first controller and a second controller; the second controller transmits a plurality of interrupt signals respectively through the plurality of interrupt signal lines. transmitted to the first controller; and The first controller determines the size of the transmission data according to the interrupt signal. 如請求項10所述的信號收發方法,其中所述第一控制器根據所述中斷信號確定所述傳輸資料的所述尺寸的步驟包括:檢測所述中斷信號中的每一者的轉態緣以確定所述傳輸資料的所述尺寸。 The signal transceiving method according to claim 10, wherein the step of the first controller determining the size of the transmission data according to the interrupt signal includes: detecting the transition edge of each of the interrupt signals. to determine the size of the transmitted data. 如請求項11所述的信號收發方法,其中所述轉態緣是上升邊沿或下降邊沿。 The signal transceiving method according to claim 11, wherein the transition edge is a rising edge or a falling edge. 如請求項11所述的信號收發方法,其中所述第一控制器根據所述中斷信號確定所述傳輸資料的所述尺寸的所述步驟還包括:如果僅檢測到所述中斷信號中的第一中斷信號的所述轉態緣,則確定所述傳輸資料的所述尺寸是第一尺寸;如果僅檢測到所述中斷信號中的第二中斷信號的所述轉態緣,則確定所述傳輸資料的所述尺寸是第二尺寸;以及如果檢測到所述中斷信號中的所述第一中斷信號及所述第二中斷信號二者的所述轉態緣,則確定所述傳輸資料的所述尺寸是第三尺寸。 The signal transceiving method according to request item 11, wherein the step of the first controller determining the size of the transmission data according to the interrupt signal further includes: if only the first in the interrupt signal is detected If the transition edge of an interrupt signal is detected, it is determined that the size of the transmission data is the first size; if only the transition edge of the second interrupt signal in the interrupt signal is detected, it is determined that the The size of the transmission data is a second size; and if the transition edge of both the first interruption signal and the second interruption signal in the interruption signal is detected, determining the size of the transmission data Said size is the third size. 如請求項13所述的信號收發方法,其中所述第一尺寸小於所述第二尺寸且所述第二尺寸小於所述第三尺寸。 The signal transceiving method of claim 13, wherein the first size is smaller than the second size and the second size is smaller than the third size. 如請求項13所述的信號收發方法,還包括: 如果僅檢測到所述中斷信號中的第三中斷信號的所述轉態緣,則確定所述傳輸資料的所述尺寸是第四尺寸,其中所述第四尺寸不同於所述第一尺寸、所述第二尺寸及所述第三尺寸中的任一者。 The signal sending and receiving method described in request item 13 also includes: If only the transition edge of a third interrupt signal in the interrupt signal is detected, it is determined that the size of the transmission data is a fourth size, wherein the fourth size is different from the first size, Any one of the second size and the third size.
TW111136594A 2022-09-27 2022-09-27 Signal transceiving device and signal transceiving method thereof TWI812490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111136594A TWI812490B (en) 2022-09-27 2022-09-27 Signal transceiving device and signal transceiving method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111136594A TWI812490B (en) 2022-09-27 2022-09-27 Signal transceiving device and signal transceiving method thereof

Publications (2)

Publication Number Publication Date
TWI812490B true TWI812490B (en) 2023-08-11
TW202414233A TW202414233A (en) 2024-04-01

Family

ID=88586019

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111136594A TWI812490B (en) 2022-09-27 2022-09-27 Signal transceiving device and signal transceiving method thereof

Country Status (1)

Country Link
TW (1) TWI812490B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW556090B (en) * 2001-05-14 2003-10-01 Seiko Epson Corp Data transmission control device, electronic machine, and control method for data transmission
TW200414067A (en) * 2002-10-16 2004-08-01 Matsushita Electric Ind Co Ltd IC card, data transfer apparatus, data transfer method and program of data transfer method
TW200825758A (en) * 2006-12-07 2008-06-16 Inventec Corp System and method for data transmission and a method for communication path selection in dual-controller system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW556090B (en) * 2001-05-14 2003-10-01 Seiko Epson Corp Data transmission control device, electronic machine, and control method for data transmission
TW200414067A (en) * 2002-10-16 2004-08-01 Matsushita Electric Ind Co Ltd IC card, data transfer apparatus, data transfer method and program of data transfer method
TW200825758A (en) * 2006-12-07 2008-06-16 Inventec Corp System and method for data transmission and a method for communication path selection in dual-controller system

Similar Documents

Publication Publication Date Title
JP5055489B2 (en) Bidirectional single-wire interrupt line for communication bus
US7627845B2 (en) Macrocell, integrated circuit device, and electronic instrument
US5579486A (en) Communication node with a first bus configuration for arbitration and a second bus configuration for data transfer
EP0679275B1 (en) A communication node with a first bus configuration for arbitration and a second bus configuration for data transfer
US20110087914A1 (en) I2c buffer clock delay detection method
US6339806B1 (en) Primary bus to secondary bus multiplexing for I2C and other serial buses
US6119183A (en) Multi-port switching system and method for a computer bus
US20050258865A1 (en) System, method and program product for extending range of a bidirectional data communication bus
EP1237090A1 (en) Serial peripheral interface master device, a serial peripheral interface slave device and a serial peripheral interface
EP2450801A1 (en) Method and system for detecting and asserting bus speed condition in a USB isolating device
US11567893B2 (en) Method and a mirrored serial interface (MSI) for transferring data
US10686441B2 (en) Repeater for an open-drain communication system using a current detector and a control logic circuit
TWI812490B (en) Signal transceiving device and signal transceiving method thereof
JP3309072B2 (en) Method for providing arbitration on a multipoint high-speed serial bus and arbitration controller for performing the arbitration
US6744810B1 (en) Signal repeater for voltage intolerant components used in a serial data line
JPS61267136A (en) Interruption system for information processing system
US5905744A (en) Test mode for multifunction PCI device
TW202414233A (en) Signal transceiving device and signal transceiving method thereof
EP0099407B1 (en) Digital system including line activity detection
US20240104033A1 (en) Signal transceiving device and signal transceiving method thereof
US20110087812A1 (en) Multi-master bi-directional i2c bus buffer
EP1311960B1 (en) Multiple port i2c-hub
EP1265401A1 (en) Data transmission system
US20210080988A1 (en) Electronic apparatus and control method for electronic apparatus
JP2001236303A (en) Universal serial bus control circuit