TWI812490B - Signal transceiving device and signal transceiving method thereof - Google Patents
Signal transceiving device and signal transceiving method thereof Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 230000005540 biological transmission Effects 0.000 claims abstract description 71
- 230000007704 transition Effects 0.000 claims description 40
- 230000000630 rising effect Effects 0.000 claims description 4
- 230000002093 peripheral effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Reduction Or Emphasis Of Bandwidth Of Signals (AREA)
Abstract
Description
本發明是有關於一種信號收發裝置及其信號收發方法,且特別是有關於一種可對傳輸資料的尺寸進行調整的信號收發裝置。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
第一中斷信號線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
另一方面,第一控制器110還透過資料傳輸匯流排DTB耦接到第二控制器120。資料傳輸匯流排DTB用於在第一控制器110與第二控制器120之間傳輸資料。On the other hand, the
在此實施例中,在資料傳輸操作期間,如果第二控制器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
詳細地說,第二控制器120可根據所需傳輸資料的尺寸判斷是否在中斷信號CS1到CS2中的每一者上產生轉態緣。舉例來說,如果所需傳輸資料的尺寸是第一尺寸,則第二控制器120可僅選擇使中斷信號CS1轉態;如果所需傳輸資料的尺寸是第二尺寸,則第二控制器120可僅選擇使中斷信號CS2轉態;如果所需傳輸資料的尺寸是第三尺寸,則第二控制器120可選擇使中斷信號CS1及CS2轉態。In detail, the
此外,第一控制器110可檢測中斷信號CS1及CS2中的每一者的轉態緣以確定傳輸資料的尺寸。舉例來說,如果僅檢測到中斷信號CS1上的一個轉態緣,則第一控制器110可確定傳輸資料的尺寸是第一尺寸。如果第一控制器110僅檢測到中斷信號CS2上的一個轉態緣,則第一控制器110可確定傳輸資料的尺寸是第二尺寸。如果第一控制器110檢測到中斷信號CS1及CS2二者上的轉態緣,則第一控制器110可確定傳輸資料的尺寸是第三尺寸。此處,第一尺寸可小於第二尺寸,且第二尺寸可小於第三尺寸。在一些實施例中,第一尺寸可為16位元組,第二尺寸可為32位元組,且第三尺寸可為64位元組。In addition, the
如果檢測到傳輸資料的尺寸為第一尺寸,則第一控制器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
另一方面,資料傳輸匯流排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
請共同參照圖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
詳細地說,第一控制器110可透過連續監視中斷信號CS1及CS2的邏輯電壓準位來檢測中斷信號CS1及CS2。以中斷信號CS1為例,如果第一控制器110在時間點t1處檢測到中斷信號CS1為低邏輯電壓準位,且在緊接著時間點t1的時間點t2處檢測到中斷信號CS1變成高邏輯電壓準位,則可檢測到為上升邊沿的轉態緣210。In detail, the
此處應注意,在此實施例中,第二控制器120可產生具有上升邊沿210及220的中斷信號CS1及CS2,以將傳輸資料的所需尺寸通知第一控制器110。在其他實施例中,第二控制器120也可產生具有下降邊沿的中斷信號CS1及CS2,以將傳輸資料的所需尺寸通知第一控制器110。It should be noted here that in this embodiment, the
請參照圖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
中斷信號線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
另一方面,第一控制器310還透過資料傳輸匯流排DTB耦接到第二控制器120。資料傳輸匯流排DTB用於在第一控制器310與第二控制器320之間傳輸資料。On the other hand, the
在此實施例中,在資料傳輸操作期間,如果第二控制器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
詳細地說,第二控制器320可根據所需傳輸資料的尺寸來判斷是否在中斷信號CS1到CSN中的每一者上產生轉態緣。舉例來說,如果所需傳輸資料的尺寸是第一尺寸,則第二控制器320可僅選擇使中斷信號CS1轉態;如果所需傳輸資料的尺寸是第二尺寸,則第二控制器320可僅選擇使中斷信號CS2轉態;如果所需傳輸資料的尺寸是第三尺寸,則第二控制器320可選擇使中斷信號CS1及CS2轉態;並且如果所需傳輸資料的尺寸是第四尺寸,則第二控制器320可僅選擇使中斷信號CSN轉態。其中第一尺寸、第二尺寸、第三尺寸與第四尺寸是不同的。In detail, the
此處應注意,所需傳輸資料的尺寸與中斷信號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
請參照圖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:
圖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)
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)
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 |
-
2022
- 2022-09-27 TW TW111136594A patent/TWI812490B/en active
Patent Citations (3)
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 |