200912758 九、發明說明: 【發明所屬之技術領域】 可生;高關===和裝置,尤指—種 【先前技術】 動終存儲功能。例如,移 儲空間。 侧如❼相機也可以通過存儲卡擴展存 =商在存儲卡完成硬體生產和組 進订量產程式才能投入市場。 傻還而要對存儲卡 示,g技射的對存儲卡進行量產的方法流程如第-圖所 壞塊的私有指令^料用里產機’向存儲卡發出掃描存儲卡中 步驟102 .將掃描到的壞塊資訊 通過:=入存健卡"Iash的隱 =域 訊、介面類型資=關#訊_片規格、物理參數' 配置資 葙可見,現有技術的量產方法中,由於不同製造 ,生產的存儲卡中晶片_、採用的指令 ,广 寫入壞塊資訊和相關參數到存儲卡中,必 產機不^。私有指令所需要的量 右的私古扣八$商對存儲卡進行量產時,根據其特 是複雜可:me,車列⑽a)’或者 =的者是專門設計的中央處理器_。這些 指令對應的專用於是,需要採用與私有 屋機來執仃34—方法。這樣,不僅沒有統一 200912758 ίί^ίί差’而且由於專用量產機價格高昂 κΐ是狀騎耻述射针讀从及製造上的諸 2^究=精神與料求精之目的,積極不: 明。 ^ 功之努力與试驗’終於開發設計出本發 【發明内容】 服現逆裝置-克 主要係树明提供-種_柏量產方法 卡控====行·姻取到的存儲 儲 入該控 掃描碼’通過普通齡的方式發送 性記憶趙進行壞塊^ =到主控晶片’主控晶肢非易失 ΖίίΐΞί資訊與相關資訊寫入存儲卡中。 的方ί對存技術f案可見’本發縣過普通指令 判斷存儲卡訊包 -ί^Γ4Τφ]Β3Β;^ 控晶片可崎非Uff卡的喊的私有指令縣控晶片,主 塊資訊與蝴資H j隨進行壞麟描’並將掃描到的壞 用普通讀卡器即卡中,從而完成存儲卡的量產。利 只%上述過程,因此,本發明通用性強,成 200912758 本低。 【實施方式】 對存s isn,:的量產方法,通過普通指令的方式 儲卡的_,二、=5=1的存儲卡控制晶片資訊包判斷存 儲卡類型普通指令的方式發送私有指令,以將與存 控制晶片中^^片對應的配置檔和外部代碼寫入該 與:行並將掃描到的壞塊;訊 為快閃_ 可以 片規格、物理參數、紀罟眘邙入 環尾貝訊及包括曰曰 該控=;r藏區域中的資靖 儲卡作還存 其型號適配的讀卡器,而該讀卡^適用於與 的產品。這樣,由於讀卡写在市/由从、3疋< 廠豕任一品牌 如果能顧針輯存儲卡實‘產,廉, 用性差的朗,並大大降低量產軸本將θ克服财技術中通 為了使本技術領_人員更好地轉本發 δ附圖和實施方式對本發明作進_步的詳細^方案下面, 示,s圖示出了本發明量產方法實施例的流程圖,如圖所 步驟謝:通過普通指令的方式對存儲卡進行讀取,由讀 200912758 作都是普通指令。該步驟中,器ΐ,卡進行的操 存儲卡進行讀取。 r 了以通過發达普通指令的方式對 儲卡Si:令ίί:中類包=,結果是存 ,結果不是存針㈣目=則返回的 多次讀取時,而該多次讀取並 卡進行單次或 =數時,存儲卡返回的是讀 次讀取的内容都是相同的。 作储的内谷。而且,每 超過進行讀取的次數達到或 是與讀取次數未達到存儲卡中預設 讀取、=得===令與射_舰,可以通過 式將的方 碼寫入該控制⑼中。 aa㈣應的配錄和外部代 區在i=r該步料赠料指令封«祕儲卡中一個磁 -存儲谷1大顿㈣包’㈣令對存儲切行操作4的最 200912758 磁區,也就是說普通指令資料包的特 儲卡中二容量:這樣:將私有指恤成存 像普通指令-樣對在傲^大小,料包後’该私有指令就可以 的方式對存错卡進;ί-;^進行操作’即私有指令通過普通指令 量一般為512>(立元ϋ直例如,現有的存儲卡一個磁區的容 組大小的資料包_ 乂裏’可以將私有指令封裝為512位元 進行操作。 私有齡可叫過普通齡對存儲卡 是普通該資料包開頭中的資ικ標明該指令不 執行,包含有鷄控制晶片 對應的配置檔,在㈣存^卡類型相適應的控制晶片 以根據該配置稽進行广、中,驅動控制晶片執行操作時,可 面提至ΐ的卜』3疋制晶片可以執行操作的指令。根據前 關參據配置槽中驅動控制晶片執行操作的相 控制晶片°中包卡進行操作。該 的,但是tut外部代碼是與存財類型相適應 能針對its—系列存儲卡類型的通用性,可 的效率 r、J控θθ片類型時,驅動主控晶片進行操作 =ίί摔 是很高:動ϊ 订細作具有#父局的效率’步驟302之後還可以包括下 200912758 面步驟401〜4〇2 : 性記該配置檔和外部代瑪返回非易失 參數的置;,3的根據該通用配置檔中的 模式。 馬返回非易失性記憶體的標識和連接 發送接模式 片嚴袼對應二 式,根據該標識^的標識和連接模 格對應的配置檔和相適應的控制晶片嚴 現。寫入的指令仍是由發送私有;;心 令格:步中的指 中執灯指令時可以得顺高的效率。、目此在後續步驟 的方,_普通指令 片對非易失性 4子體進==有指令到主控晶二“ 主控二步驟::存:步卡驟相中 200912758 的’通過發送私有指令對存儲卡進行壞塊掃描包括以 料存儲^為壞塊。卡進订擦除細作’判斷沒有成功擦除的資 如果存儲卡中某一位址的資料在 行擦除操作可以成功擦除該位址的資常f ’那麼’執 :的資料存儲塊。因此,利用該 資料方七取=::以==址中讀取 料存儲塊為壞塊。 ㈣不_ ’ _該位址的資 -資 s存 某一位址的資料存儲塊是壞塊,寫人的資料2= 位=進行讀取時,讀取到的資料與寫入= 疋不^的。因此’利用該性質可以判斷存儲卡中 =0 乂將掃描到的壞塊資訊與相關資訊寫入存儲卡中。 的隱i 口’疋到的壞髓訊與相職訊寫人存儲卡中 别次^關ΐ訊包括晶片規格、物理參數、配置資訊、介面類 义負机專’與現有技術中的操作類似。 ^上述實施例可見,該方法實施例由於發送私有指令,並 Ϊ料齡时賴存針進行讀取,通過讀取 制曰曰^對應的配置檔寫入存儲卡中,進一步的,可以完成對疒 2壞塊,掃描,並將掃描到的壞塊資訊與相關資訊寫人存‘ 中的隱藏區域,從而完成存儲卡的量產。而利用普接 即可實施上述過程,因此,該方法通用性強,成本低。喝° 200912758 該步驟可以包括: 寫人生的壞塊表 到存ίΐ=ί?ίΓ制晶片正常使用時所需的資料寫入 存儲ΐί 包括將存儲卡安全認證相關的資料寫入到 -&女王涊證貧料空間中。該安全認證資& 卡,即非易失性記憶體的隱藏區域中。 門位於存儲 等。還可以將包括在存儲卡料龍域巾“檔系統資料等 叙古社ί操作狀態。並且,在量產過程中,存儲卡料娜/ ::以態。為了檢測存儲卡是否意外的退出持ί 後,採的方式完成對存儲卡的操作 的結果是片3 指令進行操作的位址,如果返回 =指因令=對:通,令二 狀態。 用^一點’可以檢測存儲卡是否處於私有指令 具體而言,可以包括以下兩種: 普通^令㈣的操作’則該私有指令通過 通指令讀取^有#八^控f晶片並進行操作後’如果採用普 貝取該私有▲令進行操作的位址,返回的結果是控制晶 12 200912758 片狀態資訊包,且該狀態資訊包中包括 _ 料的操作’删斷存儲卡處於私有㈣μ的私有彳"寫入資 儲卡控制晶片狀態資訊包之後,如果二丁呆乍^即5貝取凡存 令進行操作雜址,返_結果是以私有指 =私包=之前的私有指令寫 "由=;::二 行讀取,由讀取到的存儲卡控制曰%通&$方式對存儲卡進 型’ ^通過普通指令的方式發送;指^,的類 :产寫入的配置檔和外部代碼,通巧片 掃描存儲卡的壞塊的私有指令社的方式發送 3入存儲卡中,從而完成存儲 It 資 可實施上述過程,因此,本發騎m日通讀卡器即 以下介紹本發明裝置的第一實施例。本低。 第四圖示出了本發明裝置實施例的方 二種存儲卡的量產裝置,包括存針類;:_圖所示: 槽和外部代碼耷入罝开49 +奋丨斷早疋41,配置 44,其中代碼寫人早兀42壞塊掃描單以3,資訊寫入單^ f儲卡類型判斷單元41,用於 讀取,取到的存健卡控制晶片 配置槽和外部代碼寫人單以2,用於發送私有指令,該 13 200912758 笏 p:::二的 控曰曰1主控'a片對非易失性記憶體進行壞塊掃描; 寫入=^單元44,用於將掃描到的壞塊資訊與相關資訊 该壞塊掃描單元43包括寫入單元431,讀出單元432,瓌 塊判斷單元433,其中, 貝田早兀4以,壞 寫入Ϊί單元431,用於根據寫入的配置槽在存儲卡的位址中 5賣出單元432,用於從該位址中讀取資料; 壞^斷單it 433 ’用於當讀取到的資料與寫人的資料不 同時’判斷該位址的資料塊為壞塊。 以下介紹本發明裝置的第二實施例。 _第五®示出了本發明裝置第二實施例的方塊圖,如圖所 示: 該實施例中的存儲卡類型判斷單元4卜配置楷 碼寫入單το 42和資訊寫人單^ 44與第—實施例中的相同 塊掃描單^ 43包括擦除單元531,壞塊判斷單元犯2,其中 擦除單元531,用於根據寫入的配置槽對存儲卡進行捧除 操作; * 〃 壞塊判斷單元532,判斷沒有成功擦除的資料存儲塊為壞 法類 由以上裝置實施例實現存儲卡量產的方法與前述方 似,在此不再贅述。 由以上方法實施例可見,通過普通指令的方式對存儲卡進 行讀取,由讀取到的存儲卡控制晶片資訊包判斷存儲卡 型,並通過普通指令的方式發送私有指令,以將與存儲卡類型 200912758 才目適應的控制晶片對應的配置檔和外部代碼寫 中,根據寫入的配置檀和外部代碼,通過普通指令, 卡的壞塊的私有指令到主控晶片,主控;日片的=: t 行壞麟描,並將掃描到的壞塊f訊與相“ 儲卡中,從而完成存儲卡的量產。利用普通讀卡器即 可實靶上述過程,因此,本發明通用性強,成本低。 、曾,Γΐ通過實施例描繪了本發明,本領域普通技術人員知 二趨許多變形和變化而不脫離本發明的精#,希望所 【圖式dti這些變形和變化而不脫離本發明的精神。 第一圖為現有技術巾存儲卡量產方法的流程圖; 第一圖為現有技術巾存儲卡的組成方塊圖; 第三圖為本發明方法實施例的流程圖; 第四圖為本發明裝置第-實施例的方塊圖; 第五圖為本發明裝置第二實施例的方塊圖。 【主要元件符號說明】 101向存儲卡發出私有指令 1 0 2w^ttfLSA#n+t 3◦1判斷存儲卡類型 3 〇 2發送私有指令 進行壞塊掃描 41館卡類型判斷單元 4 2配置檔和外部代 4 3壞塊掃描單‘代馬寫入早二 432讀出單元 431寫入單元 4 3 3壞塊判斷單元 5 3 2壞塊判斷單元 5 31擦除單兀200912758 IX. Description of the invention: [Technical field to which the invention pertains] Can be born; high-off === and devices, especially ones. [Prior Art] End-of-life storage function. For example, move the space. The side camera can also be expanded by the memory card to complete the hardware production and group order production program on the memory card before it can be put on the market. Stupid also wants to show the memory card, the method of mass production of the memory card is as follows. The private instruction of the bad block of the first picture is used to send the scan memory card to the memory card. The scanned bad block information is passed through: =Into the deposit card"Iash's hidden=domain information, interface type resource=off# message_slice specification, physical parameter' configuration information is visible, in the prior art mass production method, Due to different manufacturing, the memory card produced in the memory card, the instructions used, the bad block information and related parameters are widely written into the memory card, and the production machine does not. The amount of private instruction required The right private deduction of the memory card for mass production, according to its special complex: me, train (10) a) ' or = is a specially designed central processing unit _. These instructions are specific to the need to use the private house to enforce the 34-method. In this way, not only is there no uniform 200912758 ίί^ίί' and because the price of the special mass production machine is high, it is the purpose of the singularity of the needle and the manufacturing. . ^ Efforts and trials of 'Efforts to finally develop and design this hair [invention content] Service now reverse device - gram main line tree provides - type _ cypress mass production method card control ==== line · marriage to the storage Into the control scan code 'transfer memory through the ordinary age of Zhao to carry out bad blocks ^ = to the main control chip 'master control crystal non-volatile Ζ ίίίίίίίίίίίίίίίίίίίίίίίίίίίίίίίίίίίί Fang ί 对 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 存 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本The capital H j is carried out with the bad narration and will scan the bad card reader, that is, the card, thereby completing the mass production of the memory card. The benefit is only the above process, therefore, the invention is highly versatile and is low in 200912758. [Embodiment] For the mass production method of storing s isn, :, the private instruction is sent by the memory card of the _, 2, = 5 = 1 memory card of the general instruction mode to control the chip information packet to determine the normal instruction of the memory card type, The configuration file and the external code corresponding to the slice in the memory control chip are written into the line: and the scanned bad block is sent; the message is flashed _ the slice specification, the physical parameter, and the 罟 罟 邙 邙 环Beixun and including the control =; in the Tibetan area of the Zijing storage card for its model-compatible card reader, and the card is suitable for the product. In this way, because the card is written in the city / from the 3 疋 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕 豕In order to make the technology better to transfer the present invention, the drawings and the embodiments of the present invention are described in detail below. s is a flow chart showing the embodiment of the mass production method of the present invention. Figure, as shown in the figure, Xie: The memory card is read by ordinary instructions, and all commands are read by 200912758. In this step, the memory card is read by the card. r to pass the developed common instructions to the memory card Si: order ίί: medium package =, the result is stored, the result is not the needle (four) mesh = then return multiple readings, and the multiple reads and When the card is single or = number, the memory card returns the same content read by the read. The inner valley of the reservoir. Moreover, each time the number of readings is exceeded or the number of readings does not reach the preset reading in the memory card, ================================================================ . Aa (four) should be the record and the external sub-area in the i=r step feed instruction seal «secret card in a magnetic-storage valley 1 big (four) package '(four) order to store the cut operation 4 of the most 200912758 magnetic area, That is to say, the two-capacity of the special instruction package of the general instruction package: this way: the private fingerprint is stored as a normal instruction - the pair is in the size of the proud, after the package, the private instruction can be used to deposit the error card. ; ί-; ^ operation - that is, the private instruction through the normal instruction amount is generally 512 > (in the case of the existing memory card, the magnetic packet size of the packet _ 乂 ' can encapsulate the private instruction as The 512-bit operation is performed. The private age can be called the normal age. The memory card is normal. The ι κ in the beginning of the data packet indicates that the instruction is not executed, and the configuration file corresponding to the chicken control chip is included, and the (4) memory card type is adapted. The control chip is exemplified according to the configuration, and when the drive control chip performs the operation, the instruction can be performed to the operation of the wafer. The control chip is executed according to the configuration of the front gate. Operating phase control wafer ° The card is operated. The butt external code is compatible with the type of deposit and can be used for the versatility of its-series memory card type. When the efficiency is r, J is controlled by the θθ slice type, the master control chip is driven to operate. Ίί falls very high: ϊ 细 具有 具有 # 父 父 父 父 父 ' ' ' ' 302 302 302 302 302 302 302 302 302 302 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 According to the mode in the general configuration file, the returning of the non-volatile memory of the horse and the connection of the transmission mode are strictly corresponding to the two types, according to the identification of the identification ^ and the configuration file and phase corresponding to the connection mode. The adaptive control chip is strictly implemented. The written command is still sent by the private;; the heart order: the finger in the step can achieve a high efficiency when the light command is executed. For the next step, the _ ordinary command piece For the non-volatile 4 sub-body == there is an instruction to the master crystal 2 "master two steps:: save: step card phase in 200912758" by sending a private instruction to the memory card for bad block scanning including material storage ^ is a bad block. Card binding erases 'Judge the data that has not been successfully erased. If the data of a certain address in the memory card can be erased in the row erase operation, the data storage block of the address can be successfully erased. Therefore, the data is used. Seven take =:: The material storage block is read as a bad block in the == address. (4) Not _ ' _ The resource of the address is stored in the data storage block of a certain address is a bad block, the data of the writer 2 = bit = when reading, the data read and write = 疋 not ^. So 'this property can be used to judge the memory card = 0 乂 will scan the bad block information and related information into the memory card The hidden i-mouth's bad news and the other words in the memory card, including the chip specifications, physical parameters, configuration information, interface type negative machine special 'with the operation in the prior art similar. The above embodiment can be seen that the method embodiment is configured to send a private instruction, and when the age of the data is read, the configuration file corresponding to the reading system is written into the memory card, and further, the method can be completed.疒 2 bad blocks, scan, and the scanned bad block information and related information are written in the hidden area of the ', to complete the mass production of the memory card. The above process can be implemented by using the general connection, and therefore, the method is versatile and low in cost. Drink ° 200912758 This step can include: writing a bad block of life to the memory ί ΐ ί Γ 晶片 晶片 晶片 晶片 晶片 晶片 晶片 晶片 晶片In the space of poor materials. The security certificate & card, which is in the hidden area of the non-volatile memory. The door is located in storage, etc. It can also be included in the storage card material, the file system information, etc., and the operating status of the shanghai community ί. And, in the mass production process, the memory card material Na / :: to state. In order to detect whether the memory card is unexpectedly exited ί After that, the result of the operation of the memory card is the address of the operation of the slice 3 instruction. If the return=refers to the command = pair: pass, the second state. Use ^ point to detect whether the memory card is private. Specifically, the instruction may include the following two types: "Operation of the normal ^ (4)", then the private instruction is read by the through command ^ There is #八^ control f chip and after the operation 'If the Pube takes the private ▲ order to operate The address returned, the result is to control the crystal 12 200912758 slice status information packet, and the status information package includes the operation of the material 'cut the memory card is private (four) μ private 彳" write the memory card to control the wafer status information After the package, if the two stagnation 即 ^ ie 5 取 凡 凡 凡 凡 凡 凡 凡 进行 , , , , _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Memory card control %通&$ method for memory card type '^ is sent by ordinary instruction; refers to ^, class: production file and external code, and the private code of the bad block scanning the memory card The method of transmitting the data into the memory card to complete the storage of the It can implement the above process. Therefore, the present embodiment of the present invention is described below. The present embodiment is low. The fourth figure shows the present. The mass production device of the two types of memory cards of the device embodiment of the invention includes a needle storage type;: _ picture shows: the slot and the external code are intrusive open 49 + 丨 丨 疋 , 41, configuration 44, where the code is written The early block 42 bad block scan is 3, the information is written into the single f f card type judging unit 41, for reading, the fetched card control chip configuration slot and the external code writer list are 2, for sending Private instruction, the 13 200912758 笏p:::2 control 1 master 'a chip for bad block scanning of non-volatile memory; write = ^ unit 44 for scanning bad block information And the related information, the bad block scanning unit 43 includes a writing unit 431, a reading unit 432, and a block determination. In the element 433, wherein the data is written to the unit 432 in the address of the memory card according to the written configuration slot, for reading data from the address; The bad one is 433' is used to judge that the data block of the address is a bad block when the read data is different from the written data. The second embodiment of the device of the present invention is described below. A block diagram of a second embodiment of the apparatus of the present invention is shown, as shown in the figure: the memory card type judging unit 4 in this embodiment is configured to write a code write unit τ 42 and an information writer unit 44 and the first embodiment. The same block scan unit 43 includes an erase unit 531, and the bad block judgment unit commits 2, wherein the erase unit 531 is configured to perform a pull operation on the memory card according to the written configuration slot; * 〃 bad block determination unit 532 The method for determining that the data storage block is not successfully erased is a bad method. The method for mass production of the memory card by the above device embodiment is similar to the foregoing, and will not be described herein. It can be seen from the above method embodiment that the memory card is read by a common instruction, the memory card is controlled by the read memory card to determine the memory card type, and the private instruction is sent by the ordinary instruction to be used with the memory card. Type 200912758 only adapts the control chip corresponding configuration file and external code write, according to the written configuration of the Tan and external code, through the ordinary instruction, the card's bad block of the private instruction to the master chip, the master; the film =: t bad line drawing, and scan the bad block f signal and phase "in the memory card, thus completing the mass production of the memory card. The ordinary process can be used to achieve the target process, therefore, the versatility of the present invention Strong, low cost. The present invention has been described by way of example, and those skilled in the art will appreciate that many variations and modifications are possible without departing from the essence of the present invention. The first figure is a flow chart of the mass production method of the prior art towel storage card; the first figure is a block diagram of the composition of the prior art towel memory card; The fourth embodiment is a block diagram of a second embodiment of the apparatus of the present invention; the fifth diagram is a block diagram of a second embodiment of the apparatus of the present invention. 0 2w^ttfLSA#n+t 3◦1 judgment memory card type 3 〇2 send private instruction for bad block scan 41 library card type judgment unit 4 2 configuration file and external generation 4 3 bad block scan single 'generation horse write early Two 432 readout unit 431 write unit 4 3 3 bad block judgment unit 5 3 2 bad block judgment unit 5 31 erase unit