201107988 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種電子設備,且特別是有關於一種 具週邊裝置之電子設備。 【先前技術】 最近幾年來,電子設備的發展可謂突飛猛進,其普及 率以驚人的速度逐年增加,順應此一電子化的時代潮流, • 各種電子裝置之間相互連接之使用情形越來越多。為了圓 滿地達成電子裝置之間的連結,必須採用標準化的介面 (interface),例如 RS-485。 此種標準化介面之採用的情形,亦發生於電子裝置與 其週邊裝置(輸入出裝置)的連接。週邊裝置在插設於電子 裝置(或稱為主機)後,將資料輸入主機,或者是接受來 自主機之資料。週邊裝置和主機之間使用電纜(cable)連 接。其中,除了必須考慮機械結構之相容性外,亦必須考 • 慮主機與週邊裝置之資料傳輸參數的一致性,後者即為一 般所稱之通訊協定。 在主機開機的程序中,需在作業系統啟動前,對插設 於主機之週邊裝置做初始化的動作,以使作業系統能夠對 這些週邊裝置進行資料的存取。因此,在用以連接主機與 週邊裝置之匯流排上,通常需增設數個識別接腳,使得主 機可透過識別接腳辨識所插設之週邊裝置。然而,增設識 別接腳需增加製造成本。此外,若欲使主機可識別較多種 類之週邊裝置,所需增設之識別接腳之數目越多。 201107988 【發明内容】 早#供此,本發明之一態樣是在提供一種具週邊裝置之電 得之代碼 之焉入治具根據自週邊震置之識別接腳所取 裝置接1,寫入對應之資訊至週邊裝置之記憶體。在週邊 邊获番主機時,主機根據存於記憶體中之資訊,驅動週 含一调^發明—實施例,—種具週邊裝置之電子設備包 憶體;1裝置以及-主機。週邊震置包含-匯流排、一記 i流排,識別電路以及至少一識別接腳。記憶體電性連接 .且存有週邊裝置之資訊。識別電路產生週邊裝置 i ί嫩t識別接腳電性連接識別電路且設置在匯流排旁。 、_;、週邊裝置之匯流排電性連接時,主機透過匯流 却,μ»讀體取得週邊裝置之資訊,並根據週邊裝置之資 sfl,驅動週邊裳置。201107988 VI. Description of the Invention: [Technical Field] The present invention relates to an electronic device, and more particularly to an electronic device having a peripheral device. [Prior Art] In recent years, the development of electronic devices has been advancing by leaps and bounds, and its popularity has increased at an alarming rate year by year. In line with this e-news trend, the use of various electronic devices is becoming more and more connected. In order to achieve a successful connection between electronic devices, a standardized interface such as RS-485 must be used. The use of such a standardized interface also occurs in the connection of the electronic device to its peripheral devices (input and output devices). After the peripheral device is inserted into the electronic device (or called the host), the data is input to the host or the data from the host is accepted. A cable connection is used between the peripheral device and the host computer. Among them, in addition to the compatibility of the mechanical structure must be considered, the consistency of the data transmission parameters between the host and the peripheral device must also be considered. The latter is generally referred to as the communication protocol. In the program in which the host is powered on, it is necessary to initialize the peripheral devices inserted in the host before the operating system is started, so that the operating system can access the data of the peripheral devices. Therefore, in the bus bar for connecting the host to the peripheral device, it is usually necessary to add a plurality of identification pins so that the host can identify the inserted peripheral device through the identification pin. However, adding identification pins requires increased manufacturing costs. In addition, if the host is to be able to identify a wider variety of peripheral devices, the number of additional identification pins required to be added is greater. 201107988 [Summary content] As a result of this, one aspect of the present invention is to provide a device with an electrical code of a peripheral device, and the device is connected to the device according to the identification pin from the peripheral shock. Corresponding information to the memory of the peripheral device. When the peripheral host is obtained, the host drives the peripheral device according to the information stored in the memory. The embodiment includes an electronic device package with peripheral devices; a device and a host. The peripheral set includes a bus bar, an i stream bar, an identification circuit, and at least one identification pin. The memory is electrically connected and there is information about peripheral devices. The identification circuit generates a peripheral device. i ί t identifies the pin electrical connection identification circuit and is disposed beside the bus bar. _;, when the peripheral device is connected to the bus, the host through the confluence, the μ» reading body obtains the information of the peripheral device, and drives the surrounding device according to the sfl of the peripheral device.
、據本發明另—實施例,-種週邊裝置包含-匯流 。己憶體、一識別電路以及至少一識別接腳。記憶體 生連接匯_。識別電路產生週邊裝置之代碼。識別接 =電性連接識別電路且設置於匯流排旁。其t,在一寫入 電性連接匯流排以及識別接腳時,寫入治具透過識別 接腳取得週邊裝置之代碼。接下來,寫人治具根據週邊裝 置之代碼’取得週邊裝置之資訊,並透過匯流排,將週邊 裝置之資讯寫入記憶體。在週邊裝置透過匯流排電性連接 一主機時,主機透過匯流排,自記憶體取得週邊裝置之資 訊,並根據週邊裝置之資訊,驅動週邊裝置。 、 201107988 依據本發明又一實施例,一種寫入治具包含一資料 庫、一取得模組以及一寫入模組。寫入治具係用以電性連 接一週邊裝置。其中,週邊裝置包含一識別電路、至少一 識別接腳、一匯流排以及一記憶體。識別電路電性連接識 別接腳,用以產生該週邊裝置之代碼。匯流排電性連接記 憶體。寫入治具之資料庫儲存數個最小存貨單位之資訊。 取得模組在電性連接週邊裝置之識別接腳時,透過識別接 腳取得週邊裝置之代碼。寫入模組電性連接資料庫以及取 得模組。在寫入模組電性連接週邊裝置之匯流排時,寫入 模組根據週邊裝置之代碼,自資料庫中之最小存貨單位之 資訊,取得週邊裝置之資訊。接下來,寫入模組透過匯流 排,將週邊裝置之資訊寫入週邊裝置之記憶體。 應用本發明具有下列優點。同一寫入治具可根據所連 接之週邊裝置的不同,而將不同之週邊裝置之資訊,寫入 週邊裝置之記憶體。如此一來,同一寫入治具可用於製造 多個不同之週邊裝置。此外,不需因應不同之週邊裝置, 備料多種燒錄不同資訊之同一記憶體。因此,在記憶體備 料時,僅需將記憶體依其硬體規格分類,而不需依記憶體 上燒錄之内容分類,因而降低分類所需之時間。由於主機 係透過匯流排自週邊裝置之記憶體,取得其相關資訊作為 識別之用。因此,不需在用以連接週邊裝置與主機的匯流 排增設接腳,專門作為傳送識別資訊之用,因而可節省製 造成本。另外,在週邊裝置所連接之裝置非寫入治具時, 將週邊裝置之記憶體設為防寫,可避免存於記憶體之週邊 裝置之資訊被寫入治具之外的裝置更改。 201107988 【實施方式】 請參照第1圖,其繪示依照本發明一實施例的一種具 週邊裝置之電子設備之功能方塊圖。在具週邊裝置之電子 設備中,寫入治具根據自週邊裝置之識別接腳所取得之代 碼,寫入對應之資訊至週邊裝置之記憶體。 具週邊裝置之電子設備100包含一週邊装置110以及 一寫入治具120。週邊裝置110包含一匯流排111、一記憶 • 體112、一識別電路113以及至少一識別接腳114。記憶體 112電性連接匯流排ill,且識別電路113電性連接識別接 腳114。識別接腳114設置於匯流排111旁。其中,可應用 至少一測點作為識別接腳114。此外,記憶體112可為快閃 記憶體(Flash Memory)、電子可抹除可程式化唯讀記憶體 (Electrically Erasable Programmable Read-only Memory > EEPROM)或其他種類之記憶體。 識別電路113產生週邊裝置110之代碼。其中,識別 # 電路U3可藉由高電平以及低電平之組合,產生週邊裝置 110之代碼。然而,在其他實施例中,識別電路113亦可藉 由其他方式產生產生週邊裝置110之代碼,並不限於本實 施例。 寫入治具120包含一資料庫121、一取得模組122以 及一寫入模組123。寫入模組123電性連接資料庫121以 及取得模組122。資料庫121儲存數個最小存貨單位(St〇ck Keeping Unit ’ SKU)之資訊。取得模組122在電性連接識 別接腳114時,透過識別接腳114取得週邊裝置ιι〇之代 201107988 =。。其中,在識別接腳114係為至少一測點時,取得模組 一I可包含至少一頂針125,用以頂在識別接腳〖Μ。如此 :,即可藉由頂針125連接,而使得取得模組122 連接識別接腳114。According to another embodiment of the invention, the peripheral device comprises - confluence. A memory, an identification circuit, and at least one identification pin. Memory connection _. The identification circuit generates code for the peripheral device. Identification connection = electrical connection identification circuit and set beside the bus bar. t, when writing the electrical connection bus and identifying the pin, the writing jig obtains the code of the peripheral device through the identification pin. Next, the writer jig obtains the information of the peripheral device according to the code of the peripheral device, and writes the information of the peripheral device into the memory through the bus bar. When the peripheral device is electrically connected to a host through the busbar, the host obtains the information of the peripheral device from the memory through the busbar, and drives the peripheral device according to the information of the peripheral device. According to still another embodiment of the present invention, a write jig includes a database, an acquisition module, and a write module. The writing fixture is used to electrically connect a peripheral device. The peripheral device includes an identification circuit, at least one identification pin, a bus bar, and a memory. The identification circuit is electrically connected to the identification pin to generate the code of the peripheral device. The busbar is electrically connected to the memory. A database of writing fixtures stores information on several minimum inventory units. When the module is electrically connected to the identification pin of the peripheral device, the code of the peripheral device is obtained through the identification pin. The write module is electrically connected to the database and the module is obtained. When the write module is electrically connected to the busbar of the peripheral device, the write module obtains information of the peripheral device based on the information of the peripheral device and the information of the smallest inventory unit in the database. Next, the write module transmits the information of the peripheral device to the memory of the peripheral device through the bus bar. The application of the present invention has the following advantages. The same writing jig can write information of different peripheral devices into the memory of the peripheral device according to the connected peripheral devices. In this way, the same writing jig can be used to manufacture a plurality of different peripheral devices. In addition, there is no need to prepare a variety of different memories for different information in response to different peripheral devices. Therefore, in the memory preparation, the memory only needs to be classified according to its hardware specifications, and does not need to be classified according to the contents of the burned memory, thereby reducing the time required for classification. Since the host computer uses the memory of the peripheral device through the bus bar, its related information is obtained for identification. Therefore, it is not necessary to add a pin to the busbar for connecting the peripheral device and the host, and it is specifically used for transmitting identification information, thereby saving the manufacturing cost. Further, when the device to which the peripheral device is connected is not written to the jig, the memory of the peripheral device is set to be write-protected, and the device stored in the peripheral device of the memory can be prevented from being changed by the device other than the jig. 201107988 [Embodiment] Please refer to FIG. 1 , which is a functional block diagram of an electronic device with peripheral devices according to an embodiment of the invention. In an electronic device having a peripheral device, the writing jig writes the corresponding information to the memory of the peripheral device based on the code obtained from the identification pin of the peripheral device. The electronic device 100 with peripheral devices includes a peripheral device 110 and a writing fixture 120. The peripheral device 110 includes a bus bar 111, a memory body 112, an identification circuit 113, and at least one identification pin 114. The memory 112 is electrically connected to the bus bar ill, and the identification circuit 113 is electrically connected to the identification pin 114. The identification pin 114 is disposed beside the bus bar 111. Wherein, at least one measurement point can be applied as the identification pin 114. In addition, the memory 112 can be a flash memory, an electrically erasable programmable read-only memory (EEPROM), or other types of memory. Identification circuit 113 generates code for peripheral device 110. The identification # circuit U3 can generate the code of the peripheral device 110 by a combination of a high level and a low level. However, in other embodiments, the identification circuit 113 may also generate code for generating the peripheral device 110 by other means, and is not limited to the embodiment. The write jig 120 includes a database 121, an acquisition module 122, and a write module 123. The write module 123 is electrically connected to the database 121 and the module 122. The database 121 stores information of a number of stock keeping units (SKUs). When the module 122 is electrically connected to the identification pin 114, the acquisition module 114 obtains the generation of the peripheral device through the identification pin 114. 201107988 =. . Wherein, when the identification pin 114 is at least one measuring point, the obtaining module 1 may include at least one thimble 125 for lie on the identification pin. Thus, the ejector pin 125 can be connected, so that the acquisition module 122 is connected to the identification pin 114.
.、’,入模組123在電性連接匯流排⑴時,根據週邊裝 之代碼,自資料庫121中之最小存貨單位之資訊, 取知週邊裝置110之資訊。接下來’寫人模組123透過匯 流排^將it邊裝£ 110之資訊寫入記憶冑112。如此一 來,同一寫入治具可用以製造不同最小存貨單元之週邊裝 、寫入模組123可包含一匯流排連接器126,用以連接 週邊裝置11〇之匯流排lu。其中,可將識別接腳114以及 頂125設置於特定位置,使得寫入治具12〇之匯流排連 接器I26連接週邊裝置Π0之匯流排111時,頂針125頂 觸到週邊裝置110之識別接腳114。如此一來,在將週邊裝 置110電性連接寫入治具12〇時,便不需分別將匯流排U1 • 以及識別接腳電性連接至寫入治具12〇。 此外,由於在寫入模組123寫入記憶體112之資訊錯 誤時’將導致週邊震置110無法被辨識,因而使得週邊裝 置no無法被驅動。因此,寫入模組123可包含一確認器 124’用以確認記憶體112中之週邊裝置11〇之資訊是否對 應識別電路113所產生之週邊裝置11〇之代碼。其中,確 §忍器124可藉由根據記憶體112中之週邊裝置11〇之資訊, 查詢資料庫121,來進行確認之步驟。 為了避免記憶體112中所儲存之週邊裝置11〇之資訊 201107988 遺失週邊裝置110可包含一判斷模組出以及一防寫模 = 116。判斷模、组115電性連接匯流排ιη以及識別接聊 4’用以觸是否有寫人治具12()電性連接匯流排⑴以 及識別接腳114。其中,判斷模組115可在有一電子裝置同 時電性連接匯流排U1以及識別接腳114肖,判定所連接 之電子裝置為寫入治具12〇。然而,在其他實施例中,判 斷模組115可藉由其他方式,判斷是否有寫入治具120電 性連,匯流排ill以及識別接腳114,並不限於本實施例。 •防寫模組116電性連接判斷模組115以及記憶體112。在沒 有寫t治具120電性連接匯流排111以及識別接腳114時, 防寫模組116將記憶體112設為防寫。如此一來,可避免 ,於把憶體112之週邊裝置11〇之資訊被寫入治具12〇之 外的裝置更改。 、明參照第2圖,其繪示依照本發明另—實施例的一種 ^週邊裝置之電子設備之功能方塊圖。具週邊裝置之電子 f備100包含一週邊袋置110以及-主a 130。在主機130 :、週邊裝置11G之匯流排lu電性連接時,主機透過 匯机排’自週邊農置11〇之記憶體⑴,取得週邊裝置 10之貝訊。接下來,主機13〇根據週邊裝置削之資訊, 驅動週邊裝置110。如此一來,週邊裝置ιι〇之匯流排川 更不需增設接腳,用以專Η作為傳送識別資訊之用,因而 可節省週邊裝置110之製造成本。 由上述本發明實施例可知,應用本發明具有下列優 同寫入冶具可根據所連接之週邊裝置的不同,而將 不同之週邊裝置之資訊’寫人週邊裝置之記憶體。 如此二 201107988 來’同一寫入治S可用於製造多個*同之週邊裝置。此外, 不需因應不同之週邊裝置,備料多種燒錄不同資訊之同一 S己憶體。因此’在記憶體備料時,僅需將記憶體依其硬體 規格分類,而不需依§己憶體上燒錄之内容分類,因而降低 分類所需之時間。由於主機係透過匯流排自週邊裝置之記 憶體’取得其相Μ資訊作為識別之用。目此,不需在用以 連接週邊裝置與主機的匯流排增設接腳,專門作為傳送識 別資訊之用,因而可節省製造成本。另外,在週邊裝置所 _ 連接之裝置非寫入治具時,將週邊裝置之記憶體設為防 寫,可避免存於§己憶體之週邊裝置之資訊被寫入治具之外 的裝置更改。 雖然本發明已以實施方式揭露如上,然其並非用以限 定本發明,任何熟習此技藝者,在不脫離本發明之精神和 範圍内,當可作各種之更動與潤飾,因此本發明之保護範 圍當視後附之申請專利範圍所界定者為準。 Φ 【圖式簡單說明】 為讓本發明之上述和其他目的、特徵、優點與實施例 能更明顯易懂,所附圖式之說明如下: 第1圖繪示依照本發明一實施例的一種具週邊裝置之 電子設備之功能方塊圖。 第2圖繪示依照本發明另一實施例的一種具週邊襞置 之電子設備之功能方塊圖。When the module 123 is electrically connected to the bus bar (1), the information of the peripheral device 110 is obtained from the information of the smallest inventory unit in the database 121 according to the code of the surrounding device. Next, the writer module 123 writes the information of the IT side to the memory 112 through the bus. In this way, the peripheral writing and writing module 123, which can be used to manufacture different minimum inventory units, can include a bus bar connector 126 for connecting the bus bars lu of the peripheral device 11〇. Wherein, the identification pin 114 and the top 125 can be disposed at a specific position, so that when the bus bar connector I26 of the writing jig 12 is connected to the bus bar 111 of the peripheral device ,0, the thimble 125 touches the identification of the peripheral device 110. Foot 114. In this way, when the peripheral device 110 is electrically connected to the writing fixture 12, it is not necessary to electrically connect the bus bar U1 and the identification pin to the writing jig 12A. In addition, when the information written in the memory 112 by the write module 123 is erroneous, the peripheral shake 110 will be unrecognizable, so that the peripheral device no cannot be driven. Therefore, the write module 123 can include a validator 124' for confirming whether the information of the peripheral device 11 in the memory 112 corresponds to the code of the peripheral device 11 generated by the identification circuit 113. The confirmation unit 124 can perform the step of confirming by querying the database 121 based on the information of the peripheral device 11 in the memory 112. In order to avoid the information of the peripheral device 11 stored in the memory 112, the lost peripheral device 110 may include a determination module and an anti-write mode = 116. The judging module, the group 115 electrically connected to the bus bar ιη, and the identification chatter 4' are used to touch whether there is a writer jig 12 () electrically connected to the bus bar (1) and the identification pin 114. The judging module 115 can electrically connect the bus bar U1 and the identification pin 114 to an electronic device, and determine that the connected electronic device is the writing jig 12〇. However, in other embodiments, the determination module 115 can determine whether there is a write fixture 120 electrically connected, the bus bar ill and the identification pin 114 by other means, and is not limited to the embodiment. The anti-write module 116 is electrically connected to the judging module 115 and the memory 112. When the t-clamp 120 is electrically connected to the bus bar 111 and the identification pin 114 is not written, the anti-write module 116 sets the memory 112 to be write-protected. In this way, it can be avoided that the information of the peripheral device 11 of the memory device 112 is changed to the device other than the fixture 12〇. Referring to FIG. 2, a functional block diagram of an electronic device of a peripheral device in accordance with another embodiment of the present invention is shown. The electronic device f with a peripheral device includes a peripheral pocket 110 and a main a 130. When the host 130: and the peripheral device 11G are electrically connected to each other, the host acquires the peripheral device 10 through the memory (1) of the peripheral farm. Next, the host computer 13 drives the peripheral device 110 based on the information of the peripheral device. In this way, the peripheral device ιι〇's bus is no need to add a pin for special purpose as the transmission of identification information, thereby saving the manufacturing cost of the peripheral device 110. It can be seen from the above embodiments of the present invention that the application of the present invention has the following advantages: the writing tool can write the information of different peripheral devices into the memory of the peripheral device according to the connected peripheral devices. So two 201107988 come to the same write S can be used to manufacture multiple * same peripheral devices. In addition, there is no need to prepare a variety of different S-reminisces for different information in response to different peripheral devices. Therefore, when the memory is prepared, it is only necessary to classify the memory according to its hardware specifications, and it is not necessary to classify the contents according to the contents of the burned recording, thereby reducing the time required for the classification. Since the host system obtains the relevant information from the memory device of the peripheral device through the bus bar as identification. Therefore, it is not necessary to add a pin to the bus bar for connecting the peripheral device and the host, and it is specifically used for transmitting the identification information, thereby saving manufacturing costs. In addition, when the device connected to the peripheral device is not written into the jig, the memory of the peripheral device is set to be write-proof, and the device in which the information of the peripheral device stored in the device is not written into the jig can be avoided. change. Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and the present invention can be modified and modified without departing from the spirit and scope of the present invention. The scope is subject to the definition of the scope of the patent application attached. BRIEF DESCRIPTION OF THE DRAWINGS The above and other objects, features, advantages and embodiments of the present invention will become more <RTIgt; Functional block diagram of an electronic device with peripheral devices. 2 is a functional block diagram of an electronic device with a peripheral device in accordance with another embodiment of the present invention.
201107988 【主要元件符號說明】 100 :具週邊裝置之電子設備120 110 :週邊裝置 121 111 :匯流排 122 112:記憶體 123 113:識別電路 124 114:識別接腳 125 115:判斷模組 126 116 :防寫模組 130 寫入治具 資料庫 取得模組 寫入模組 確認器 頂針 匯流排連接器 主機201107988 [Description of main component symbols] 100: Electronic device 12010 with peripheral devices: Peripheral device 121 111: Bus bar 122 112: Memory 123 113: Identification circuit 124 114: Identification pin 125 115: Judging module 126 116: Anti-write module 130 write jig database acquisition module write module confirmer thimble bus bar connector host