版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
添加系統(tǒng)控制,系統(tǒng)狀態(tài),ADC,DAC,GainControl及VocalCut音效的控制協(xié)議替換之前的位置對PGA添加Mute的控制ADCDACMCLKSource對I2S部分添加參數(shù)ADCDigitalDCPGAmutePGA1VoiceChangerSPDIF協(xié)議,添加GPIOGPIOSPDIFIO4Bytes2I2CSlaveAddressVocalRemover更新SPDIF參數(shù)變?yōu)?7個PitchShifterPro添加MVBassClassic音效和PCMDelay音效MVBassMV3DHowling協(xié)議約 版本號約 通訊方式約 通訊模 IIC模 寫時 讀時 USB模式(HID協(xié)議 數(shù)據(jù)幀格 幀結(jié) 字節(jié)定 控制字定 控制字格 固件信息 系統(tǒng)控制參數(shù) 系統(tǒng)狀態(tài)參數(shù) PGA0參數(shù) ADC0參數(shù) AGC0參數(shù) PGA1參數(shù) ADC1參數(shù) AGC1參數(shù) DAC0參數(shù) DAC1參數(shù) I2S0參數(shù) I2S1參數(shù) SPDIF參數(shù) GPIOConfiguration參數(shù) GPIOWrite數(shù)據(jù) GPIORead數(shù)據(jù) 音效個數(shù)和列表 音效參數(shù) Auto DC DynamicRange Noise Frequency Howling Noise Pitch Silence Gain Reverb VoiceChanger Phase PitchShifter MVBass PCM Harmonic 用戶自定義音效格 用戶自定義 固件保存參數(shù) 固件升級 密鑰參數(shù) 附錄 PGA音量 附錄 不同系列功能概 協(xié)議約制字定義、數(shù)據(jù)結(jié)構(gòu)及傳輸規(guī)則,用戶應(yīng)用程序可以是PC機(jī)、主控或者其他用戶設(shè)備。規(guī)約版本號是對本規(guī)約不同版本的標(biāo)識,由大版本、中版本和小版本三部分組成。例如‘0000’代表V0.1.0固件收到查詢參數(shù)命令時,不需要發(fā)送Response命令,只需上傳對應(yīng)的參數(shù)即可。通訊模該協(xié)議支持三種通訊模式:UART,IICUSB(HID)UARTIIC值81無IIC1bitR/W讀寫控制位,1bitACK,Nbytes的DATA和NbitsACK以及StopCondition。R/W為10110100b(0xB4),讀時序時SlaveAddress+R/W為10110101b(0xB5)。圖1IIC寫時成數(shù)據(jù)為:0x04,0x03,0x00,0x00,0x00ADC00x04),數(shù)據(jù)域長度為0x03,0x00(參數(shù)代碼0x00),參數(shù)值0x00,0x00,即ADC0的enable=0。數(shù)據(jù)域數(shù)據(jù)長度控制字A數(shù)據(jù)域數(shù)據(jù)長度控制字ARSLAVEA=notacknowledgeS=startconditionP=stopcondition讀時
frommastertoslavefromslaveto圖2IIC為0x04,長度為0為查詢模式)。然后再以讀時序參數(shù)。SSLAVERAAA…AP0SSLAVERAAA…P1控制字?jǐn)?shù)據(jù)長度數(shù)據(jù)域R/WR/W=0:write;1:readA=acknowledgeA=notacknowledgeS=startconditionP=stopconditionfrommastertofromslavetoUSB模式(HID數(shù)據(jù)幀格控制字個PGA0GPIOConfigurationGPIOWriteGPIORead控制字格0xA5|無0xA5|固件類型(1(3節(jié))+音效庫版本號(3字節(jié))DUKaraokeSDK標(biāo)準(zhǔn)SDK0xA5|參數(shù)代碼(1字節(jié))+參數(shù)內(nèi)容(200:Standard1:Sleep10:Standard1:Reset2SystemSampleRate3SystemSample0:80001:110252:120003:160004:220505:240006:320007:441008:480004SystemMCLKSource個模塊的MCLKSource選擇無效。5SystemMCLK0:1:2:osc_clk(Input11.2896MHzor3:gpio_mclk_in0(Input11.2896MHzor4:gpio_mclk_in1(Input11.2896MHzor11025Hz,22050Hz,44100Hz,12000Hz,16000Hz,61:Systemrecoverdefault7~0xA5|無0xA50xFF1數(shù)(每個參數(shù)2字節(jié))0xA5|無0xA5|0xFF(1字節(jié))+MemoryUsage(Kbyte2)+CPUUsage(2字節(jié))+參數(shù)變化標(biāo)志(1字節(jié))+CPUMaxFrequency(MHz,2字節(jié))PGA00xA5|數(shù)(每個參數(shù)2字節(jié))0Line1Left1Line1Right2Line2Left3Line2Right4MIC45MIC36Line1Leftscale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。7Line1Rightscale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。8Line2Leftscale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。9Line2Rightscale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。MIC4scale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。MIC4Gain1:使能,gainboost2:使能,gainboost3:使能,gainboost4:使能,gainboostMIC3scale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。MIC3Gain1:使能,gainboost2:使能,gainboost3:使能,gainboost4:使能,gainboostPGA0ZeroCross0:All1:ADC0leftPGA2:ADC0rightPGA3:AllPGA0Differential1:PGA0leftchanneldifferentialinputandrightchannelsingle-endedinput.leftchannelsingle-endedinput.3:PGA0leftandrightchanneldifferentialPGA0DifferentialLeft0:PGA0DifferentialRight18~0xA5|無0xA5|個參數(shù)2字節(jié))ADC00xA5|參數(shù)2字節(jié))00:All1:ADC0leftdigital2:ADC0rightdigital3:All10:All1:ADC0leftdigital2:ADC0rightdigital3:All2LeftScale:0~0x3FFF,3RightScale:0~0x3FFF,4Sample0:80001:110252:120003:160004:220505:240006:320007:441008:480005LR6DCBlockerCoefficient0:Coefficient0xFFE48k20Hz1:Coefficient0xFFC48k40Hz2:Coefficient0xFFD32k40Hz7Fade0:disable1~8MCLK0:1:2:3:4:9DCBlocker0xA5|無0xA5|數(shù)(每個參數(shù)2字節(jié))AGC0參數(shù)0xA5|個參數(shù)2字節(jié))0AGC0:1:leftchannel2:rightchannel3:left+right1Maxscale:0~AD0maxlevel=-3-maxlevel;AD0maxlevelrange:3~34dB用戶應(yīng)用程序?qū)B轉(zhuǎn)為scale值2scale:0~ADC0Targetlevel=-3–targetdBscale3Maxscale:0~63:39.6462:38.7…-0.95dBstepdown0:-20.34Minscale:0~63:39.6462:38.7…-0.95dBstepdown0:-20.35Gainscale:0~:0::1:1.5:2:2.5:3:3.5:-4:-10:-311:-2.512:-13:-1.514:-115:-0.5dB6Frame1~40967Hold8Attack1~40969Decay1~4096NoiseGateNoiseGatescale:0~0:-1:-…2dBstepup30:-31:-NoiseGateNoiseGateHold0xA5|無0xA50xFF(1)+AGC0全部參數(shù)(2PGA1參數(shù)0xA5|參數(shù)代碼(1字節(jié))+參數(shù)內(nèi)容(20Line3Left1Line3Right2Line2Left3Line2Right4FMLeft5FMRight6MIC27MIC18Line3Leftscale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。9Line3Rightscale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。Line2Leftscale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。Line2Rightscale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。FMLeftscale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。FMRightscale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。MIC2scale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。MIC2Gain1:使能,gainboost2:使能,gainboost3:使能,gainboost4:使能,gainboostMIC1scale:0~63,0,63量。詳細(xì)對應(yīng)的dB值請查看附錄1。MIC1Gain1:使能,gainboost2:使能,gainboost3:使能,gainboost4:使能,gainboostPGA1ZeroCross0:All1:ADC1_LPGA2:ADC1_RPGA3:AllPGA1Differential1:PGA1leftchanneldifferentialinputandrightchannelsingle-endedinput.leftchannelsingle-endedinput.3:PGA1leftandrightchanneldifferential20~0xA5|無0xA5|參數(shù)(2ADC1ADC0AGC1參數(shù)DAC0參數(shù)0xA5|參數(shù)代碼(1字節(jié))+參數(shù)內(nèi)容(200:All1:DAC0leftdigital2:DAC0rightdigital3:All1Sample0:80001:110252:120003:160004:220505:240006:320007:441008:4800020:Allunmute1:Leftmute3:All3LeftScale:0~0x3FFF,4RightScale:0~0x3FFF,50:禁能otherdither60:使能70:立體聲標(biāo)準(zhǔn)輸出(L_oL_i;R_o2:單聲道輸出(L_o=(L_i+R_i)/2;89SampleEdgeSCF0:all1:leftSCF2:rightSCF3:left+rightSCFFade1~Zero0:zerosnumbervalue:1:zerosnumbervalue:2:zerosnumbervalue:3:zerosnumbervalue:4:zerosnumbervalue:5:zerosnumbervalue:6:zerosnumbervalue:7:zerosnumbervalue:MCLK0:1:2:3:4:14~0xA5|無0xA5(2DAC1參數(shù)DAC1modeDAC0LeftVolumeDAC0完全一樣,詳細(xì)請參考DAC0章節(jié)。I2S0參數(shù)0xA5|參數(shù)代碼(1)個參數(shù)2字節(jié))0TX1RX2Sample0:80001:110252:120003:160004:220505:240006:320007:441008:480009:8820010:9600011:17640012:1920003MCLK0:1:2:3:4:40:1:5Word0:161:202:243:3260:1:7Fade:disable~2558Data9BCLKLRCLK0xA5|無0xA5|個參數(shù)2字節(jié))I2S1參數(shù)SPDIF參數(shù)0xA5|(200:Disable1:SPDIFRX2:SPDIFTX1Sample0:80001:110252:120003:160004:220505:240006:320007:441008:480009:8820010:9600011:17640012:192000當(dāng)SPDIF2ChannelFIFO正常,右聲道數(shù)據(jù)填03IO0:1:2:3:4SPDIFLock 5~0xA5|無0xA5|全部參數(shù),每個參數(shù)2字節(jié))GPIOConfiguration參數(shù)0xA5|0GPIO1R/W2,0Read;1+PU/PD2,0nopull-down,nopull-up;–pull-up;2–pull+PU/PDDS(drivestrength2,0pull(20uA),1-strongpull(70uA)1GPIO22~0xA5|無0xA5|0xFF(1)GPIO20GPIO1R/W2,0Read;1+PU/PD2,0nopull-down,nopull-up;–pull-up;2–pull+PU/PDDS(drivestrength2,0weakpull(20uA),1-strongpull(70uA))1GPIO22~GPIOWrite數(shù)據(jù)0xA5|個參數(shù)占2字節(jié))0GPIO11GPIO22~GPIORead數(shù)據(jù)0xA5|無0xA5|0xFF1GPIO全部參數(shù)(20GPIO11GPIO22~0Auto1DC2DynamicRangeCompressor(DRC345Noise67Howling8Noise9PitchSilenceGainReverbReverbPhasePitchShifterMVBassPCM27~1000xA5|0xA5|0(1音效個數(shù)(1)1(2),字節(jié)),音效類型碼3(2字節(jié)1(11(變長2(12(變長3(13(變長……010x81,音效類型碼2對應(yīng)的控制字為0x82,依次類推。0x000x040x00,0x000x02,0x000x03,0x000x000x00。則表示參數(shù)代,AutoTune并且依次對應(yīng)的控制字為0x81,0x82,0x83,0x84.數(shù)據(jù)域的內(nèi)容為:0x010x31,0x3A0x410x75,0x740x6F,0x540x750x6E0xA5|0(1音效個數(shù)(1)1(2),字節(jié)),音效類型碼3(2字節(jié)1(11)+‘:’(0x3A)+該音效名稱(變長),如果不1(1名稱(變長2(1名稱(變長3(1名稱(變長………0xA5|數(shù)占2字節(jié))控制字:0x81~0xFC0xA5|無0xA5|個參數(shù)占2字節(jié))Auto001Supportedkeys(12majorscales1chromaticscale):'a'forA-flat'A'forA'b'forB-flat'B'forB'C'forC'C'forC'd'forD-flat'D'forD'e'forE-flat'E'forE'F'forF'g'forG-flat'G'forG'X'forchromatic2'n':near'u':upper'l':lower'n':nearDC00DynamicRange001crossover0~20000in*0meansfull2DRCfullfilters,order=1)2-band(LRfilters,order=0:fullfilters,order=4)2-band(Butterworthfilters,order=1)+full2-band(LRfilters,order=4)+fullband2-band(Qcontrolledfilters,order=4)+full3{724,4-9000~0in{0,0,5{100,100,60~7500in{1,1,70~7500in{1000,1000,8Q4.12scaleforfull-bandorlowerbandincaseof2-band上位機(jī)需要將界面dB值轉(zhuǎn)為scale9Q4.12scaleforupperbandincaseof2-bandscaleenable+crossoverfrequency+DRCmode+q+threshold+ratio+attack+release+001cutoff0~24000in0meansdisablingtheuseoflowpassfilter2Q1.15scale341enable+cutofffrequency++001Q8.8in02304050~24000in67Q8.8in080900~24000inQ8.8in013…+filter1_enable+filter1_type++filter1_gain+filter2_enable+filter2_type++…Noise001-9000~0in2330~7500in540~7500inenable++ratio+attack+Frequency001 enable+001NoPrecise1:Preciseenable+001-90~0in2-90~0in30~7500in540~7500in50~7500inenable+lower+upper+attack+release+holdPitch001-120~120in0.10enable+0010~20~30~40~50~60enable+dry+wet+width++dam+Silence001PCM0010~enable+001cutoff30~300in20~31frequency+intensity+Voice00150~266~2003~Gain00102Scale:0~0x3FFF,3~Vocal0012~enabl
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度個人股權(quán)并購及整合實施合同4篇
- 二零二五年度個人消費(fèi)貸款擔(dān)保協(xié)議書4篇
- 二零二五年度門窗行業(yè)供應(yīng)鏈管理服務(wù)合同8篇
- 2025年度個人二手房買賣合同交易稅費(fèi)減免優(yōu)惠政策4篇
- 2025年房地產(chǎn)教育咨詢服務(wù)代理合同2篇
- 2025年度個人股權(quán)投資協(xié)議(風(fēng)險投資)4篇
- 地鐵主體結(jié)構(gòu)施工方案
- 市場研究專題報告十一 鈣通道阻滯劑市場研究專題報告202410
- 二零二五年度模具生產(chǎn)車間環(huán)保治理承包協(xié)議4篇
- 巴中水下施工方案
- 人教版(2025新版)七年級下冊英語:寒假課內(nèi)預(yù)習(xí)重點知識默寫練習(xí)
- 2024年食品行業(yè)員工勞動合同標(biāo)準(zhǔn)文本
- 全屋整裝售后保修合同模板
- 高中生物學(xué)科學(xué)推理能力測試
- GB/T 44423-2024近紅外腦功能康復(fù)評估設(shè)備通用要求
- 2024-2030年中國減肥行業(yè)市場發(fā)展分析及發(fā)展趨勢與投資研究報告
- 2024年公安部直屬事業(yè)單位招聘筆試參考題庫附帶答案詳解
- 臨沂正祥建材有限公司牛心官莊鐵礦礦山地質(zhì)環(huán)境保護(hù)與土地復(fù)墾方案
- 六年級上冊數(shù)學(xué)應(yīng)用題練習(xí)100題及答案
- 死亡報告年終分析報告
- 棋牌室禁止賭博警示語
評論
0/150
提交評論