TW202133591A - Electronic device and electronic product - Google Patents
Electronic device and electronic product Download PDFInfo
- Publication number
- TW202133591A TW202133591A TW110100536A TW110100536A TW202133591A TW 202133591 A TW202133591 A TW 202133591A TW 110100536 A TW110100536 A TW 110100536A TW 110100536 A TW110100536 A TW 110100536A TW 202133591 A TW202133591 A TW 202133591A
- Authority
- TW
- Taiwan
- Prior art keywords
- count value
- packet
- electronic device
- counter
- original signal
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R23/00—Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
- G01R23/02—Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage
- G01R23/10—Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage by converting frequency into a train of pulses, which are then counted, i.e. converting the signal into a square wave
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R35/00—Testing or calibrating of apparatus covered by the other groups of this subclass
- G01R35/04—Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本發明係有關於具有無線通訊功能的電子裝置及電子產品。The present invention relates to electronic devices and electronic products with wireless communication functions.
一般的電子產品在出貨之前會在工廠內進行測試,以確保其功能及操作是否正常。然而,針對有些無法進行實體連接來進行測試的電子產品,例如無線電表,則會需要透過無線傳輸的方式來測試電子產品內的訊號是否正常且精準度是否足夠。具體來說,電子產品在測試階段會需要將內部之一或多個訊號的相關資訊透過無線傳輸傳送給量測裝置,以供量測裝置判斷電子產品之內部訊號的正確性與精準度,然而,由於電子系統中時脈訊號的頻率容易受到環境因素(例如,環境溫度)的影響,因此,上述測試的過程會因為電子產品與量測裝置之時脈訊號的差異而導致量測誤差,且無線傳輸的訊號延遲也會被環境因素所影響而導致量測裝置無法即時接收來自電子產品的訊號相關資訊,而導致訊號量測上的錯誤。General electronic products will be tested in the factory before shipment to ensure that their functions and operations are normal. However, for some electronic products that cannot be physically connected for testing, such as radio watches, it is necessary to test whether the signals in the electronic products are normal and accurate enough through wireless transmission. Specifically, in the testing phase of an electronic product, relevant information about one or more internal signals needs to be transmitted to the measuring device through wireless transmission, so that the measuring device can determine the correctness and accuracy of the internal signal of the electronic product. Since the frequency of the clock signal in an electronic system is easily affected by environmental factors (for example, ambient temperature), the above-mentioned test process will cause measurement errors due to the difference between the clock signals of the electronic product and the measuring device, and The signal delay of wireless transmission is also affected by environmental factors, and the measurement device cannot receive the signal-related information from the electronic product in real time, resulting in errors in the signal measurement.
因此,本發明的目的之一在於提出一種電子裝置,其可以用於量測裝置中以準確地產生一個與電子產品之內部訊號相同的輸出訊號,以供進行訊號量測與判斷,以解決先前技術中所述的問題。Therefore, one of the objectives of the present invention is to provide an electronic device that can be used in a measurement device to accurately generate an output signal that is the same as the internal signal of the electronic product for signal measurement and judgment, so as to solve the previous problem. The problem described in the technology.
在本發明的一個實施例中,揭露了一種電子裝置,其包含有一無線通訊模組、一計數器以及一處理電路。該無線通訊模組用以自另一電子裝置接收一第一封包及一第二封包,其中該第一封包包含了一第一計數值,該第二封包包含了一第二計數值,且該第一計數值與該第二計數值分別對應到該另一電子裝置之一原始訊號之相鄰的兩個邊緣;該計數器用以根據一時脈訊號以持續進行計數;以及該處理電路用以在接收到該第一封包時自該計數器取得一第三計數值,並在接收到該第二封包時自該計數器取得一第四計數值;以及該處理電路另根據該第一計數值、該第二計數值、該第三計數值及該第四計數值來產生實質相同於該原始訊號的一輸出訊號。In an embodiment of the present invention, an electronic device is disclosed, which includes a wireless communication module, a counter, and a processing circuit. The wireless communication module is used to receive a first packet and a second packet from another electronic device, wherein the first packet includes a first count value, the second packet includes a second count value, and the The first count value and the second count value respectively correspond to two adjacent edges of an original signal of the other electronic device; the counter is used for continuously counting according to a clock signal; and the processing circuit is used for When the first packet is received, a third count value is obtained from the counter, and when the second packet is received, a fourth count value is obtained from the counter; and the processing circuit is further based on the first count value and the second packet. The second count value, the third count value, and the fourth count value generate an output signal that is substantially the same as the original signal.
在本發明的另一個實施例中,揭露了一種電子產品,其包含有一計數器、一偵測電路以及一無線通訊模組。該計數器用以根據一時脈訊號以持續進行計數;該偵測電路用以即時偵測一原始訊號,並在該原始訊號的上緣出現時自該計數器取得一第一計數值,且在該原始訊號的下緣出現時自該計數器取得一第二計數值;以及該無線通訊模組,用以在該偵測電路取得該第一計數值後將該第一計數值透過一第一封包傳送至一電子裝置,並在該偵測電路取得該第一計數值後將該第二計數值透過一第二封包傳送至該電子裝置。In another embodiment of the present invention, an electronic product is disclosed, which includes a counter, a detection circuit, and a wireless communication module. The counter is used to continuously count according to a clock signal; the detection circuit is used to detect an original signal in real time, and obtain a first count value from the counter when the upper edge of the original signal appears, and in the original signal When the lower edge of the signal appears, a second count value is obtained from the counter; and the wireless communication module is used for transmitting the first count value through a first packet after the detection circuit obtains the first count value An electronic device, and after the detection circuit obtains the first count value, the second count value is transmitted to the electronic device through a second packet.
在本發明的另一個實施例中,揭露了一種電子裝置,其包含有一無線通訊模組、一計數器以及一處理電路。該無線通訊模組用以自另一電子裝置接收一第一封包、一第二封包、一第三封包及一第四封包,其中該第一封包至少包含了一第一計數值,該第二封包至少包含了一第二計數值、該第三封包至少包含了一第三計數值,該第四封包至少包含了一第四計數值,且該第一計數值與該第二計數值分別對應到該另一電子裝置之一原始訊號之相鄰的兩個邊緣,該第三計數值與該第四計數值分別根據該無線通訊模組傳送至該另一電子裝置的兩個封包所產生。該計數器用以根據一時脈訊號以持續進行計數。該處理電路耦接於該無線通訊模組以及該計數器,且用以根據該第一計數值、該第二計數值、該第三計數值及該第四計數值來產生實質相同於該原始訊號的一輸出訊號。In another embodiment of the present invention, an electronic device is disclosed, which includes a wireless communication module, a counter, and a processing circuit. The wireless communication module is used to receive a first packet, a second packet, a third packet, and a fourth packet from another electronic device, wherein the first packet includes at least a first count value, and the second packet The packet contains at least a second count value, the third packet contains at least a third count value, the fourth packet contains at least a fourth count value, and the first count value and the second count value respectively correspond To two adjacent edges of an original signal of the other electronic device, the third count value and the fourth count value are respectively generated according to two packets transmitted by the wireless communication module to the another electronic device. The counter is used to continuously count according to a clock signal. The processing circuit is coupled to the wireless communication module and the counter, and is used to generate a signal that is substantially the same as the original signal according to the first count value, the second count value, the third count value, and the fourth count value One output signal.
第1圖為根據本發明一實施例之電子產品110與電子裝置120的示意圖,其中電子裝置120可設置在一量測裝置中,用來判斷電子產品110中一原始訊號Din的訊號狀態。如第1圖所示,電子產品110包含了一無線通訊模組112、一偵測電路114以及一計數器116,且電子裝置120包含了一無線通訊模組122、一處理電路124以及一計數器126。在本實施例中,電子產品110可以是一個無線電表(Watt hour meter),其可以安裝在任何使用電力的環境並記錄環境所使用的電量,而原始訊號Din即是用來表示環境的耗電量;電子裝置120則用來在內部重建立一個與原始訊號Din實質相同的輸出訊號Dout,以供判斷原始訊號Din的品質。FIG. 1 is a schematic diagram of an
當電子產品110處於一測試階段時,電子產品110自外部接收原始訊號Din,其中原始訊號Din係用來模擬電子產品110在實際應用時所產生的數位訊號,且原始訊號Din可以來自包含電子裝置120的量測裝置(例如,透過其他介面進行傳輸)。此外,計數器116可以是一個自由運行計數器(free-run counter),其可以根據時脈訊號CLK1持續地產生計數值CV1。接著,偵測電路114持續偵測原始訊號Din以判斷原始訊號Din是否有準位上的變化,亦即判斷原始訊號Din在波形上是否有邊緣出現,以產生一偵測結果D_res。詳細來說,當偵測電路114偵測到原始訊號Din由低準位改變為高準位,則此時偵測電路114會自計數器116擷取目前的計數值CV1以得到一第一計數值,以供產生偵測結果D_res並透過無線通訊模組112傳送至電子裝置120,其中此時的偵測結果D_res包含了對應到原始訊號Din上緣(rising edge)的第一計數值。另一方面,當偵測電路114偵測到原始訊號Din由高準位改變為低準位,則此時偵測電路114會自計數器116擷取目前的計數值CV1以得到一第二計數值,以供產生偵測結果D_res並透過無線通訊模組112傳送至電子裝置120,其中此時的偵測結果D_res包含了對應到原始訊號Din下緣(falling edge)的第二計數值。綜上所述,每當偵測電路114偵測到原始訊號Din有上緣或下緣出現時,便會即時擷取計數器116的計數值CV1,並產生偵測結果D_res以將上緣或下緣資訊及對應的計數值傳送給電子裝置120。在本實施例中,由於當偵測電路114偵測到原始訊號Din有上緣或下緣出現時便會立即傳送對應的偵測結果D_res至電子裝置120,因此,不論原始訊號Din之上緣與下緣的距離有多近,一個封包只會包含原始訊號Din之一個邊緣的計數值,然而,本發明並不以此為限。When the
在電子裝置120的操作上,無線通訊模組122持續自電子產品110接收多個封包,其中該多個封包中有部分封包會包含上述電子產品110所產生的偵測結果D_res。此外,計數器126可以是一個自由運行計數器,其可以根據時脈訊號CLK2持續地產生計數值CV2。當處理電路124透過無線通訊模組122接收到具有偵測結果D_res的訊號時,處理器120會即時自計數器126取得計數值CV2,以供進行後續的計算。具體來說,當處理電路124透過無線通訊模組122接收到包含有原始訊號Din的上緣資訊及對應的第一計數值時,處理電路124會自計數器126擷取目前的計數值CV2以得到一第三計數值;以及當處理電路124透過無線通訊模組122接收到包含有原始訊號Din的下緣資訊及對應的第二計數值時,處理電路124會自計數器126擷取目前的計數值CV2以得到一第四計數值。最後,處理電路124根據來自電子產品110的第一計數值與第二計數值、電子裝置120本身所取得的第三計數值與第四計數值、以及所接收到之包含有偵測結果D_res的兩訊號(封包)之間的時間間隔,來產生相同於原始訊號Din的輸出訊號Dout。In the operation of the
以第2、3圖為例來進行說明,其中第2圖為電子產品110產生包含第一計數值與第二計數值之封包的示意圖,且第3圖為電子裝置120產生第三計數值與第四計數值,並據以產生輸出訊號Dout的示意圖。在以下的說明中,係假設電子產品110與電子裝置120均支援藍牙低功耗(Bluetooth Low Energy,BLE)規格,且電子產品110中的無線通訊模組112係傳送藍牙封包至電子裝置120的無線通訊模組122。先參考第2圖,偵測電路114偵測到原始訊號Din的上緣時所擷取的第一計數值為“21200”,而電子產品110會立即將包含第一計數值的封包傳送至電子裝置120,而若是封包傳送失敗(例如,電子產品110未接收到來自確認資訊(ACK)),則電子產品110會在一固定時間間隔後重新傳送包含第一計數值的封包傳送至電子裝置120。需注意的是,在本實施例中,封包的傳送間隔為7.5毫秒(ms),但此僅為範例說明而非是本發明的限制,封包的傳送間隔可以由電子產品110與電子裝置120在行連線協商時決定。接著,偵測電路114偵測到原始訊號Din的下緣時所擷取的第二計數值為“1221231”,而電子產品110會立即將包含第二計數值的封包傳送至電子裝置120。Take Figures 2 and 3 as an example for description. Figure 2 is a schematic diagram of the
接著,參考第3圖,假設電子裝置120在電子產品110在第一次傳送包含第一計數值的封包時便成功接收,處理電路124會擷取目前自計數器126的計數值以得到的第三計數值“1024”;此外,在處理電路124接收到來自電子產品110傳送包含第二計數值的封包時,處理電路124會將目前自計數器126得到第四計數值“1201087”。接著,假設時脈訊號CLK1與時脈訊號CLK2的頻率均為40MHz、每一個時脈週期的寬度為25奈秒(ns)、電子產品110第一次發送包含第一計數值的封包為第一個封包、電子產品110發送包含第二計數值的封包為第五個封包、每一個封包之間傳送間隔為7.5毫秒,則輸出訊號Dout之波形具有高準位的寬度W可以計算如下:
W=[(1201087-1024)*25ns/(7.5ms*4)]*(1221231-21200)=1200094………….(1);
其中“(1221231-21200)*25ns”代表著原始訊號Din之波形具有高準位的寬度,而所計算出之寬度W表示了在使用時脈訊號CLK2計數的情形下,原始訊號Din之波形具有高準位的寬度。因此,在決定出輸出訊號Dout的寬度W之後,處理電路124便可以根據計數器126的計數值CV2來準確地建立出與原始訊號Din相同的輸出訊號Dout,例如第3圖所示之在計數值CV2為“352000”時控制輸出訊號Dout由低準位改變至高準位,而在計數值CV2為“1352094”時控制輸出訊號Dout由高準位改變至低準位。Next, referring to Figure 3, assuming that the
需注意的是,在第3圖所示的例子中係假設電子裝置120成功地接收在電子產品110第一次傳送包含第一計數值的封包,而若是電子裝置120是在電子產品110第二次傳送包含第一計數值的封包時才成功接收,則上述公式(1)中的“7.5ms*4”要修改為“7.5ms*3”,且第三計數值“1024”也要修改為在接收到第二個封包時的計數值。由於本領域具有通常知識者在閱讀過以上的內容後應能了解如何對公式(1)的內容作修改以適用於封包重傳的情況,故詳細內容不再贅述。It should be noted that, in the example shown in Figure 3, it is assumed that the
在本實施例中,當電子產品110為一無線電表時,原始訊號Din之具有高準位的寬度代表著環境的用電量,因此,透過以上實施例所述的內容,即使時脈訊號CLK1與時脈訊號CLK2的實際頻率因為製程或環境因素而有所誤差,電子裝置120仍然可以準確地重現原始訊號Din,以供後續的應用。In this embodiment, when the
另一方面,在電子產品110的測試階段時,由於電子產品的原始訊號Din是由外界輸入的一個已知訊號,再加上電子裝置120所產生的輸出訊號Dout可以完全相同於原始訊號Din,因此,電子裝置120本身也可以透過比對輸出訊號Dout與上述已知訊號來判斷電子產品110的內部操作是否有瑕疵,以對電子產品110進行內部訊號品質的檢測。On the other hand, during the testing phase of the
第4圖為根據本發明一實施例之電子產品410與電子裝置420的示意圖,其中電子裝置420係可設置在一量測裝置中,並用來判斷電子產品410中一原始訊號Din的訊號狀態。如第4圖所示,電子產品410包含了一無線通訊模組412、一偵測電路414以及一計數器416,且電子裝置420包含了一無線通訊模組422、一處理電路424以及一計數器426。在本實施例中,電子產品410可以是一個無線電表,其可以安裝在任何使用電力的環境並記錄環境所使用的電量,而原始訊號Din即是用來表示環境的耗電量;電子裝置420則用來在內部重建立一個與原始訊號Din相同的輸出訊號Dout,以供判斷原始訊號Din的品質。FIG. 4 is a schematic diagram of an
當電子產品410處於一測試階段時,電子產品410自外部接收原始訊號Din,其中原始訊號Din係用來模擬電子產品410在實際應用時所產生的數位訊號,且原始訊號Din可以來自包含電子裝置420的量測裝置(例如,透過其他介面進行傳輸)。此外,計數器416可以是一個自由運行計數器,其可以根據時脈訊號CLK1持續地產生計數值CV1。接著,偵測電路414持續偵測原始訊號Din以判斷原始訊號Din是否有準位上的變化,亦即判斷原始訊號Din在波形上是否有邊緣出現,以產生一偵測結果D_res。詳細來說,當偵測電路414偵測到原始訊號Din由低準位改變為高準位,則此時偵測電路414會自計數器416擷取目前的計數值CV1以得到一第一計數值,以供產生偵測結果D_res並透過無線通訊模組412傳送至電子裝置420,其中此時的偵測結果D_res包含了對應到原始訊號Din上緣的第一計數值。在本實施例中﹑若是電子產品410的封包傳輸失敗,則在封包重新傳輸之前,偵測電路414會另外自計數器416擷取目前的計數值CV1以得到一更新後第一計數值,並將更新後第一計數值連同之前的第一計數值一併透過新的封包傳送給電子裝置420。另一方面,當偵測電路414偵測到原始訊號Din由高準位改變為低準位,則此時偵測電路414會自計數器416擷取目前的計數值CV1以得到一第二計數值,以供產生偵測結果D_res並透過無線通訊模組412傳送至電子裝置420,其中此時的偵測結果D_res包含了對應到原始訊號Din之下緣的第二計數值。在本實施例中,若是電子產品410的封包傳輸失敗,則在封包重新傳輸之前,偵測電路414會另外自計數器416擷取目前的計數值CV1以得到一更新後第二計數值,並將更新後第二計數值連同之前的第二計數值一併透過新的封包傳送給電子裝置420。綜上所述,每當偵測電路414偵測到原始訊號Din有上緣或下緣出現時,便會即時擷取計數器416的計數值CV1,並產生偵測結果D_res以將上/下緣資訊及對應的計數值傳送給電子裝置420。在本實施例中,由於當偵測電路414偵測到原始訊號Din有上緣或下緣出現時便會立即傳送對應的偵測結果D_res至電子裝置420,因此,不論原始訊號Din之上緣與下緣的距離有多近,一個封包只會包含原始訊號Din之一個邊緣的計數值。When the
在電子裝置420的操作上,無線通訊模組422持續自電子產品412接收多個封包,其中該多個封包中有部分封包會包含上述電子產品410所產生的偵測結果D_res。此外,計數器426可以是一個自由運行計數器,其可以根據時脈訊號CLK2持續地產生計數值CV2。當處理電路424透過無線通訊模組422接收到具有偵測結果D_res的訊號時,處理器420會即時自計數器426取得計數值CV2,以供進行後續的計算。具體來說,當處理電路424透過無線通訊模組422接收到包含有原始訊號Din的上緣資訊及對應的第一計數值時,處理電路424會自計數器426擷取目前的計數值CV2以得到一第三計數值;以及當處理電路424透過無線通訊模組422接收到包含有原始訊號Din的下緣資訊及對應的第二計數值時,處理電路424會自計數器426擷取目前的計數值CV2以得到一第四計數值。最後,處理電路424根據來自電子產品410的第一計數值與第二計數值、來自電子產品410的更新後第一計數值或更新後第二計數值(若是有的話)、電子裝置420本身所取得的第三計數值與第四計數值,來產生相同於原始訊號Din的輸出訊號Dout。In the operation of the
以第5、6圖為例來進行說明,其中第5圖為電子產品410產生包含第一計數值與第二計數值之封包的示意圖,且第6圖為電子裝置420產生第三計數值與第四計數值,並據以產生輸出訊號Dout的示意圖。在以下的說明中,係假設電子產品410與電子裝置420不具有固定的封包傳輸間隔,亦即電子產品410可以隨時地將封包傳送給電子裝置420,而不需要如低功耗藍牙規格中設定固定的封包傳輸間隔。在一實施例中,電子產品410與電子裝置420支援Nordic 2.4GHz規格。先參考第5圖,偵測電路414偵測到原始訊號Din的上緣時所擷取的第一計數值為“21200”,而電子產品410會立即將包含第一計數值的封包傳送至電子裝置420,而若是封包傳送失敗(例如,電子產品410未接收到來自確認資訊(ACK)),則偵測電路414會自計數器416取得目前的計數值CV1來做為更新後第一計數值(例如,第5圖中的“36200”),並立即將第一計數值“21200”與更新後第一計數值“36200”一併傳送給電子裝置,亦即,更新後第一計數值“36200”可視為對應到重新傳送之封包的時間點。接著,偵測電路414偵測到原始訊號Din的下緣時所擷取的第二計數值為“1221231”,而電子產品410會立即將包含第二計數值的封包傳送至電子裝置420。Take Figures 5 and 6 as an example for description. Figure 5 is a schematic diagram of the
接著,參考第6圖,由於電子裝置420在電子產品410在第二次傳送包含第一計數值的封包時才成功,處理電路424會擷取目前自計數器126的計數值以得到的第三計數值“15028”;此外,在處理電路424接收到來自電子產品410傳送包含第二計數值的封包時,處理電路424會將目前自計數器426得到第四計數值“1201087”。接著,輸出訊號Dout之波形具有高準位的寬度W可以計算如下:
W=[(1221231-36200)/(1201087-15028)]*(1221231-21200)=1185031…….(2);
其中所計算出之寬度W表示了在使用時脈訊號CLK2計數的情形下,原始訊號Din之波形具有高準位的寬度。因此,在決定出輸出訊號Dout的寬度W之後,處理電路124便可以根據計數器126的計數值CV2來準確地建立出與原始訊號Din相同的輸出訊號Dout,例如第3圖所示之在計數值CV2為“42000”時控制輸出訊號Dout由低準位改變至高準位,而在計數值CV2為“1227031”時控制輸出訊號Dout由高準位改變至低準位。Next, referring to Figure 6, since the
需注意的是,在第5、6圖所示的例子中係假設電子裝置420在電子產品410第二次傳送包含第一計數值的封包時才成功接收,而若是電子裝置420是在電子產品410第一次傳送包含第一計數值的封包時才成功接收,則上述公式(2)中的更新後第一計數值“36200”要修改為第一計數值“21200”,且第三計數值“15028”也要修改為在接收到第一個封包時的計數值“1024”。由於本領域具有通常知識者在閱讀過以上的內容後應能了解如何對公式(2)的內容作修改以適用於第一次封包傳輸便成功的情況,故詳細內容不再贅述。It should be noted that in the examples shown in Figures 5 and 6, it is assumed that the
第7圖為根據本發明另一實施例之電子產品710與電子裝置720的示意圖,其中電子裝置720可設置在一量測裝置中,用來判斷電子產品710中一原始訊號Din的訊號狀態。如第7圖所示,電子產品710包含了一無線通訊模組712、一偵測電路714以及一計數器716,且電子裝置720包含了一無線通訊模組722、一處理電路724以及一計數器726。在本實施例中,電子產品710可以是一個無線電表,其可以安裝在任何使用電力的環境並記錄環境所使用的電量,而原始訊號Din即是用來表示環境的耗電量;電子裝置720則用來在內部重建立一個與原始訊號Din實質相同的輸出訊號Dout,以供判斷原始訊號Din的品質。FIG. 7 is a schematic diagram of an
當電子產品710處於一測試階段時,電子產品710自外部接收原始訊號Din,其中原始訊號Din係用來模擬電子產品710在實際應用時所產生的數位訊號,且原始訊號Din可以來自包含電子裝置720的量測裝置(例如,透過其他介面進行傳輸)。此外,計數器716可以是一個自由運行計數器,其可以根據時脈訊號CLK1持續地產生計數值CV1。接著,偵測電路714持續偵測原始訊號Din以判斷原始訊號Din是否有準位上的變化,亦即判斷原始訊號Din在波形上是否有邊緣出現,以產生一偵測結果D_res。詳細來說,當偵測電路714偵測到原始訊號Din由低準位改變為高準位,則此時偵測電路714會自計數器716擷取目前的計數值CV1以得到一第一計數值,以供產生偵測結果D_res並透過無線通訊模組712傳送至電子裝置720,其中此時的偵測結果D_res包含了對應到原始訊號Din上緣的第一計數值。另一方面,當偵測電路714偵測到原始訊號Din由高準位改變為低準位,則此時偵測電路714會自計數器716擷取目前的計數值CV1以得到一第二計數值,以供產生偵測結果D_res並透過無線通訊模組712傳送至電子裝置720,其中此時的偵測結果D_res包含了對應到原始訊號Din下緣的第二計數值。綜上所述,每當偵測電路714偵測到原始訊號Din有上緣或下緣出現時,便會即時擷取計數器716的計數值CV1,並產生偵測結果D_res以將上緣或下緣資訊及對應的計數值傳送給電子裝置720。When the
在電子裝置720的操作上,無線通訊模組722會產生封包至電子產品710中,以供電子產品710產生一第三計數值以及一第四計數值,具體來說,假設電子產品710與電子裝置720均支援藍牙低功耗(BLE)規格,而電子裝置720可以傳送多個藍牙封包至電子產品710的無線通訊模組,而在電子產品710接收到來自電子裝置720的一封包時,此時偵測電路714會自計數器716擷取目前的計數值CV1以得到第三計數值,以供產生偵測結果D_res並透過無線通訊模組712傳送至電子裝置720;而在電子產品710接收到來自電子裝置720的另一封包時,此時偵測電路714會自計數器716擷取目前的計數值CV1以得到第四計數值,以供產生偵測結果D_res並透過無線通訊模組712傳送至電子裝置720。需注意的是,在電子產品710傳送第三計數值與第四計數值給電子裝置720時,一併也會傳送所對應之電子裝置720的藍牙封包資訊(例如,本實施例為第一個藍牙封包以及第五的藍牙封包)。In the operation of the
接著,處理電路724根據來自電子產品710的第一計數值、第二計數值、第三計數值及第四計數值、以及第三計數值及第四計數值所對應到之藍牙封包的時間間隔,來產生相同於原始訊號Din的輸出訊號Dout。Then, the
以第8、9圖為例來進行說明,其中第8圖為電子產品710產生第一計數值、第二計數值第三計數值及第四計數值的示意圖,且第9圖為電子裝置720產生輸出訊號Dout的示意圖。先參考第8圖,偵測電路714偵測到原始訊號Din的上緣時所擷取的第一計數值為“21200”,而偵測電路714偵測到原始訊號Din的下緣時所擷取的第二計數值為“1221231”。此外,偵測電路714在接收到來自電子裝置720之第一個藍牙封包時所擷取的第三計數值為“1024”,而偵測電路714在接收到來自電子裝置720之第五個藍牙封包時所擷取的第四計數值為“1201087”。接著,參考第9圖,假設時脈訊號CLK1與時脈訊號CLK2的頻率均為40MHz、每一個時脈週期的寬度為25奈秒(ns)、每一個封包之間傳送間隔為7.5毫秒,則輸出訊號Dout之波形具有高準位的寬度W可以計算如下:
W=(7.5ms*4)*(1221231-21200)/[(1201087-1024)*25ns]…………………...(3);因此,在決定出輸出訊號Dout的寬度W之後,處理電路724便可以根據計數器726的計數值CV2來準確地建立出與原始訊號Din相同的輸出訊號Dout,例如第9圖所示之在計數值CV2為“352000”時控制輸出訊號Dout由低準位改變至高準位,而在計數值CV2為“1551968”時控制輸出訊號Dout由高準位改變至低準位。Take figures 8 and 9 as an example for description, where figure 8 is a schematic diagram of the
簡要歸納本發明,在本發明之電子裝置與電子產品中,電子產品在原始訊號的上緣出現時自計數器取得第一計數值,且在原始訊號的下緣出現時自計數器取得第二計數值,並將第一計數值與第二計數值分別透過不同的第一封包與第二封包傳送給電子裝置;而電子裝置在接收到第一封包時會自內部的計數器取得第三計數值,並在接收到第二封包時會自內部的計數器取得第四計數值,而透過使用第一、第二、第三、第四計數值及/或其他時間資訊進行運算,可以準確地重現原始訊號的波形,而不會受到電子裝置與電子產品內部之時脈訊號之誤差的影響。在另一實施例中,上述第一、第二、第三、第四計數值也可以全部由電子產品來產生,之後再將第一、第二、第三、第四計數值傳送給電子裝置來重建出原始訊號的波形。 以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。To briefly summarize the present invention, in the electronic device and electronic product of the present invention, the electronic product obtains the first count value from the counter when the upper edge of the original signal appears, and obtains the second count value from the counter when the lower edge of the original signal appears , And transmit the first count value and the second count value to the electronic device through different first and second packets respectively; and the electronic device will obtain the third count value from the internal counter when receiving the first packet, and When the second packet is received, the fourth count value is obtained from the internal counter, and the original signal can be accurately reproduced by using the first, second, third, fourth count value and/or other time information to perform calculations The waveform is not affected by the error of the internal clock signal of the electronic device and the electronic product. In another embodiment, the above-mentioned first, second, third, and fourth count values can also be all generated by electronic products, and then the first, second, third, and fourth count values are transmitted to the electronic device. To reconstruct the waveform of the original signal. The foregoing descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made in accordance with the scope of the patent application of the present invention shall fall within the scope of the present invention.
110, 410, 710:電子產品
112, 412, 712:無線通訊模組
114, 414, 714:偵測電路
116, 416, 716:計數器
120, 420, 720:電子裝置
122, 422, 722:無線通訊模組
124, 424, 724:處理電路
126, 426, 726:計數器
CLK1, CLK2:時脈訊號
CV1, CV2:計數值
Din:原始訊號
Dres:偵測結果
Dout:輸出訊號110, 410, 710:
第1圖為根據本發明一實施例之電子產品與電子裝置的示意圖。 第2圖為電子產品產生包含第一計數值與第二計數值之封包的示意圖。 第3圖為電子裝置產生第三計數值與第四計數值,並據以產生輸出訊號的示意圖。 第4圖為根據本發明另一實施例之電子產品與電子裝置的示意圖。 第5圖為第4圖之電子產品產生包含第一計數值與第二計數值之封包的示意圖。 第6圖為第4圖之電子裝置產生第三計數值與第四計數值,並據以產生輸出訊號的示意圖。 第7圖為根據本發明另一實施例之電子產品與電子裝置的示意圖。 第8圖為電子產品產生第一計數值、第二計數值第三計數值及第四計數值的示意圖。 第9圖為電子裝置產生輸出訊號的示意圖。FIG. 1 is a schematic diagram of an electronic product and an electronic device according to an embodiment of the invention. Figure 2 is a schematic diagram of an electronic product generating a packet containing a first count value and a second count value. FIG. 3 is a schematic diagram of the electronic device generating the third count value and the fourth count value, and then generating an output signal accordingly. FIG. 4 is a schematic diagram of an electronic product and an electronic device according to another embodiment of the invention. FIG. 5 is a schematic diagram of the electronic product in FIG. 4 generating a packet containing the first count value and the second count value. FIG. 6 is a schematic diagram of the electronic device in FIG. 4 generating the third count value and the fourth count value, and then generating an output signal accordingly. FIG. 7 is a schematic diagram of an electronic product and an electronic device according to another embodiment of the invention. Figure 8 is a schematic diagram of the electronic product generating the first count value, the second count value, the third count value, and the fourth count value. Figure 9 is a schematic diagram of the output signal generated by the electronic device.
110:電子產品110: electronic products
112:無線通訊模組112: Wireless communication module
114:偵測電路114: detection circuit
116:計數器116: counter
120:電子裝置120: electronic device
122:無線通訊模組122: wireless communication module
124:處理電路124: Processing circuit
126:計數器126: Counter
CLK1,CLK2:時脈訊號CLK1, CLK2: clock signal
CV1,CV2:計數值CV1, CV2: count value
Din:原始訊號Din: Original signal
Dres:偵測結果Dres: detection result
Dout:輸出訊號Dout: output signal
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/180,887 US11146273B2 (en) | 2020-02-25 | 2021-02-22 | Electronic device and electronic product |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US202062981037P | 2020-02-25 | 2020-02-25 | |
US62/981,037 | 2020-02-25 |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI736497B TWI736497B (en) | 2021-08-11 |
TW202133591A true TW202133591A (en) | 2021-09-01 |
Family
ID=77569574
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW110100536A TWI736497B (en) | 2020-02-25 | 2021-01-07 | Electronic device and electronic product |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113376454A (en) |
TW (1) | TWI736497B (en) |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5133064A (en) * | 1987-04-27 | 1992-07-21 | Hitachi, Ltd. | Data processing system generating clock signal from an input clock, phase locked to the input clock and used for clocking logic devices |
JP3039441B2 (en) * | 1997-04-28 | 2000-05-08 | 日本電気株式会社 | Synchronous edge detection method between different clocks and synchronous edge detection method between different clocks |
JP3506613B2 (en) * | 1998-09-21 | 2004-03-15 | 株式会社ミツトヨ | Origin detection method |
JP3501048B2 (en) * | 1999-11-09 | 2004-02-23 | 株式会社デンソー | Chattering generator |
JP2002026884A (en) * | 2000-07-10 | 2002-01-25 | Hitachi Ltd | Communication method and communication apparatus |
US7058144B2 (en) * | 2001-08-07 | 2006-06-06 | Conexant, Inc. | Intelligent control system and method for compensation application in a wireless communications system |
US7719928B2 (en) * | 2006-06-08 | 2010-05-18 | Seiko Epson Corporation | Radio watch |
US8583067B2 (en) * | 2008-09-24 | 2013-11-12 | Honeywell International Inc. | Apparatus and method for improved wireless communication reliability and performance in process control systems |
TWI510029B (en) * | 2014-06-13 | 2015-11-21 | Realtek Semiconductor Corp | Wireless communication device and method |
JP6623683B2 (en) * | 2015-10-28 | 2019-12-25 | 住友電気工業株式会社 | Signal processing device and communication device |
-
2021
- 2021-01-07 TW TW110100536A patent/TWI736497B/en active
- 2021-01-18 CN CN202110062306.XA patent/CN113376454A/en active Pending
Also Published As
Publication number | Publication date |
---|---|
CN113376454A (en) | 2021-09-10 |
TWI736497B (en) | 2021-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7246274B2 (en) | Method and apparatus for estimating random jitter (RJ) and deterministic jitter (DJ) from bit error rate (BER) | |
US20070147265A1 (en) | Correcting time synchronization inaccuracy caused by internal asymmetric delays in a device | |
KR101369963B1 (en) | System and method for testing integrated circuit modules comprising a plurality of integrated circuit devices | |
TWI442241B (en) | Data Synchronization System and Method for Multi - measure Instrument | |
JP2013242912A (en) | Usb based synchronization and timing system | |
WO2013181690A1 (en) | Synchronisation of a system of distributed computers | |
CN110460505B (en) | Parallel bus time sequence calibration method and device and receiving end equipment | |
US11146273B2 (en) | Electronic device and electronic product | |
US7945404B2 (en) | Clock jitter measurement circuit and integrated circuit having the same | |
US20130232372A1 (en) | Integrated circuit, voltage value acquisition method, and transmission and reception system | |
CN101908012A (en) | Clock signal testing device and testing method thereof | |
CN101951300A (en) | Method for realizing accurate time tick of Ethernet | |
TWI736497B (en) | Electronic device and electronic product | |
US6876938B2 (en) | Method to provide a calibrated path for multi-signal cables in testing of integrated circuits | |
TWI635717B (en) | System and method for data packet transceiver testing after signal calibration and power settling to minimize test time | |
US20110016232A1 (en) | Time stamping apparatus and method for network timing synchronization | |
CN101566526B (en) | Three-Line pendulum torsional pendulum period meter capable of measuring the engine moment inertia | |
CN109361567B (en) | Method and device for testing UART (universal asynchronous receiver/transmitter) communication compatibility of batch products | |
US11112456B2 (en) | Signal skew measurement method, apparatus, medium, and electronic device | |
Linhares et al. | One-millisecond low-cost synchronization of wireless sensor network | |
TWI771706B (en) | Signal capture system and signal capture method | |
JP2018063472A (en) | Manufacturing inspection device for fire sensor, installation site inspection device for fire sensor, and data transmission method for fire sensor | |
JP2559237Y2 (en) | Serial data sampling signal generator | |
JPH04178047A (en) | Skew compensation system | |
JPH01297924A (en) | Data transmitter |