A7 A7 五 、發明說明( (一) 發明技術領域·· 衝編讀取及抗通道雜訊之快速適應差分舰 碼日士 ϋ士卜’尤指一種利用—調賴構來進行編碼,解 ι:σ聖縮音構之任意位置開始解碼,並且當壓縮音梢 後,音源仍可還原至一清晰程度。 ^於解^ (二) 發明技術背景: 按’科技的巨輪從不停歇,並峰_速度持續前進, 尤其是電子產業的發展更是所謂_日千里,最近五年之發展 更是超越以往數十年的成果,而電子產品幾乎都已經達聰 位化的目標,系統數位化除了比類比式更加穩定之外,並且 具有較為料設計之伽,不管於設計的職巾或是呈現之 結果的表現上,使用數位化的模式皆優於類比式系統,在傳 統處理語音信號的技射.,分細比歧職術及數位化處 理技術,類比式處理技術屬於較早之習用技術,在此不多加 以贅述,而僅就數位化處理模式加以說明。 習知的ADPCM之語音技術請參閱二專利案,一為中華民 國專利公報公告編鐃第--九二四三號之”ADPCM聲音產生 器”的發明專利,二為中華民國專利公報公告編號第四一〇三 二三號之”語音編碼的快速適應差分脈衝編碼調制方法,,之發 明專利,二專利案的解碼器所利用之估測器(Predict〇r)僅 利用單位延遲(Unit Delay)來實現,若有任何通道雜訊 (Noise)或隨機擷取,解碼後之音源訊號可能產生飄移現 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297 ^^一A7 A7 V. Description of the invention (1) Technical field of the invention ... Ready-to-read and anti-channel noise fast adaptation differential ship code Japanese Shishi Shibu 'especially a kind of use-tuning structure for coding, solution : σ sacred contraction begins to decode at any position, and after compressing the end of the sound, the sound source can still be restored to a clear level. ^ 于 解 ^ (二) Background of the invention: Press the 'technical wheel to never stop, and peak _Speed continues to progress, especially the development of the electronics industry is more so-called._ Qian Qianli, the development of the past five years is more than the achievements of the past decades, and almost all electronic products have reached the goal of smart, digital system in addition to In addition to being more stable by analogy, and with a more expected design, regardless of the performance of the design or the results presented, the digital mode is better than the analog system. The traditional technology of processing voice signals Shooting, ambiguity, and digital processing technology, analog processing technology is an older custom technology, so I won't go into details here, but only explain the digital processing mode. For the voice technology of ADPCM, please refer to two patent cases, one is the invention patent of "ADPCM sound generator" of the Republic of China Patent Gazette Announcement No. 9243, and the other is the Republic of China Patent Gazette Announcement No. 41. No. 32, No. 3, "Voice coding fast adaptation differential pulse code modulation method, the invention patent, the predictor used by the decoder of the second patent case (Predictor) only uses unit delay (Unit Delay) to achieve, If there is any channel noise or random capture, the decoded audio source signal may drift. This paper size applies the Chinese National Standard (CNS) A4 specification (210 X 297 ^^ 1)
φ Μ--------^--------- (請先閲讀背面之注意事項再填寫本頁) 556153 經濟部智慧財產局員工消費合作社印製 A7 五、發明說明(>) 象’更甚者為音源訊號產生發散現象而消失。另有還 CCITT G.726之適應差分脈衝編碼調制方法(瓣 格’其雖然對於抗通道雜訊及隨機存取之機制較佳,但盆雷 路過於複雜(包括加絲、歸肢乘_,相對使成 增加’而本發明乃僅利壯法賴移位器來完·機制,相 較之下本發明具有簡單電路及較低成本之優點,並且利用本 發明之技術,可使__ (Re晴nng Time)縮短,即可 大幅降低解壓縮之時間。 (三)發明簡要說明·· *為解決上述之問題,本發明人經過一長期的思索盘研 九’並經不斷地研發與試驗,遂得本發明以解決習用技術中 =^^_針,_峨軸(驗)或隨_ L解碼叙音職號可能產生飄移絲,更甚 音=號產生發散現象而消失,或者是針對前述問題而料 之歷縮電路,卻因太過於複雜而增加成本,本發明正是有 效解決問題的方法及機制。 瓦有 碼H月之主要目f,係在於利用—調制機構來進行編 缩立仏可由壓縮音播之任意位置開始解碼,並且當壓 縮曰擋在傳輸中受到-定程度之干 於解碼後,音源仍可還原至-清晰程度。不至於發政 利用ΓΓ日月之另"'目的’係在於提供―簡單之調制機構,僅 利用加法盗及位移器即可完成該機制 器,因此本發明具有簡單電路及較低成本之H。用職法 t 紙張尺度適用中 _^i^TNS)A4i(21〇 x 2ir—- (請先閱讀背面之注意事項再填寫本頁} Μ--------^---------^9!. 556153φ Μ -------- ^ --------- (Please read the notes on the back before filling out this page) 556153 Printed by the Consumers ’Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs A7 V. Invention Description ( >) The elephant 'is even worse for the divergence of the audio signal. In addition, CCITT G.726's adaptive differential pulse code modulation method (lobe grid's although it has better anti-channel noise and random access mechanisms, but the basin mine path is too complicated (including wire addition, limb multiplication_, The relative increase is increased, and the present invention only uses the shifter to complete the mechanism. Compared with the present invention, it has the advantages of a simple circuit and a lower cost. Using the technology of the present invention, __ ( (Reqing nng Time) can be shortened, which can greatly reduce the time for decompression. (3) Brief description of the invention ... * In order to solve the above problems, the inventor has studied and researched for a long time, and has continuously developed and tested. Therefore, the present invention was obtained to solve the conventional technology. In the conventional technique, the ^^ axis, _E axis (examination) or decoding of the narration job title with _L may produce drifting wires, and even more, the sound of the sign = divergence phenomenon disappears, or is aimed at The historical shrinking circuit of the foregoing problem is expected to increase the cost because it is too complicated. The present invention is a method and mechanism for effectively solving the problem. The main purpose f of the tile H code is to use a modulation mechanism to perform the shrinking. Richtek can be used for compressed audio broadcasting The position starts to decode, and when the compression block is transmitted to a certain degree during the transmission, the sound source can still be restored to-clearness. It is not necessary for the government to use ΓΓ sun and moon's other "quotation" is to provide- Simple modulation mechanism, the mechanism can be completed by using only theft and shifter, so the present invention has a simple circuit and a lower cost of H. Using the paper method t paper standard applicable _i ^ TNS) A4i (21〇 x 2ir—- (Please read the precautions on the back before filling out this page} Μ -------- ^ --------- ^ 9 !. 556153
五、發明說明(j ) 為進一步使 貴審查委員能更瞭解本案技術之重點與 内容,乃藉由下列圖式、圖號說明與發明之詳細說明,冀能 對審查工作有所助益。 經濟部智慧財產局員工消費合作社印製 (四)發明圖式說明: 圖一係為本發明之壓縮流程圖。 圖二係為本發明之解壓縮流程圖。 圖三係為本發明之系統硬體架構示意圖。 \ 圖四係為本發明之ADPCM硬體内部架構示意圖。 圖號說明: 11將音源輸入 12參數初始化 13計算音源X (k)與預測值pred (初始值為零)的差值 dif 14若dif大於等於零,sign=0,否則sign=8,接著對dif 取絕對值(vdif) 15以連續逼近法計算出△ 151 vdif>=step? 152 Δ=Δ| temp vdif=vdif-step vpdi ff=vpdi f f+step 153 step=step»l temp=temp»l _:__4 本紙張尺度適用中國國家標準(CNS)A4規格(210 x 297公梦) 1^.裝--------訂---------AVI (請先閱讀背面之注意事項再填寫本頁) 556153 經濟部智慧財產局員工消費合作社印製 A7 _B7___ 五、發明說明(4 ) 154 temp=0? 16利用迴圈方式以加法器求得量化後信號pred 161 sr_kl =pred + /—vpdiff 162 i=0 163 al& (0x01«i) =1? 164 pred=pred+sr__kl 165 srjd=sr—kl«l i=i+lV. Description of invention (j) In order to further understand the key points and contents of the technology of this case, the review committee will use the following drawings, illustrations and detailed descriptions of inventions to help the review work. Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs (4) Schematic description of the invention: Figure 1 is a compressed flowchart of the invention. FIG. 2 is a decompression flowchart of the present invention. Figure 3 is a schematic diagram of the hardware architecture of the system of the present invention. Figure 4 is a schematic diagram of the internal architecture of the ADPCM hardware of the present invention. Explanation of drawing number: 11 input the sound source 12 parameter initialization 13 calculate the difference dif of the sound source X (k) and the predicted value pred (initial value is zero) 14 if dif is greater than or equal to zero, sign = 0, otherwise sign = 8, then the dif Take the absolute value (vdif) 15 and calculate it by the continuous approximation method △ 151 vdif > = step? 152 Δ = Δ | temp vdif = vdif-step vpdi ff = vpdi f f + step 153 step = step »l temp = temp» l _: __ 4 This paper size applies to China National Standard (CNS) A4 (210 x 297 male dreams) 1 ^ .Packing -------- Order --------- AVI (Please read the back first Please pay attention to this page and fill in this page again) 556153 Printed by A7 _B7___, Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 5. Description of the Invention (4) 154 temp = 0? 16 Use the adder to get the quantized signal pred 161 sr_kl = pred + / —vpdiff 162 i = 0 163 al & (0x01 «i) = 1? 164 pred = pred + sr__kl 165 srjd = sr—kl« li = i + l
166 i=7? S 17依據b與sign的值更新al值,並將al限制在0到127 數值之間,b為一調整常數 18根據Δ與index查表得出p,如果sign = 0,pred = pred + p,否則pred = pred - p;根據查表,更新index與 step之值 19壓縮資料δ = Δ I sign 21輸入壓縮資料δ 22 取δ之符號sign以及大小值Δ 23 indexTable表根據其變動值來更新index的數值,設定 a之初始值4 一 24以連續逼近法計算出vpdiff 241 (delta&a) =1? 242 vpd i f f=vpd i f f+step 243 step=step»l 244 a》1 _5_ 本紙張尺度適用中國國家標準(CNS)A4規格(210 x 297公釐) -----------Aw- ^--------^--------- (請先閱讀背面之注意事項再填寫本頁) 556153 A7 B7 五、發明說明(ί) 245 a=0? 25利用迴圈方式以加法器求得量化後信號pred 251 sr_kl =pred+/ - vpdiff 252 i=0 253 al& (0x01«i) =i? 254 pred=pred+sr__kl 255 sr—kl=sr—kl<<l i=i+l 256 i=7? 、 26依據b與sign的值更新ai值,並將ai限制在〇到127 數值之間,b為一調整常數 27根據查表,更新step之值 28 Val即為解壓縮後之音源,將之輸出 31 CPU (中央處理器)32 ADPCM Engine (ADPCM 引擎) 321 ADD/SUB&SHIFT (運算處理器) 322 REGISTER (暫存器) 323 ADPCM State (ADPCM 狀態) 324 ADDRESS GENERATOR (位址產生器) 33 ROM (唯讀記憶體)34 RAM (隨機存取記憶體) 35 類比/數位轉換器(Analog to Digital Converter,ADC) 36 類比/數位轉換器(Digi tal to Analog Converter,DAC) (五)發明詳細說明· 茲配合圖式說明本創作之較佳實施例。 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) (請先閱讀背面之注意事項再填寫本頁) 籲 w MM a··· am 一so、 1 ϋ n tm— ϋ ϋ I · 經濟部智慧財產局員工消費合作社印製 556153 A7 B7 五、發明說明(G ) 明參閱圖一所示,其係為本發明之音源為PCM格式之壓 縮流程’其步驟如下: 11:將音源輪入,該音源為一 PCM格式之取樣音源, 而其數值則以X (k)來做一表示。 12 ··參數初始化,將index (指標值)、pred (預設值)、 △(大小值)皆還原至初始值(即為零)之狀 恶’ temp則設定數值為4,用來求△及3次迴 圈之設定。 13 · δ十异音源义(k)與預測值pre(j (初始值為零)的 差值dif,其公式如下: dif= X (k) - pred 14 .若dif大於等於零,,否則sign=8,接著 對dif取絕對值),其公式如下: sign=sgn (dif) vdif=abs (dif) 其中该sgn為一符號函數,其資料長度為4 bit,若為負數時,其輸出數值為8,否 則等於0。 abs為將括弧内之函數取一絕對值。 15 :以連續逼近法計算出△,而連續逼近法之公式包括 如下: 151 : vdif>=step?(取絕對值之dif是否大於等於 階距值),若結果為是(Yes),則執行152之 步驟;若結果為否(No)時,則跳過步驟Μ? 本紙張尺度適用中國國家標準(CNS)A4規格(21〇 X 297公釐 556153 經濟部智慧財產局員工消費合作社印製 A7 _____B7___ _ 五、發明說明(;?) 直接執行153之步驟。 152 : A=A|temp (Δ與temp取或閘(or)之判斷值) vdif=vdif-step vpdiff=vpdiff+step 153 ·· step=step»l temp=temp»l 154:temp=0?,若其結果為是(Yes),則繼續執行 步驟16 ;若其結果為否(No)時, 則跳回151重新執行連續逼近法。 16 :利用迴圈方式以加法器求得量化後信號pre(j,其 所利用之公式包括有下列: 161 : sr—kl=pred+/—vpdiff 162 : i=0 163 : al & (0x01«i) =1?;若其執行結果為是(Yes) 時,則執行164,其結果為否定(No)時,執 行165 164 : pred=pred+sr_kl 165 : sr—kl=sr—kl«l i=i+l, 166 ·· i=7?,若其執行結果為是(Yesy時,則執行下 步驟17 ’其結果為否定(N〇)時,執行M3。 17 :依據b與sign的值更新al值,並將al限制在〇 到127數值之間,b為一調整常數,其公式為: pred= (pred+ (al»l) ) »7 本紙張尺度適用中國國家標準(CNS)A4規格(210 x 297公釐^ (請先閱讀背面之注意事項再填寫本頁) I 裝--------訂--------- 556153 經濟部智慧財產局員工消費合作社印製 A7 ——---—-_____B7 —__ 五、發明說明(?) ^ ' 1 al=al+/-b 於步驟16-17中,其係為一調制機構,本發明乃為利 用該調制機構來進行編碼,解碼時,可由壓縮音檔之任意位 置開始解碼,並且當壓縮音槽在傳輸過程中受到一定程度之 干擾時,不至於發散,於解碼後,音源仍可還原至一清晰程 度。 18 :根據查表,更新index與step之值,其公式為: index=index+indexTable ( Δ ) step=stepTable (index) 19 :壓縮資料δ = Δ I sign,其中△表示為一大小值, 並與前述sign值做一或閘(or)之邏輯運算,以求 得壓縮資料δ,並將壓縮資料存入壓縮檔案或記憶體 中〇 請參閱圖二所示,其係為本發明之音源為PCM格式解壓 縮過程(輸入資料為壓縮資料),步驟如下: 21 · t買入壓縮資料δ ’該資料可從上述壓縮槽案或記 憶體之任意位置讀取。 22 :取δ之符號sign以及大小值Δ,而其公式如下: sign=sgn (δ),(sign=8&〇x 8) A=abs (δ),(Δ=δ&〇χ 7) 23: indexTable表根據其變動值來更新in(jex的數值, 其公式如下: 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 裝---------訂--------- Γ清先閱讀背面之注意事項再填寫本頁) 556153 經濟部智慧財產局員工消費合作社印製 A7 五、發明說明(f ) index=indexTable (δ) a=4 24 ··以連續逼近法計算出vpdiff 241 : (delta&a) =1?,若執行結果為是(Yes)時, 則_執行242,若為否定⑽時,則執行 243 〇 242 ·· vpdiff =vpdiff+step 243 : step=step»l 244 : a»l 、 245 : a=0? ’若執行結果為是(Yes)時,則繼續執行 25 ’若為否定(N〇)時,則執行241。 25 :利用迴圈方式以加法器求得量化後信號pred 251 sr—kl =pred+/—vpdiff 252 i=0 253 al& (〇x〇i«i) =1?,若執行結果為是(Yes) 時’則繼續執行254,若為否定(N〇)時,則 執行255。 254 pred=pred+sr—kl 255 sr—kl;sr—kl«l i=i+l 256 i=7?,若執行結果為是(Yes)時,則繼續執 行26,若為否定(No)時,則執行253。 26 :依據b與sign的值更新al值,並將al限制在〇 到127數值之間,其公式為: 本紙張尺度適用中國國家標準(CNS)A4規格(21〇 X 297公« ) -----------裝--------訂--------- (請先閱讀背面之注意事項再填寫本頁) 556153 經濟部智慧財產局員工消費合作社印製 A7 B7 五、發明說明(π ) pred= (pred+ (al»l) ) »7 ; al=al+/-b 27 :根據查表,更新step之值,其公式為: step=stepTable (index) 28 : Val即為解壓縮後之音源,將之輸出。 圖三為係為本發明之系統硬體架構示意圖,其係包括有 下列之單元: 一 CPU(中央處理器)31:負責所有元件之運算及控制。 一 ADPCM Engirie (ADPCM引擎)32 :執行動作時首先 設定ADPCM Engine32初始值 '聲音檔起始位置等 工作。再由CPU 31控制ADPCM Engine 32動作, 當執行編碼(Encode)時,開啟類比/數位轉換器 (Analog to Digital Converter,ADC) 35 輸入, 經由 ADPCM Engine 32 做一編碼(Encode)之處 理,並將壓縮結果存於麵(隨機存取記憶體)34, 解碼時則利用ROM (唯讀記憶體)33或RAM (隨機 存取5己憶體)34頃出參數資料或必要之程式,將 結果由類比/數位轉換器(Digital to Anai〇g166 i = 7? S 17 Update the value of al according to the values of b and sign, and limit al to a value between 0 and 127. b is an adjustment constant. 18 Look up the table according to Δ and index. If sign = 0, pred = pred + p, otherwise pred = pred-p; according to the lookup table, update the values of index and step 19 compressed data δ = Δ I sign 21 input compressed data δ 22 take the sign of δ and the size value Δ 23 indexTable table according to The change value is used to update the value of index, and the initial value of a is set to 4-24. vpdiff 241 (delta & a) = 1? 242 vpd iff = vpd if f + step 243 step = step »l 244 a 》 1 _5_ This paper size applies to China National Standard (CNS) A4 (210 x 297 mm) ----------- Aw- ^ -------- ^ ----- ---- (Please read the precautions on the back before filling out this page) 556153 A7 B7 V. Description of the invention (ί) 245 a = 0? 25 Use the loop method to get the quantized signal pred 251 sr_kl = pred + /-vpdiff 252 i = 0 253 al & (0x01 «i) = i? 254 pred = pred + sr__kl 255 sr—kl = sr—kl < < li = i + l 256 i = 7 ?, 26 according to b and The value of sign updates the ai value and limits ai to a value between 0 and 127. , B is an adjustment constant 27. According to the look-up table, the value of step 28 is updated. 28 Val is the decompressed sound source, which is output 31 CPU (central processing unit) 32 ADPCM Engine (ADPCM engine) 321 ADD / SUB & SHIFT (calculation Processor) 322 REGISTER 323 ADPCM State 324 ADDRESS GENERATOR 33 ROM (Read Only Memory) 34 RAM (Random Access Memory) 35 Analog / Digital Converter ( Analog to Digital Converter (ADC) 36 Analog to Digital Converter (DAC) (5) Detailed description of the invention. The preferred embodiment of this creation will be described with drawings. This paper size is in accordance with Chinese National Standard (CNS) A4 (210 X 297 mm) (please read the precautions on the back before filling this page) 吁 w MM a ··· am a so, 1 ϋ n tm— ϋ ϋ I · Printed by the Consumers' Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs 556153 A7 B7 V. Description of the invention (G) Refer to Figure 1, which is the compression process of the sound source of the present invention in PCM format. The steps are as follows: 11: The sound source turns in. The sound source is a sampled sound source in PCM format, and its value is represented by X (k). 12 ·· Parameter initialization, restore the index (index value), pred (default value), △ (size value) to the initial value (that is, zero). The value of temp is set to 4 for △ And the setting of 3 times. 13 · δ The difference dif between the meaning of the ten different sound sources (k) and the predicted value pre (j (the initial value is zero)), the formula is as follows: dif = X (k)-pred 14. If dif is greater than or equal to zero, otherwise sign = 8, then take the absolute value of dif), the formula is as follows: sign = sgn (dif) vdif = abs (dif) where sgn is a sign function with a data length of 4 bits. If it is negative, the output value is 8, otherwise it is equal to 0. abs takes the absolute value of the function in parentheses. 15: △ is calculated by the continuous approximation method, and the formula of the continuous approximation method includes the following: 151: vdif > = step? (Is the dif of the absolute value greater than or equal to the step value), and if the result is (Yes), then execute Step 152; if the result is No, skip step M? This paper size applies the Chinese National Standard (CNS) A4 specification (21 × 297 mm 556 153. Printed by the Consumers ’Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs A7 _____B7___ _ 5. Explanation of the invention (;?) Execute the step 153 directly. 152: A = A | temp (the judgment value of Δ and temp or OR) vdif = vdif-step vpdiff = vpdiff + step 153 ·· step = step »l temp = temp» l 154: temp = 0 ?, if the result is Yes, proceed to step 16; if the result is No, then jump back to 151 and perform continuous approximation again Method 16: Use the loop method to obtain the quantized signal pre (j) using the adder. The formula used includes the following: 161: sr—kl = pred +/— vpdiff 162: i = 0 163: al & ( 0x01 «i) = 1 ?; if the execution result is Yes, execute 164, and if the result is No, execute 165 164 pred = pred + sr_kl 165: sr—kl = sr—kl «li = i + l, 166 ·· i = 7 ?, if the execution result is yes (when Yesy, then execute the next step 17 'the result is negative ( No.), execute M3. 17: Update the value of al according to the values of b and sign, and limit al to a value between 0 and 127. b is an adjustment constant. Its formula is: pred = (pred + (al »l )) »7 This paper size is applicable to China National Standard (CNS) A4 specification (210 x 297 mm ^ (Please read the precautions on the back before filling out this page) I Loading -------- Order --- ------ 556153 Printed A7 by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs ——----_____ B7 —__ 5. Description of the invention (?) ^ '1 al = al +/- b in steps 16-17 It is a modulation mechanism. The present invention is to use the modulation mechanism to perform encoding. When decoding, decoding can be started at any position in the compressed sound file, and when the compressed sound groove is subject to a certain degree of interference during transmission, As for divergence, after decoding, the sound source can still be restored to a clear level. 18: According to the table lookup, update the values of index and step, the formula is: index = index + indexTable ( Δ) step = stepTable (index) 19: Compressed data δ = Δ I sign, where △ is represented as a size value, and an OR operation is performed with the aforementioned sign value to obtain the compressed data δ, and Store the compressed data in compressed files or memory. Please refer to Figure 2. This is the process of decompressing the audio source of the present invention in PCM format (the input data is compressed data). The steps are as follows: δ 'The data can be read from the compression slot or any location in the memory. 22: Take the sign of δ and the magnitude Δ, and its formula is as follows: sign = sgn (δ), (sign = 8 & 〇x 8) A = abs (δ), (Δ = δ & 〇χ7) 23 : The indexTable updates the value of in (jex) according to its changing value, and its formula is as follows: This paper size applies the Chinese National Standard (CNS) A4 specification (210 X 297 mm). --------- Order- -------- Γ Qing first read the precautions on the back and then fill out this page) 556153 Printed by A7, Consumer Cooperatives, Intellectual Property Bureau, Ministry of Economic Affairs V. Invention Description (f) index = indexTable (δ) a = 4 24 · Calculate vpdiff 241 by continuous approximation: (delta & a) = 1 ?, if the execution result is (Yes), then _ go to 242, if the result is negative, go to 243 〇242 ·· vpdiff = vpdiff + step 243: step = step »l 244: a» l, 245: a = 0? 'If the execution result is Yes, continue to execute 25' If the execution result is negative (No), execute 241 . 25: Use the loop method to obtain the quantized signal pred 251 sr_kl = pred +/— vpdiff 252 i = 0 253 al & (〇x〇i «i) = 1? If the execution result is Yes (Yes ), Then continue to execute 254, if it is negative (No), execute 255. 254 pred = pred + sr—kl 255 sr—kl; sr—kl «li = i + l 256 i = 7 ?, if the execution result is Yes, then continue to execute 26, if it is negative (No) , Go to 253. 26: Update the value of al according to the values of b and sign, and limit al to a value between 0 and 127. The formula is: This paper size applies the Chinese National Standard (CNS) A4 specification (21〇X 297 public «)- --------- Installation -------- Order --------- (Please read the precautions on the back before filling out this page) 556153 Employee Consumer Cooperatives, Intellectual Property Bureau, Ministry of Economic Affairs Print A7 B7 V. Description of the invention (π) pred = (pred + (al »l))» 7; al = al +/- b 27: Update the value of step according to the look-up table, the formula is: step = stepTable (index ) 28: Val is the decompressed audio source and outputs it. Figure 3 is a schematic diagram of the hardware architecture of the system of the present invention, which includes the following units: A CPU (central processing unit) 31: responsible for the calculation and control of all components. A ADPCM Engirie (ADPCM engine) 32: When performing an action, first set the initial value of the ADPCM Engine 32 'the starting position of the sound file and so on. Then the CPU 31 controls the operation of the ADPCM Engine 32. When the Encode is executed, the analog to digital converter (ADC) 35 input is turned on, and the ADPCM Engine 32 is used to perform an Encode process. The compression result is stored in the surface (random access memory) 34. When decoding, ROM (read-only memory) 33 or RAM (random access 5 memory) 34 are used to generate parameter data or necessary programs. Analog to digital converter (Digital to Anai〇g
Converter、,DAC) 36 輪出。 一 ADPCM/CPU同步執行介面:在adpcm與CPU資料協 調介面,包括有資料匯流排(DataBus)及位址匯 流排(Address Bus )。 請參閱圖四所示,圖四係為圖三ADPCMEngine2細部硬 體架構圖,其係包括有一運算處理器32卜一暫存器322、一 --------------------訂--------- (請先閱讀背面之注意事項再填寫本頁) 本紙張尺度適用中國國家標準(CNS)A4規格(21〇 X 997"7ν^γ"--------- 556153 A7Converter ,, DAC) 36 rounds. An ADPCM / CPU synchronous execution interface: the interface between adpcm and CPU data coordination, including data bus (DataBus) and address bus (Address Bus). Please refer to Figure 4, Figure 4 is the detailed hardware architecture diagram of ADPCMEngine2 in Figure 3, which includes an arithmetic processor 32, a register 322, and a -------------- ------ Order --------- (Please read the notes on the back before filling in this page) This paper size is applicable to China National Standard (CNS) A4 (21〇X 997 " 7ν ^ γ " --------- 556153 A7
五、發明說明(ί/ ) ADPCM狀態323及一位址產生器324,而其編碼方法及解碼方 式分述如下: 經濟部智慧財產局員工消費合作社印製 編碼方法ENCODER : ADPCM State (ADPCM 狀態)323 之第一狀態·· 由類比/數位轉換器(Analog to Digital Converter,ADC) 35取得音源,一運算處 理器321中包括有加法器、減法器及移位 運算器,並利用其中減法運算器求得差值 dif,由dif決定sign之正負,再使用運 异處理态321,以連續逼近法求出△值。 ADPCM State (ADPCM 狀態)323 之第二狀態: 將Δ與 index 送至 ADDRESS GENERATOR (位 址產生器)324,利用所產生的位址取得 ROM 33内部之查表值,並更新暫存器 (Register) 322 之值。 ADPCM State (ADPCM狀態)323之第三狀態: 由資料匯流排(Data Bus)送出壓縮資料。 解碼方法DECODER、 ADPCM State (ADPCM 狀態)323 之第一狀態: 送出位置值(address ),取得壓縮資料值5。 ADPCM State (ADPCM 狀態)323 之第二狀態: 將壓縮資料δ與index送入ADDRESS GENERATOR (位址產生器)324,利用所產 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) --------------------^---------^9. (請先閱讀背面之注意事項再填寫本頁) 556153 A7 B7 五、發明說明(7 ) 生之位址取得存放在ROM 33裡之量化 值,並由δ之正負號決定由運算處理器 321中之加法器或減法器求出vai值,且 將val經由DAC 36輸出。 ADPCM State (ADPCM狀態)323之第三狀態: 由壓縮資料δ取得唯讀記憶體ROM 33之資 料,將index更新。 綜上所述,本發明之結構特徵及各實施例皆已詳細揭 | 示’充分顯示出本發明案在目的及功效上均深富實施之進步 性,極具產業之利用價值,且為目前市面上前所未見之運用, 依專利法之精神所述,本發明案完全符合發明專利之要件。 唯以上所述者,僅為本發明之較佳實施例而已,當不能 以之限定本發明所實施之範圍。即大凡依本發明申請專利範 圍所作之均等變化與修飾,皆應仍屬於本發明專利涵蓋之範 圍内’謹請貴審查委員明鑑,並祈惠准,是所至禱。V. Description of the invention (ί /) ADPCM state 323 and one address generator 324, and its encoding method and decoding method are described as follows: The encoding method ENCODER: ADPCM State (ADPCM state) The first state of 323. The audio source is obtained from Analog to Digital Converter (ADC) 35. An arithmetic processor 321 includes an adder, a subtractor, and a shift operator, and uses the subtractor. Find the difference dif, determine the sign of the sign by dif, and then use the different processing state 321 to obtain the △ value by the continuous approximation method. The second state of ADPCM State (ADPCM state) 323: Send Δ and index to ADDRESS GENERATOR (address generator) 324, use the generated address to get the table lookup value in ROM 33, and update the register (Register ) Value of 322. The third state of ADPCM State (ADPCM state) 323: Compressed data is sent from the data bus. The first state of the decoding method DECODER, ADPCM State (ADPCM state) 323: Send the position value (address) to get the compressed data value 5. The second state of ADPCM State (ADPCM state) 323: The compressed data δ and index are sent to ADDRESS GENERATOR (Address Generator) 324, and the Chinese paper standard (CNS) A4 (210 X 297) %) -------------------- ^ --------- ^ 9. (Please read the precautions on the back before filling out this page) 556153 A7 B7 V. Description of the invention (7) The quantized value stored in ROM 33 is obtained from the address of the student, and is determined by the sign of δ. The value of vai is obtained by the adder or subtractor in the arithmetic processor 321, and val is passed through DAC 36 output. The third state of the ADPCM State (ADPCM state) 323: The data of the read-only memory ROM 33 is obtained from the compressed data δ, and the index is updated. In summary, the structural features and various embodiments of the present invention have been disclosed in detail | indicates that the present invention fully demonstrates the progress of implementation of the present invention in terms of purpose and efficacy, which has great industrial use value, and is currently According to the spirit of the Patent Law, the application of this invention has never been seen before, and the present invention fully complies with the requirements of an invention patent. The above are only the preferred embodiments of the present invention, and it should not be used to limit the scope of the present invention. That is to say, all equal changes and modifications made in accordance with the scope of the patent application of the present invention should still fall within the scope of the patent of the present invention ', I ask your reviewing committee to make a clear reference and pray for your approval.
裝--------訂--------- C請先閱讀背面之注意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製Packing -------- Order --------- C Please read the notes on the back before filling out this page) Printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs
本紙張尺度_㈣國wr^NS)A4規格(2τ〇-χ品公餐)Size of this paper_㈣ 国 wr ^ NS) A4 size (2τ〇-χ 品 公 餐)