TWI752458B - Component dynamic addressing system on a bus - Google Patents

Component dynamic addressing system on a bus Download PDF

Info

Publication number
TWI752458B
TWI752458B TW109111928A TW109111928A TWI752458B TW I752458 B TWI752458 B TW I752458B TW 109111928 A TW109111928 A TW 109111928A TW 109111928 A TW109111928 A TW 109111928A TW I752458 B TWI752458 B TW I752458B
Authority
TW
Taiwan
Prior art keywords
components
address
countdown
controlled
unit
Prior art date
Application number
TW109111928A
Other languages
Chinese (zh)
Other versions
TW202139017A (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 TW109111928A priority Critical patent/TWI752458B/en
Publication of TW202139017A publication Critical patent/TW202139017A/en
Application granted granted Critical
Publication of TWI752458B publication Critical patent/TWI752458B/en

Links

Images

Abstract

Present invention is related to a component dynamic addressing system on a bus comprising multiple components parallel connected thereon. A random number within each component begins to countdown when resetting or energizing. When counting to zero, a cease signal will be generated. One of these components records a unique address. The present invention provides a method for rapidly defining the address of the component which could quickly response for replacing a component or adding a new component.

Description

匯流排上元件動態定址系統 Dynamic Addressing System for Components on Bus Bars

本發明涉及一種定址系統,尤其涉及一種能較快地定址被控單元的定址系統及方法。 The present invention relates to an addressing system, in particular to an addressing system and method capable of quickly addressing a controlled unit.

在目前電子運動器材的開發中,在服飾配件上有電子化的趨勢,例如,智慧衣上設有主控單元、連接該主控單元的電路以及多個電路的接口,可以讓一般的人們穿著智慧型衣件時於各接口安裝被控單元,例如在對應左胸的接口安裝心跳的感測器來監測心跳,於對應手腕的節點安裝脈搏的感測器來監測脈搏。 In the current development of electronic sports equipment, there is an electronic trend in clothing accessories. For example, smart clothes are provided with a main control unit, a circuit connecting the main control unit, and interfaces for multiple circuits, which can be worn by ordinary people. For smart clothing, a controlled unit is installed at each interface. For example, a heartbeat sensor is installed on the interface corresponding to the left chest to monitor the heartbeat, and a pulse sensor is installed on the node corresponding to the wrist to monitor the pulse.

上述智慧衣的感測器運作時,該主控單元於啟動通電或重置復歸時,需要重新分配輸出輸入位址(I/O位址)給各接口的被控單元才能進行控制,過程中由於主控單元需要輪詢所有的接口來分配地址,且每次都要等待被控單元回應才能進行分配,加上通常主控單元的時脈遠高於被控單元,因此這種分配地址的方式會在每次分配地址時產生閒置時間,使整體分配地址的過程較為費時。 When the sensors of the above smart clothing are operating, when the main control unit is powered on or reset, it needs to reassign the output and input addresses (I/O addresses) to the controlled units of each interface before it can be controlled. Since the master control unit needs to poll all the interfaces to assign addresses, and each time it has to wait for the controlled unit to respond, and usually the clock of the master control unit is much higher than that of the controlled unit, so this kind of address assignment This method will generate idle time each time an address is allocated, which makes the overall process of allocating addresses more time-consuming.

由於現有主控單元通電或復歸時,重新分配各被控單元輸出輸入地址的方法費時。為此,本發明透過各被控單元倒數主動發出中斷訊號通知主控單元分配地址的方式,達到能以較快效率分配地址的效果。 Since the existing master control unit is powered on or reset, the method of reassigning the output and input addresses of each controlled unit is time-consuming. For this reason, the present invention achieves the effect of assigning addresses at a faster efficiency by actively sending out an interrupt signal to notify the master control unit to allocate addresses through the countdown of each controlled unit.

為達到上述創作目的,本發明提供一種匯流排上元件動態定址系統,設有複數個元件並聯結合於一匯流排,每個該元件於復歸或通電時開始以內儲之一隨機數字執行倒數,於倒數至零時產生一中斷訊號,使其中之一該元件記錄獨有之一位址。 In order to achieve the above-mentioned creative purpose, the present invention provides a dynamic addressing system for components on a bus bar, wherein a plurality of components are connected in parallel to a bus bar, and each of the components starts to perform a reciprocal count with a random number stored in the reset or power-on. When the countdown reaches zero, an interrupt signal is generated, so that one of the components records a unique address.

進一步地,該複數個元件包含一主控單元,以及一個以上的被控單元,各被控單元於內部設有一倒數模組,當該主控單元通電或復歸時,觸發各被控單元的該倒數模組以隨機數字倒數,當每一個該倒數模組倒數至零時,該被控單元逐一產生一中斷訊號,該主控單元依接收的該中斷訊號產生對應的一該位址,使發出該中斷訊號的被控單元接收該位址並記錄於內。 Further, the plurality of components include a main control unit, and more than one controlled unit, each controlled unit is provided with a reciprocal module inside, when the main control unit is powered on or reset, trigger the control unit of each controlled unit. The countdown module counts down with random numbers. When each countdown module counts down to zero, the controlled units generate an interrupt signal one by one, and the master control unit generates a corresponding address according to the received interrupt signal to send out The controlled unit of the interrupt signal receives the address and records it in it.

進一步地,各複數個元件分別以該隨機數字倒數,並於倒數至零時產生該中斷訊號,並自行產生獨有的一個該位址予以記錄並對外發佈,使該匯流排上的每個該元件均取得通報特定位址已經產生且予以記錄。 Further, each of the plurality of components counts down with the random number, and generates the interrupt signal when the countdown reaches zero, and generates a unique address to record and publish it to the outside, so that each of the Components get notified that a specific address has been generated and recorded.

本發明使用時可運用在智慧衣等電路控制構造,例如智慧衣的電路控制構造。本發明的功效在於,透過慢速的各被控單元主動倒數再發出中斷訊號的手段,能避免主控單元輪詢各被控單元等待的閒置時間,並且分配地址的過程無論被控單元的數量多寡,由於各被控單元的倒數過程都是同時進行,因此無論本發明設置的被控單元數量多寡,最遲都能在隨機數字的最大可能數字倒數完即完成地址的分配,可達到較快的分配地址效果。 When the present invention is used, it can be applied to circuit control structures such as smart clothing, for example, the circuit control structure of smart clothing. The effect of the present invention lies in that, by means of slow countdown of each controlled unit and then sending an interrupt signal, the idle time of waiting for the master control unit to poll each controlled unit can be avoided, and the process of allocating addresses regardless of the number of controlled units Since the countdown process of each controlled unit is carried out at the same time, regardless of the number of controlled units set in the present invention, the address allocation can be completed at the latest after the countdown of the maximum possible random number, which can achieve faster The allocation address effect.

A:電路 A: circuit

A1:接口 A1: Interface

10:主控單元 10: Main control unit

20:被控單元 20: Controlled unit

21:倒數模組 21: Countdown Module

圖1是本發明較佳實施例的方塊示意圖。 FIG. 1 is a block schematic diagram of a preferred embodiment of the present invention.

為能詳細瞭解本發明的技術特徵及實用功效,並可依照說明書的內容來實施,進一步以如圖式所示的較佳實施例,詳細說明如下。 In order to understand the technical features and practical effects of the present invention in detail, and to implement it according to the contents of the description, the preferred embodiments shown in the drawings are further described in detail as follows.

本發明提供一種匯流排上元件動態定址系統,設有複數個元件並聯結合於一匯流排,每個該元件於復歸或通電時開始以內儲之一隨機數字執行倒數,於倒數至零時產生一中斷訊號,使其中之一該元件記錄獨有之一位址。 The present invention provides a dynamic addressing system for components on a bus bar. A plurality of components are connected in parallel to a bus bar, and each of the components starts to perform a countdown with a random number stored in the reset or power-on, and generates a countdown when the countdown reaches zero. The interrupt signal causes one of the components to record a unique address.

請參看圖1,其為本發明之第一較佳實施例,其於該匯流排上連接有一主控單元10以及一個以上的被控單元20,於該主控單元10串聯一電路A,在本較佳實施例中該電路A是匯流排並設有多個接口A1,以該電路A於該主控單元10電連接一個以上的該被控單元20,如本較佳實施例是電連接兩個被控單元20,並且兩被控單元20是分別連接於多個接口A1的其中一個接口A1,各被控單元20於內部設有一倒數模組21,在本較佳實施例中各倒數模組21是八位元的模組,當該主控單元10通電或復歸(REST)時,觸發各被控單元20的該倒數模組21以隨機數字倒數,隨機數字依據需求可以有不同的位元數,例如0至255的數字,當各倒數模組21倒數至零時,令各被控單元20向該主控單元10發送一中斷訊號,當該主控單元10接收到中斷訊號時分配一輸出輸入地址(I/O地址)給發出該中斷訊號的被控單元20,藉此將不同的輸出輸入地址分別分配給予所有的被控單元20。所謂的隨機數字,可以是每個被控單元20於通電時於記憶體內之殘存數值,或者是亂數產生方式於通電時產生的數值。 Please refer to FIG. 1 , which is a first preferred embodiment of the present invention. A master control unit 10 and more than one controlled unit 20 are connected to the bus bar, and a circuit A is connected in series with the master control unit 10 . In this preferred embodiment, the circuit A is a bus bar and is provided with a plurality of interfaces A1, and the circuit A is electrically connected to the master control unit 10 to more than one controlled unit 20, as in this preferred embodiment, the electrical connection is There are two controlled units 20, and the two controlled units 20 are respectively connected to one of the interfaces A1 of the plurality of interfaces A1. Each controlled unit 20 is internally provided with a reciprocal module 21. In this preferred embodiment, each reciprocal The module 21 is an eight-bit module. When the main control unit 10 is powered on or reset (REST), the countdown module 21 of each controlled unit 20 is triggered to count down with random numbers. The random numbers can be different according to requirements. The number of bits, for example, a number from 0 to 255. When each countdown module 21 counts down to zero, each controlled unit 20 sends an interrupt signal to the master unit 10. When the master unit 10 receives the interrupt signal Allocate an input/output address (I/O address) to the controlled unit 20 that issued the interrupt signal, thereby assigning different input/output addresses to all the controlled units 20 respectively. The so-called random number can be the residual value in the memory of each controlled unit 20 when the power is turned on, or the random number generation method when the power is turned on.

實務上,當其中之一的該被控單元20倒數完成產生例如一低準位或者一高準位的該中斷訊號時,由於不論是該主控單元10或該被控單元均連接於該匯流排,因此,當該主控單元10偵測得知該匯流排的中斷訊號,其即可產 生該位址,如此該中斷訊號之時脈週期內的該被控單元20(即當下完成倒數之被控單元20)即可接收並記錄該位址。當所有被控單元20依序完成倒數,該主控單元20即可透過此一方式,快速地完成位址的派發或定義。 In practice, when one of the controlled units 20 completes the countdown to generate the interrupt signal such as a low level or a high level, since both the master control unit 10 and the controlled unit are connected to the bus Therefore, when the main control unit 10 detects the interrupt signal of the bus, it can generate The address is generated, so that the controlled unit 20 within the clock cycle of the interrupt signal (ie, the controlled unit 20 that has completed the countdown at the moment) can receive and record the address. When all the controlled units 20 complete the countdown in sequence, the master control unit 20 can quickly complete the address assignment or definition in this way.

於此一第一實施例中,當每個被控單元20均具備位址之後,該主控單元10即可使用該位址,分別與該被控單元20取得溝通聯繫、執行訊號傳遞工作。當該匯流排之該接口A1於通電過程另外連接一個該被控單元20時,該主控單元10產生另一獨有位址給予該被控單元20,完成熱插拔(hot join)之效果。 In this first embodiment, after each controlled unit 20 has an address, the master control unit 10 can use the address to communicate with the controlled unit 20 and perform signal transmission work respectively. When the interface A1 of the bus bar is connected to another controlled unit 20 during the power-on process, the master control unit 10 generates another unique address to the controlled unit 20 to complete the effect of hot join .

進一步地,本發明之第二實施例中,可使各元件均具備接收匯流排其他元件狀態與數值的功能,如此於復歸或者通電時,每個元件也可如前述方式進行倒數,當其中之一元件倒數完成至零時,對匯流排上的所有該元件發出中斷後並自行產生獨有的一個該位址予以記錄並對外發佈,使該匯流排上的每個該元件均取得通報特定位址已經產生且予以記錄;而當下一個該元件完成倒數時,依據相同方法產生中斷訊號、產生與已經被發佈的位址不同的另一獨有該位址後,予以對外發佈並予以記錄儲存。如此方式,可以是每個元件均具備主控能力且可互相訊號溝通,非僅被動受到控制。 Further, in the second embodiment of the present invention, each element can have the function of receiving the state and value of other elements of the bus bar, so that when reset or power-on, each element can also be counted down as described above, when one of them When the countdown of a component reaches zero, after interrupting all the components on the bus, it will generate a unique address to record it and release it to the outside world, so that each component on the bus will get the notification specific bit. The address has been generated and recorded; and when the next element completes the countdown, an interrupt signal is generated according to the same method, another unique address is generated that is different from the address that has been issued, and then it is issued and recorded and stored. In this way, each component can have master control capability and can communicate with each other, not only passively controlled.

本發明由於每個被控單元20的倒數過程是並行的程序,因此無論連接於電路A的被控單元20數量多寡,是一個或是多個,最遲都會在隨機數字的最大可能數字倒數完即完成地址的分配,例如本較佳實施例無論於電路A增加多少被控單元20,向所有被控單元20分配不同的輸出輸入地址的程序,都會在最大可能的隨機數字255倒數完即完成分配。 In the present invention, since the countdown process of each controlled unit 20 is a parallel program, no matter the number of controlled units 20 connected to the circuit A is one or more, the countdown will be completed at the latest at the maximum possible number of random numbers. That is, the allocation of addresses is completed. For example, in this preferred embodiment, no matter how many controlled units 20 are added to the circuit A, the process of allocating different output and input addresses to all the controlled units 20 will be completed when the maximum possible random number 255 is counted down. distribute.

以上所述僅為本發明的較佳實施例而已,並非用以限定本發明主張的權利範圍,凡其它未脫離本發明所揭示的精神所完成的等效改變或修飾,均應包括在本發明的申請專利範圍內。 The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the scope of rights claimed by the present invention. All other equivalent changes or modifications that do not depart from the spirit disclosed in the present invention shall be included in the present invention. within the scope of the patent application.

S01-S03:步驟 S01-S03: Steps

Claims (4)

一種匯流排上元件動態定址系統,設有複數個元件並聯結合於一匯流排,每個該元件於復歸或通電時開始以內儲之一隨機數字執行倒數,於倒數至零時產生一中斷訊號,使其中之一該元件記錄獨有之一位址。 A dynamic addressing system for components on a bus bar is provided with a plurality of components connected in parallel to a bus bar, each of the components starts to perform a countdown with a random number stored in the reset or power-on, and generates an interrupt signal when the countdown reaches zero, Make one of these elements record a unique address. 如請求項1所述的匯流排上元件動態定址系統,該複數個元件包含一主控單元,以及一個以上的被控單元,各該被控單元於內部設有一倒數模組,當該主控單元通電或復歸時,觸發各該被控單元的該倒數模組以該隨機數字倒數,當每一個該倒數模組倒數至零時,各該被控單元逐一產生該中斷訊號,該主控單元依接收的該中斷訊號產生對應的該位址,使發出該中斷訊號的各該被控單元接收該位址並記錄於內。 According to the dynamic addressing system for components on a busbar as described in claim 1, the plurality of components include a master control unit and more than one controlled unit, each of the controlled units is internally provided with a reciprocal module, when the master control unit When the unit is powered on or reset, trigger the countdown module of each controlled unit to count down with the random number, when each countdown module counts down to zero, each controlled unit generates the interrupt signal one by one, the master unit The corresponding address is generated according to the received interrupt signal, so that each controlled unit that sends out the interrupt signal receives the address and records it in the address. 如請求項1所述的匯流排上元件動態定址系統,各該元件於倒數至零時並自行產生獨有的一個該位址予以記錄並對外發佈,使該匯流排上的每個該元件均取得通報特定位址已經產生且予以記錄。 According to the dynamic addressing system for components on the busbar as described in claim 1, each component generates a unique address to record and publish it when the countdown reaches zero, so that each component on the busbar can be Get notification that a specific address has been generated and recorded. 如請求項2所述的匯流排上元件動態定址系統,其中於該匯流排設有多個接口,所述各該被控單元連接於多個接口的其中一個接口,於通電狀態下另一該接口連接一新加入元件,該主控單元產生獨有的另一該位址予該新加入元件。 The dynamic addressing system for components on a bus bar as claimed in claim 2, wherein a plurality of interfaces are provided on the bus bar, each of the controlled units is connected to one interface of the plurality of interfaces, and the other interface is in a power-on state. A newly added element is connected to the interface, and the main control unit generates another unique address for the newly added element.
TW109111928A 2020-04-09 2020-04-09 Component dynamic addressing system on a bus TWI752458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109111928A TWI752458B (en) 2020-04-09 2020-04-09 Component dynamic addressing system on a bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109111928A TWI752458B (en) 2020-04-09 2020-04-09 Component dynamic addressing system on a bus

Publications (2)

Publication Number Publication Date
TW202139017A TW202139017A (en) 2021-10-16
TWI752458B true TWI752458B (en) 2022-01-11

Family

ID=79600934

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109111928A TWI752458B (en) 2020-04-09 2020-04-09 Component dynamic addressing system on a bus

Country Status (1)

Country Link
TW (1) TWI752458B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6675265B2 (en) * 2000-06-10 2004-01-06 Hewlett-Packard Development Company, L.P. Multiprocessor cache coherence system and method in which processor nodes and input/output nodes are equal participants
US20080086729A1 (en) * 2006-10-10 2008-04-10 Yuki Kondoh Data processor
US20080144493A1 (en) * 2004-06-30 2008-06-19 Chi-Hsiang Yeh Method of interference management for interference/collision prevention/avoidance and spatial reuse enhancement
TWI592794B (en) * 2014-12-23 2017-07-21 英特爾股份有限公司 Apparatus and method to provide a thermal parameter report for a multi-chip package

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6675265B2 (en) * 2000-06-10 2004-01-06 Hewlett-Packard Development Company, L.P. Multiprocessor cache coherence system and method in which processor nodes and input/output nodes are equal participants
US20080144493A1 (en) * 2004-06-30 2008-06-19 Chi-Hsiang Yeh Method of interference management for interference/collision prevention/avoidance and spatial reuse enhancement
US20080086729A1 (en) * 2006-10-10 2008-04-10 Yuki Kondoh Data processor
TWI592794B (en) * 2014-12-23 2017-07-21 英特爾股份有限公司 Apparatus and method to provide a thermal parameter report for a multi-chip package

Also Published As

Publication number Publication date
TW202139017A (en) 2021-10-16

Similar Documents

Publication Publication Date Title
TWI701555B (en) Master device, slave device and method for operating the same
CN107395787B (en) Address allocation method, system, gateway and medium for CAN communication network
JP6975095B2 (en) Data storage and processing systems that perform machine learning and how they operate
JP2008099482A (en) Battery pack block, battery pack system, and address setting method for battery pack system
JP5570556B2 (en) Numerical control device that communicates with IO unit
JP6149161B2 (en) Device, system, and method for reducing chip select
TWI752458B (en) Component dynamic addressing system on a bus
TWI255404B (en) System and method for dynamically allocating addresses to devices connected to an integrated circuit bus
CN109885336B (en) Offline configuration method and device of intelligent equipment
TW201421260A (en) I2C bus structure and address management method
US9258385B2 (en) Method for loading a program module into a network device and network with network devices
JP2015517140A (en) Method and apparatus for forming software fault containment units (SFCCUs) in a distributed real-time system
CN107734082B (en) Address allocation method and system
CN100383771C (en) System and method for dynamically distributing device address on integrated circuit bus
CN105095149B (en) A kind of batch processing method and device of system on chip parameter
CN108881514B (en) Address allocation method of bus system, communication equipment and bus system
KR102352156B1 (en) Slave device for performing address resolution protocol and operation method thereof
CN116017341A (en) Method, system and equipment for wireless weighing network
CN111078598B (en) Memory module data access control method, data access device and chip
JP2003348093A (en) Communication processor and method for switching network interface
WO2013101091A1 (en) Advanced programmable interrupt controller identifier (apic id) assignment for a multi-core processing unit
US20240137247A1 (en) Polling scheme in an industrial network system
US20240134808A1 (en) Polling scheme with priority in an industrial network system
US20180032461A1 (en) Control circuit board, micro-server, control system and control method thereof
JP4152387B2 (en) Bus system