TWI760673B - Electronic device - Google Patents
Electronic device Download PDFInfo
- Publication number
- TWI760673B TWI760673B TW108148311A TW108148311A TWI760673B TW I760673 B TWI760673 B TW I760673B TW 108148311 A TW108148311 A TW 108148311A TW 108148311 A TW108148311 A TW 108148311A TW I760673 B TWI760673 B TW I760673B
- Authority
- TW
- Taiwan
- Prior art keywords
- test
- electronic device
- signal
- data
- flash memory
- 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
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Tests Of Electronic Circuits (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
Abstract
Description
本發明是有關於一種電子裝置,且特別是有關於一種進入測試模式的電子裝置。The present invention relates to an electronic device, and more particularly, to an electronic device entering a test mode.
在過去,電子裝置的測試模式是由輸入輸出介面(例如通用型之輸入輸出(GPIO))輸入特定的資料且判斷所輸入的資料是否為進入金鑰(Entry Key)來判斷是否進入測試模式。然而,為了避免客戶使用輸入輸出介面時誤入測試模式進而影響晶片的行為,進入金鑰會被設計成複雜度高、位元數多且不容易隨機進入的形式。但是,這樣的操作模式同時提升了量測人員進入測試模式的困難度。此外,操作人員進入測試模式後必須將重置接腳的電壓狀態維持在重置狀態下,才能使處理器(例如中央處理單元(CPU))不參與,進而能夠使用測試模式進行量測。因此,如何使測試模式可以更簡易的進入但不會被使用者誤入則成為設計電子裝置的一個重點。In the past, the test mode of an electronic device is to input specific data through an input and output interface (eg, a general-purpose input output (GPIO)) and determine whether the input data is an entry key (Entry Key) to determine whether to enter the test mode. However, in order to prevent customers from mistakenly entering the test mode when using the I/O interface and thus affecting the behavior of the chip, the access key is designed in a form of high complexity, large number of bits, and not easy to enter randomly. However, such an operation mode also increases the difficulty for the measurement personnel to enter the test mode. In addition, the operator must maintain the voltage state of the reset pin in the reset state after entering the test mode, so that the processor (such as the central processing unit (CPU)) is not involved, and the test mode can be used for measurement. Therefore, how to make the test mode easier to enter without being mistakenly entered by the user has become a key point in designing an electronic device.
本發明提供一種電子裝置,可以提高電子裝置進行測試的能力,且可以縮短測試的時間及成本。The present invention provides an electronic device, which can improve the testing capability of the electronic device and shorten the testing time and cost.
本發明的電子裝置,包括多個週邊元件、快閃記憶體及測試模式電路。快閃記憶體提供多個測試參考資料。測試模式電路反應於測試進入信號將基於測試參考資料的多個測試資料分別提供至週邊元件,以進行週邊元件的測試。The electronic device of the present invention includes a plurality of peripheral components, a flash memory and a test mode circuit. Flash memory provides multiple test references. The test mode circuit provides a plurality of test data based on the test reference data to the peripheral devices respectively in response to the test entry signal, so as to test the peripheral devices.
基於上述,本發明實施例的電子狀態中,將透過快閃記憶體提供的資料作為測試模式電路進行測試所參考的測試參考資料,而不需從電子裝置輸入測試相關資料,因此在進入測試模式時可省略輸入接腳而把大部份的(或全部)的接腳用於輸出資料(或測試結果)。藉此,可以提高電子裝置進行測試的能力,且可以縮短測試的時間及成本。Based on the above, in the electronic state of the embodiment of the present invention, the data provided through the flash memory is used as the test reference data for the test mode circuit to be tested, and it is not necessary to input the test related data from the electronic device. Therefore, when entering the test mode You can omit the input pins and use most (or all) of the pins for output data (or test results). In this way, the testing capability of the electronic device can be improved, and the testing time and cost can be shortened.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and easy to understand, the following embodiments are given and described in detail with the accompanying drawings as follows.
圖1為依據本發明一實施例的電子裝置的系統示意圖。請參照圖,在本實施例中,電子裝置100包括電源電路110、快閃記憶體120、處理器130、測試模式電路140及週邊元件150、160,其中週邊元件150、160至少包括壓控振盪器、穩壓器及參考電壓電路。快閃記憶體120耦接至電源電路110、處理器130、測試模式電路140及週邊元件150、160,電源電路110耦接至處理器130,並且測試模式電路140耦接週邊元件150、160。FIG. 1 is a system schematic diagram of an electronic device according to an embodiment of the present invention. Referring to the drawings, in this embodiment, the
在本實施例中,電子裝置100反應於電源啟動信號Pon而啟動,其中電源啟動信號Pon可以由電子裝置100的輸入介面(例如按鍵、觸控鍵、開關等)產生。進一步來說,電源電路110反應於電源啟動信號Pon至少會提供系統電壓Vdd至快閃記憶體120,並且快閃記憶體120反應於接收系統電壓Vdd啟動初始化程序。In this embodiment, the
在初始化期間中,電源電路110會控制處理器130的重置接腳處於重置狀態,例如電源電路110可提供為邏輯低準位或邏輯準位“0”的重置信號HRESETn至處理器130的重置接腳。During the initialization period, the
在初始化程序中,快閃記憶體120依序提供多個初始化參數DPc、DP1、DP2、DPT至處理器130、週邊元件150、160及測試模式電路140,以依序設定處理器130、週邊元件150、160及測試模式電路140的操作模式及操作狀態。In the initialization process, the
在初始化程序之後,亦即初始化期間之後,電子裝置100反應於是否接收到(或產生)測試進入信號S_Test而決定是操作於測試模式或使用者模式,其中測試進入信號S_Test可以透過輸入介面(例如接腳)自電子裝置100的外部輸入或者由電子裝置100自行產生。After the initialization process, that is, after the initialization period, the
並且,在初始化程序之後,快閃記憶體120可以依序提供多個資料Data至處理器130及測試模式電路140。當電子裝置100接收到(或產生)測試進入信號S_Test時,測試模式電路140反應於測試進入信號S_Test而被啟用,並且電源電路110會反應於測試進入信號S_Test使處理器130的重置接腳維持於重置狀態,亦即重置信號HRESETn維持於邏輯低準位或邏輯準位“0”,使得處理器130保持於不能運作的狀態。Moreover, after the initialization process, the
此時,快閃記憶體120的資料會作為測試參考資料DTS提供至處理器130及測試模式電路140,但處理器130不會反應於測試參考資料DTS,而測試模式電路140會反應於測試進入信號S_Test將基於測試參考資料DTS的多個測試資料D_Test1、D_Test2(例如類比電路的輸入控制信號)分別提供至週邊元件150、160,以進行週邊元件150、160的測試。At this time, the data of the
當電子裝置100未接收到(或未產生)測試進入信號S_Test時,測試模式電路140反應於未接收到測試進入信號S_Test而被禁用,並且電源電路110會反應於未接收到測試進入信號S_Test使處理器130的重置接腳從重置狀態中釋放,亦即重置信號HRESETn會從邏輯低準位或邏輯準位“0”改變到邏輯高準位或邏輯準位“0”,使得處理器130進入可以運作的狀態。When the
接著,電子裝置100會回到開機流程,以恢復所有元件(例如處理器130、週邊元件150、160)的電力供應。在完成開機流程後,會進入使用者模式,此時處理器130可以自快閃記憶體120存取資料Data,以執行由使用者寫入快閃記憶體120的應用程式。Next, the
依據上述,在本發明實施例中,透過快閃記憶體120提供的資料作為測試模式電路140進行測試所參考的測試參考資料DTS,而不需從電子裝置100輸入測試相關資料,因此在進入測試模式時可省略輸入接腳而把大部份的(或全部)的接腳用於輸出資料(或測試結果)。藉此,可以提高電子裝置100進行測試的能力,且可以縮短測試的時間及成本。According to the above, in the embodiment of the present invention, the data provided by the
在本發明實施例中,測試資料D_Test1、D_Test2可以分別為對應的測試參考資料DTS的第一部份資料。並且,這些測試參考資料DTS的第二部份資料可用以指示各這些測試資料D_Test1、D_Test2傳送至對應的週邊元件150、160,亦即測試參考資料DTS的第二部份資料表示電子裝置100的測試項目,其中第二部份資料不同於第一部份資料。In the embodiment of the present invention, the test data D_Test1 and D_Test2 may be the first part data of the corresponding test reference data DTS, respectively. In addition, the data of the second part of the test reference data DTS can be used to instruct each of the test data D_Test1 and D_Test2 to be transmitted to the corresponding
在本發明實施例中,快閃記憶體120中儲存測試參考資料DTS的測試儲存區域Mtest是與使用者共用的,亦即測試儲存區域Mtest不是系統專用的區域,而是使用者可以看到及使用的區域。因此,在週邊元件150、160的測試完成前,測試儲存區域Mtest可以儲存測試相關資料(亦即測試參考資料DTS),並且在週邊元件150、160的測試完成後,抹除測試儲存區域Mtest,以避免影響使用者的可用空間。In the embodiment of the present invention, the test storage area Mtest storing the test reference data DTS in the
在本發明實施例中,可在電子裝置100中配置控制電路(未繪示)來控制快閃記憶體120輸出初始化參數DPc、DP1、DP2、DPT、以及測試參考資料DTS的時序,亦即控制電路(未繪示)可依序提供初始化參數DPc、DP1、DP2、DPT、以及測試參考資料DTS所對應的位址至控制快閃記憶體120。換言之,控制電路(未繪示)可反應於系統電壓Vdd提供初始化參數DPc、DP1、DP2、DPT、以及測試參考資料DTS所對應的位址。在本發明實施例中,控制電路(未繪示)可配置快閃記憶體120中。在本發明實施例中,控制電路(未繪示)可反應於系統電壓Vdd而啟用,並且可反應測試進入信號S_Test而禁用。In the embodiment of the present invention, a control circuit (not shown) can be configured in the
圖2為依據本發明另一實施例的電子裝置的系統示意圖。請參照圖1及圖2,其中電子裝置200主要是繪示與電子裝置100的不同之處,換言之,電子裝置200更包括栓鎖電路210及多工器230。栓鎖電路210耦接於快閃記憶體120、測試模式電路140及處理器130之間,以反應於接收栓鎖信號S_LAT而將測試參考資料DTS的其中之一提供至測試模式電路140及處理器130,亦即反應於栓鎖信號S_LAT逐筆將多個測試參考資料DTS傳送至測試模式電路140及處理器130。FIG. 2 is a system schematic diagram of an electronic device according to another embodiment of the present invention. Please refer to FIG. 1 and FIG. 2 , wherein the
多工器230具有接收外部信號S_Ext的第一輸入端、接收內部時脈信號Clk_I的第二輸入端、接收測試進入信號S_Test的控制端及提供栓鎖信號S_LAT的輸出端,其中內部時脈信號Clk_I可以由電子裝置100內部的時脈產生器或振盪器所產生,並且外部信號S_Ext是透過電子裝置200的接腳從外部輸入的。The
在本發明的實施例中,當多工器230的控制端接收測試進入信號S_Test時,多工器230可以提供外部信號S_Ext作為栓鎖信號S_LAT,此時測試者可以透過外部信號S_Ext控制電子裝置200進行測試的速度(或節奏);當多工器230的控制端未接收測試進入信號S_Test時,多工器230可以提供內部時脈信號Clk_I作為栓鎖信號S_LAT。In the embodiment of the present invention, when the control terminal of the
測試模式電路140更耦接至快閃記憶體120,並且測試模式電路140將測試參考資料DTS的第三部份資料D_PAT3回傳至快閃記憶體120,以指示下一個讀取的測試參考資料DTS的位址,其中第三部份資料D_PAT3不同於測試參考資料DTS的第一部份資料及第二部份資料。藉此,當電子裝置200進入測試模式時,電子裝置200會自動進行測試的動作。The
綜上所述,本發明實施例的電子狀態中,將透過快閃記憶體提供的資料作為測試模式電路進行測試所參考的測試參考資料,而不需從電子裝置輸入測試相關資料,因此在進入測試模式時可省略輸入接腳而把大部份的(或全部)的接腳用於輸出資料(或測試結果)。藉此,可以提高電子裝置進行測試的能力,且可以縮短測試的時間及成本。To sum up, in the electronic state of the embodiment of the present invention, the data provided by the flash memory is used as the test reference data for the test mode circuit to be tested, and there is no need to input the test related data from the electronic device, so when entering the In test mode, the input pins can be omitted and most (or all) of the pins can be used for output data (or test results). In this way, the testing capability of the electronic device can be improved, and the testing time and cost can be shortened.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed above by the embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, The protection scope of the present invention shall be determined by the scope of the appended patent application.
100、200:電子裝置
110:電源電路
120:快閃記憶體
130:處理器
140、220:測試模式電路
150、160:週邊元件
210:栓鎖電路
230:多工器
Clk_I:內部時脈信號
D_PAT3:第三部份資料
D_Test1、D_Test2:測試資料
Data:資料
DPc、DP1、DP2、DPT:初始化參數
DTS:測試參考資料
HRESETn:重置信號
Mtest:測試儲存區域
Pon:電源啟動信號
S_Ext:外部信號
S_LAT:栓鎖信號
S_Test:測試進入信號
Vdd:系統電壓100, 200: Electronic devices
110: Power circuit
120: flash memory
130:
圖1為依據本發明一實施例的電子裝置的系統示意圖。 圖2為依據本發明另一實施例的電子裝置的系統示意圖。FIG. 1 is a system schematic diagram of an electronic device according to an embodiment of the present invention. FIG. 2 is a system schematic diagram of an electronic device according to another embodiment of the present invention.
100:電子裝置100: Electronics
110:電源電路110: Power circuit
120:快閃記憶體120: flash memory
130:處理器130: Processor
140:測試模式電路140: Test Mode Circuit
150、160:週邊元件150, 160: Peripheral components
D_Test1、D_Test2:測試資料D_Test1, D_Test2: Test data
Data:資料Data: data
DPc、DP1、DP2、DPT:初始化參數DPc, DP1, DP2, DPT: initialization parameters
DTS:測試參考資料DTS: Test References
HRESETn:重置信號HRESETn: reset signal
Mtest:測試儲存區域Mtest: Test storage area
Pon:電源啟動信號Pon: power on signal
S_Test:測試進入信號S_Test: Test entry signal
Vdd:系統電壓Vdd: system voltage
Claims (8)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108148311A TWI760673B (en) | 2019-12-30 | 2019-12-30 | Electronic device |
CN202011618976.7A CN113125876A (en) | 2019-12-30 | 2020-12-30 | Electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108148311A TWI760673B (en) | 2019-12-30 | 2019-12-30 | Electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202125523A TW202125523A (en) | 2021-07-01 |
TWI760673B true TWI760673B (en) | 2022-04-11 |
Family
ID=76772247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW108148311A TWI760673B (en) | 2019-12-30 | 2019-12-30 | Electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113125876A (en) |
TW (1) | TWI760673B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007058659A (en) * | 2005-08-25 | 2007-03-08 | Yazaki Corp | Method for testing hardware of on-vehicle device and method for writing software for product |
TW200923641A (en) * | 2007-11-28 | 2009-06-01 | Universal Scient Ind Co Ltd | Debug device of embedded system and method thereof |
US9218491B2 (en) * | 2010-04-13 | 2015-12-22 | Hewlett-Packard Development Company, L.P. | Systems and methods for providing security in an electronic device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2810342B2 (en) * | 1995-12-11 | 1998-10-15 | アジアエレクトロニクス株式会社 | IC test equipment |
JP3028090B2 (en) * | 1997-11-07 | 2000-04-04 | 盛群半導體股▲分▼有限公司 | Test mode detection device and detection method |
US6373784B2 (en) * | 2000-01-20 | 2002-04-16 | Nec Corporation | Semiconductor memory device |
US7873885B1 (en) * | 2004-01-20 | 2011-01-18 | Super Talent Electronics, Inc. | SSD test systems and methods |
CN101360015B (en) * | 2008-09-02 | 2010-09-29 | 北京星网锐捷网络技术有限公司 | Method, system and apparatus for test network appliance |
JP6496562B2 (en) * | 2014-04-11 | 2019-04-03 | ルネサスエレクトロニクス株式会社 | Semiconductor device, diagnostic test method and diagnostic test circuit |
CN109656799B (en) * | 2017-10-10 | 2022-06-07 | 北京京东尚科信息技术有限公司 | Test method and device |
-
2019
- 2019-12-30 TW TW108148311A patent/TWI760673B/en active
-
2020
- 2020-12-30 CN CN202011618976.7A patent/CN113125876A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007058659A (en) * | 2005-08-25 | 2007-03-08 | Yazaki Corp | Method for testing hardware of on-vehicle device and method for writing software for product |
TW200923641A (en) * | 2007-11-28 | 2009-06-01 | Universal Scient Ind Co Ltd | Debug device of embedded system and method thereof |
US9218491B2 (en) * | 2010-04-13 | 2015-12-22 | Hewlett-Packard Development Company, L.P. | Systems and methods for providing security in an electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN113125876A (en) | 2021-07-16 |
TW202125523A (en) | 2021-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6760865B2 (en) | Multiple level built-in self-test controller and method therefor | |
JP6557220B2 (en) | Programmable interface-based verification and debugging | |
US6347056B1 (en) | Recording of result information in a built-in self-test circuit and method therefor | |
JP7062409B2 (en) | Self-testable integrated circuit devices and methods for self-testing integrated circuits | |
US7872511B2 (en) | Circuit and method for initializing an internal logic unit in a semiconductor memory device | |
US9476937B2 (en) | Debug circuit for an integrated circuit | |
KR20080056186A (en) | Apparatus and method for automatically self-calibrating a duty cycle circuit for maximum chip performance | |
US6978322B2 (en) | Embedded controller for real-time backup of operation states of peripheral devices | |
JP2868710B2 (en) | Integrated circuit device and test method therefor | |
CN115344308A (en) | Safe starting device and method | |
JP2000011698A (en) | Semiconductor apparatus and method for monitoring internal signal of the same | |
JP2001027958A (en) | One chip microcomputer, its control method and ic card using the same | |
US20080163012A1 (en) | Apparatus for Configuring a USB PHY to Loopback Mode | |
US9595350B2 (en) | Hardware-based memory initialization | |
US9557787B2 (en) | Data processor and data processing system | |
TWI760673B (en) | Electronic device | |
KR100205847B1 (en) | Information processing apparatus with a mode setting circuit | |
US7617428B2 (en) | Circuits and associated methods for improved debug and test of an application integrated circuit | |
TWI736088B (en) | Electronic device and test mode enabling method thereof | |
KR102184726B1 (en) | Semiconductor device and semiconductor system with the same | |
US8006148B2 (en) | Test mode control circuit and method for using the same in semiconductor memory device | |
JP7135497B2 (en) | data processor | |
KR20180033767A (en) | Boot-up control circuit and semiconductor apparatus including the same | |
US8811108B2 (en) | Code coverage circuitry | |
KR100690995B1 (en) | Self test circuit of semiconductor memory |