| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
MPEG USER'S GUIDE CS4925 CS4927 MPEG Description This d
Top Searches for this datasheetAN121 MPEG USER'S GUIDE CS4925 CS4927 MPEG Description This document includes brief description hardware configuration depth descriptions application messaging protocol, application control modules, application configuration examples. main body this document covers features included standard MPEG Multi-Channel application IEC61937 compliant bitstreams. Multi-Channel Description Software Naming Convention This document covers code supported CS492X revil Document Strategy sion silicon. Hardware Configurations Supported CS492X MPEG Code Understanding Application Messaging DIGITAL SOUND (Including Write Sessions, Solicited Unsolicited Read Message) Control Application Modules such -Audio Manager -MPEG Manager -Pro Logic Manager -Generalized Bass Manager Application Configuration Examples Logic Enabled, CENTER=0, SURROUND=0, LFE=0, MODE=0 Channels Channels (Ls=Rs) Autodetect Enable MPEG Enable Logic Decode Downmix Channels Channels Autodetect (MPEG) CMPDAT/ MPEG Decode Discrete Channels Output Mode Control Bass Manager Audio Manager (Sub) Enable Bass Parameter Output Mode Volume/Mute Channel Remap Delay P.O. 17847, Austin, Texas 78760 (512) 7222 FAX: (512) 7581 http://www.cirrus.com Copyright Cirrus Logic, Inc. 1999 (All Rights Reserved) AN121REV2 AN121 TABLE CONTENTS OVERVIEW Multi-Channel Decoder Family Parts Document Strategy 1.2.1 Hardware Documentation 1.2.2 CS4923/4/5/6/7/8/9 Application Code User's Guides Using CS4923/4/5/6/7/8/9 Software Naming Convention MPEG Description HARDWARE CONFIGURATION Supported Input/Output Modes APPLICATION MESSAGING Indexed Module Communication Protocol 3.1.1 Write Session 3.1.2 Solicited Read Message Format Unsolicited Read Message Format APPLICATION MODULES Audio Manager 4.1.1 Audio_Control: (Index 0x00) MPEG Manager 4.2.1 MPEG_Control 4.2.2 MPEG Stream Information Logic Manager Generalized Bass Manager Unsolicited Messages (Read-Only) 4.5.1 Autodetect Operation 4.5.2 Special Considerations Autodetect APPLICATION CONFIGURATION EXAMPLES MPEG decode with Autodetect Contacting Cirrus Logic Support complete listing Direct Sales, Distributor, Sales Representative contacts, visit Cirrus Logic site AC-3, Dolby Digital Dolby Logic registered trademarks Dolby Laboratories Licensing Corporation. registered trademark DTS, Inc. MPEG Logo registered trademark Philips Electronics. Preliminary product information describes products which production, which full characterization data available. Advance product information describes products which development subject development changes. Cirrus Logic, Inc. made best efforts ensure that information contained this document accurate reliable. However, information subject change without notice provided without warranty kind (express implied). responsibility assumed Cirrus Logic, Inc. this information, infringements patents other rights third parties. This document property Cirrus Logic, Inc. implies license under patents, copyrights, trademarks, trade secrets. part this publication copied, reproduced, stored retrieval system, transmitted, form means (electronic, mechanical, photographic, otherwise) without prior written consent Cirrus Logic, Inc. Items from Cirrus Logic website disk printed user. However, part printout electronic files copied, reproduced, stored retrieval system, transmitted, form means (electronic, mechanical, photographic, otherwise) without prior written consent Cirrus Logic, Inc.Furthermore, part this publication used basis manufacture sale items without prior written consent Cirrus Logic, Inc. names products Cirrus Logic, Inc. other vendors suppliers appearing this document trademarks service marks their respective owners which registered some jurisdictions. list Cirrus Logic, Inc. trademarks service marks found http://www.cirrus.com. AN121REV2 AN121 LIST FIGURES Figure MPEG Functional Block Diagram Figure Filter Topology Figure Bass Manager Processing Unit Figure Subwoofer Summing Module Figure Autodetect Flow Chart Figure Typical Download Configuration Figure Pseudocode Example Configure Part MPEG Decode with Autodetect LIST TABLES Table Input/Output Configurations Supported MPEG. Table Write Message Format Table Read Command Message Format Table Read Response Message Format. Table Unsolicited Read Message Format Table Audio Manager Table MPEG Manager Table Logic Manager Table Bass Manager Table Unsolicited Messages. Table Enabling MPEG decode with Autodetect. AN121REV2 AN121 OVERVIEW CS4923/4/5/6/7/8/9 family system chip solutions multi-channel audio decompression digital signal processing. Since part RAM-based, download application software required each time CS4923/4/5/6/7/8/9 powered These parts generally targeted different market segments. broadcast market where audio/video (A/V) synchronization required, outboard decoder markets where audio/video synchronization required. important differentiation format which data will received CS4923/4/5/6/7/8/9. systems where synchronization required from CS4923/4/5/6/7/8/9, incoming data typically encoded. outboard decoder application data typically comes IEC61937 format specified consortium). important point remember that CS4923/4/5/6/7/8/9 will support both environments, different downloads required depending input data type. Broadcast applications include (but limited applications, DVDs digital TVs. Outboard decoder applications include stand-alone decoders audio/video receivers. Often times system hybrid between outboard decoder broadcast system depending functionality. This user's guide covers code that provides MPEG1, layer (Stereo) MPEG-2, layer MultiChannel Stereo decoding IEC61937 compliant bitstreams. IEC61937 protocol delivering compressed audio over consumer IEC60958 S/PDIF interface. intended used only Dolby Digital decoding required. Dolby Digital, post processing includes bass management, delays Dolby Logic® decoding. Separate downloads also used support stereo channel effects processing stereo MPEG decoding. CS4924 Dolby Digital Source Product Decoder. CS4924 stereo version CS4923 designed source products such DVD, HDTV, boxes. CS4925 International Multi-Channel Audio Decoder. CS4925 supports both Dolby Digital MPEG-2 multi-channel formats. both Dolby Digital MPEG-2 multi-channel, post processing includes bass management Dolby Logic decoding. Dolby Digital code MPEG code take separate code downloads. Another code load used support stereo channel effects processing. CS4926 DTS®/Dolby Multi-Channel Audio Decoder. CS4926 supports both Dolby Digital DTS, Digital Theater Surround. Dolby Digital, post processing includes bass management Dolby Logic. Dolby Digital code code take separate code downloads. Separate downloads also used support stereo channel effects processing stereo MPEG decoding. CS4927 MPEG-2 Multi-Channel Decoder. CS4927 supports MPEG-2 multi-channel decoding should used applications where Dolby Digital decoding necessary. MPEG-2 multi-channel decoding, post processing includes bass management Dolby Logic decoding. Another code load used support stereo channel effects processing. CS4928 Multi-Channel Decoder. CS4928 supports multi-channel decoding should used applications where Dolby Digital decoding necessary. multi-channel decoding, post processing includes bass manageAN121REV2 Multi-Channel Decoder Family Parts CS4923 Dolby Digital® Audio Decoder. CS4923 original member family AN121 ment. Separate downloads also used support stereo channel effects processing stereo MPEG decoding. CS4929 2-Channel, (Low Complexity) MPEG-2 Stereo Decoder. CS4929 capable decoding both 2-channel MPEG-2 audio. CS4929 supports both elementary formats. ferred should assumed that more below documents being referenced. following list covers currently released application notes. This list will grow with each application released. current list released user's guides please www.crystal.com search part number. AN120 Dolby Digital User's Guide CS4923/4/5/6. This document covers features available Dolby Digital code including delays, pink noise, bass management, Logic, pass through Dolby Digital processing features. Optional appendices available that document code Virtual Dolby DigitalTM, QSurroundand VMAxTM. AN121 MPEG User's Guide CS4925. This document covers features available MPEG Multi-Channel code including delays, bass management, Logic, MPEG processing features. AN122 User's Guide CS4926, CS4928. This document covers features available code including bass management processing features. AN123 Surround User's Guide CS4923/4/5/6/7/8. This code covers different Stereo surround effects processing code. Optional appendices available that document Crystal Original Surround, Circle Surround Lexicon Logic. AN140 Broadcast Systems Guide CS4923/4/5/6/7/8/9. This guide describes application code (e.g. Dolby Digital, MPEG, AAC) designed broadcast systems such HDTV set-top receivers. This document also provides discussion broadcast system considerations dependencies. Document Strategy Multiple documents needed fully define, understand implement functionality CS4923/4/5/6/7/8/9. They split into basic groups: hardware application code documentation. should noted that hardware application code co-dependent successfully part without understanding both. `ANXXX' notation denotes application note number under which respective user's guide released. 1.2.1 Hardware Documentation CS4923/4/5/6/7/8/9 Family Data Sheet This document describes electrical characteristics device from timing base functionality. This hardware designers tool learn part's electrical systems requirements. AN115 CS4923/4/5/6/7/8/9 Hardware User's Guide describes functional aspects device. in-depth description communication, boot procedure, external memory hardware configuration given this document. This document will valuable both hardware designer system programmer. 1.2.2 CS4923/4/5/6/7/8/9 Application Code User's Guides following application notes describe application codes used with CS4923/4/5/6/7/8/9. Whenever application code user's guide AN121REV2 AN121 Using CS4923/4/5/6/7/8/9 matter what application being used chip, following four steps always followed CS4923/4/5/6/7/8/9 system. Reset and/or Download Code Detailed information found AN115. Hardware Configuration Detailed information found AN115. Application configuration Detailed information found appropriate Application Code User's Guide. Kickstart This "Go" command CS492X once system properly configured. Detailed information found appropriate Application Code User's Guide. Chip suffix hardware (e.g. CS4923 CC=23) specification actual version release particular code MPEG Description MPEG digital audio compression algorithm developed Moving Pictures Experts Group channels audio. This user's guide covers software designed CS4925/7 that decodes MPEG. This user's guide covers code that named with AAAA MPG_ MPS_, CC==25 described previous section. Along with MPEG this document will describe enable Dolby Logic Decode bass management among other features. assumed that reader familiar with features MPEG specified ISO/IEC 13813-3, MPEG Audio Coding Standard Software Naming Convention keep with different applications, parts, hardware revisions software revisions following naming convention been adopted CS4923/4/5/6/7/8/9 software: AAAACCRV.LD where: AAAA three four letter Application description (e.g. AC3_) Figure functional block diagram application code gives idea interaction between various application modules. this document CS4925/7 been replaced with CS492X readability. Unless otherwise specified CS492X should interpreted applying both CS4925 CS4927. Logic Enabled, CENTER=0, SURROUND=0, LFE=0, MODE=0 Channels Channels (Ls=Rs) Autodetect Enable MPEG Enable Logic Decode Downmix Channels Channels Autodetect (MPEG) CMPDAT/ MPEG Decode Discrete Channels Output Mode Control Bass Manager Audio Manager (Sub) Enable Bass Parameter Output Mode Volume/Mute Channel Remap Delay Figure MPEG Functional Block Diagram AN121REV2 AN121 HARDWARE CONFIGURATION After download soft reset, before kickstarting application (please Section 4.1, Audio Manager, more information kickstarting), host option changing default hardware configuration. Address checking serial communication data type format digital data input output changed through hardware configuration settings. entire hardware configuration only changed immediately after download soft reset. Supported Input/Output Modes CS492X input ports output port. AN115 describes digital audio formats supported ports gives description ports themselves. capabilities each port presented AN115 although configurations supported applications. Each Software Application User's Guide specifies exact input/output modes supported application. Referring AN115, Table shows input/output modes supported MPEG application: Configuration INPUTA INPUTB INPUTC OUTPUTA OUTPUTB OUTPUTC OUTPUTD OUTPUTE Description Input Data Type Input Data Format Input SCLK/Data Edge Output Master/Slave Clock Setup Output Data Format Output MCLK Rate Output SCLK Rate Output SCLK/Data Edge Supported Modes 0,1,2,3 0,1,2,3 0,1,2 Table Input/Output Configurations Supported MPEG AN121REV2 AN121 APPLICATION MESSAGING While using CS4925/7 necessary control monitor application take full advantage rich feature employed CS492X software. Application messaging allows user this. Whether configuring part after download, e.g. enabling MPEG decode, changing run-time parameters, e.g. controlling digital volume, host will application messaging communicate with CS492X. While communicating with CS492X using indexed modules, strict software protocol must used conjunction with hardware protocol discussed CS4923/4/5/6/7/8/9 Hardware User's Guide. This section will cover both format messages different configuration modules available with CS492X. must stressed that host must strictly adhere hardware software protocols insure successful communication. index combined, unique variable read written. This section covers communicate with CS492X using indexed modules. software protocol presented following types messages: Write, Solicited Read, Read Response, Unsolicited Read Response. When protocol presented this section used with application modules Section Application Modules, host will able fully configure application running CS492X. 3.1.1 Write Session write session with CS492X consists byte message from host CS492X. write message consists command word followed associated data word. Table shows format write message. 3.1.2 Solicited Read Message Format solicited read session consists 3-byte Read Request message from host CS492X, followed byte Read Response message from CS492X host. read request message simply consists Read command word whose format shown Table Indexed Module Communication Protocol Each indexed module application thought block software registers variables. index identifies unique variable within module. When opcode module Write Command Word: OPCODE[7:0] Write Data Word: INDEX[15:0] DATA[23:0] OPCODE[7:0] byte) field containing opcode targeted application module. This field will choose which module written. INDEX[15:0] byte) field containing index desired variable module chosen OPCODE. This field will choose actual variable altered. DATA[23:0] byte) data word written into variable specified INDEX module specified OPCODE. Table Write Message Format AN121REV2 AN121 After host sends read command word should wait INTREQ line fall. CS4923/4/5/6/7/8/9 Hardware User's Guide more hardware communication with CS492X. After INTREQ falls host should read 6-byte Read Response message which consists byte Read Response Command word followed requested data word. format Read Response message shown Table tect mode detects stream. unsolicited read message will sent CS4925/7 indicate stream type. 6-byte unsolicited read messages from CS4925/7 consist 3-byte read command word which defines type unsolicited message described Unsolicited Messages (Read-Only), Section 4.5) 3-byte associated data word that contains more information describing system condition. Every time existence message detected sensing that INTREQ low), host should read byte read unsolicited message. Table shows format unsolicited read message. Unsolicited Read Message Format Unsolicited messages will typically used systems where INTREQ generate interrupts. These messages will come from CS4925/7 indicate change system that must addressed. example when part autode- Read Command Word: OPCODE[7:0] INDEX[15:0] OPCODE[7:0] byte) field containing opcode targeted application module. This field will choose which module read from. INDEX[15:0] byte) field containing index desired variable module chosen OPCODE. This field will choose actual variable read. Table Read Command Message Format Read Response Command Word: OPCODE[7:0] Read Response Data Word: INDEX[15:0] DATA[23:0] OPCODE[7:0] byte) field containing Read Response opcode targeted application module. This field will show which module read. INDEX[15:0] byte) field containing index desired variable module chosen OPCODE. This field will show actual variable that read. DATA[23:0] byte) data word that read from variable specified INDEX module specified OPCODE. Table Read Response Message Format AN121REV2 AN121 Unsolicited Read Command Word: OPCODE[7:0] Unsolicited Read Data Word: INDEX[15:0] DATA[23:0] OPCODE[7:0] byte) field containing opcode Unsolicited Messages module. INDEX[15:0] byte) field containing index variable module designated OPCODE. DATA[23:0] byte) data word that corresponds variable specified INDEX module specified OPCODE. Table Unsolicited Read Message Format APPLICATION MODULES block diagram cover page this document accurately portrays interaction between various application modules MPEG code. following should noted about values application modules: Variables marked `Default*' will only initialized after download. These variables will retain their values after soft reset application restart. Variables marked `Default' will reinitialized values shown this application note after download, soft reset application restart. Only those values which presented valid which fall within specified range should written application module variables. value which falls outside stated range written variable, functionality application guaranteed erroneous output could result. bits that defined should considered reserved written with unless specified otherwise. variables such volume scaling factors, real number range 0.0-1.0 written 0x000000-0x7FFFFF. This range linear, i.e. volume, represented 0x1FFFFF equivalent value 0.25. formula converting variable settings from hexadecimal number into follows: (variable setting/max value variable) e.g. (0x1FFFFF/0x7FFFFF) Numbers preceded should interpreted hex, numbers followed should interpreted binary. values sent CS4923/4/5/6/7/8/9 should converted hexadecimal. Likewise values read from part hexadecimal. AN121REV2 AN121 Audio Manager Write Opcode 0x88; Read Opcode 0x09; Read Response Opcode 0x89 Write Message 0x8800HH 0xhhhhhh Read Request Message 0x0900HH; Read Response Message 0x8900HH 0xhhhhhh 0xHH index 0xhhhhhh data value Index 0x00 Variable Audio_Mgr_Control Dataword Content 0/1= Disable/Enable unsolicited message notification change audio configuration input bitstream (Valid only AC-3® application). "Unsolicited Messages (Read-Only)" page more details 0/1= Disable/Enable bypassing autodetection start-up, i.e. first time after download/reset. (Valid only with Autodetect_Enable==1). NOTE: enabled, during readback this reserved read Autodetect_Enable 0/1= Disable/Enable autodetect functionality. PLL_Enable Disable/Enable Phase Locked Loop generation clock. mandatory that enabled CS492X. Kickstart_Enable Disable/Enable Kickstart application. Default 0x000000 0x04 Ls_Delay 0.15 left surround delay (Ls_Delay) +15ms. other words, Ls_Delay Left Surround delay will 25ms. Note: Ls_Delay will only have effect when Logic enabled when input stream MPEG encoded. Default* 0.15 right surround delay (Rs_Delay) +15ms. other words, Rs_Delay Right Surround delay will 25ms. Note: Rs_Delay will only have effect when Logic enabled when input stream MPEG encoded. Default* 0x800001-0x7FFFFF (-1.0 1.0). Default* 0x7FFFFF 0x800001-0x7FFFFF (-1.0 1.0). Default* 0x7FFFFF 0x800001-0x7FFFFF (-1.0 1.0). Default* 0x7FFFFF 0x800001-0x7FFFFF (-1.0 1.0). Default* 0x7FFFFF 0x800001-0x7FFFFF (-1.0 1.0). Default* 0x7FFFFF 0x800001-0x7FFFFF (-1.0 1.0). Default* 0x7FFFFF 0x800001-0x7FFFFF (-1.0 1.0). Default* 0x7FFFFF Unmute/mute audio. This soft mute. Default Channel typea Digital Audio Output Each channel must mapped only unique output. Default* 0(L) Channel typea Digital Audio Output Each channel must mapped only unique output.Default* 2(R) Table Audio Manager 0x05 Rs_Delay 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f Master_Volume L_Volume C_Volume R_Volume Ls_Volume Rs_Volume LFE_Volume Mute DAO0_Channela DAO1_Channela AN121REV2 AN121 Index 0x10 0x11 0x12 0x13 0x16 0x17 0x18 Variable DAO2_Channela DAO3_Channela DAO4_Channela DAO5_Channela Last_Unsolicited_Message PLL_Register_1 PLL_Register_2 Dataword Content Channel typea Digital Audio Output Each channel must mapped only unique output.Default* 3(Ls) Channel typea Digital Audio Output Each channel must mapped only unique output.Default* 4(Rs) Channel typea Digital Audio Output Each channel must mapped only unique output.Default* 1(C) Channel typea Digital Audio Output Each channel must mapped only unique output.Default* 5(LFE) Last Unsolicited Message Value (see Section 4.5) READ ONLY Default=0x000000 Register value Phase Locked Loop generation). Default* 0x07f270 (CLKIN=12.288MHz, DSPCLK=60MHz) Register value Phase Locked Loop generation). Default* 0x0001fe (CLKIN=12.288MHz, DSPCLK=60MHz) Table Audio Manager (Continued) Notes: Mapping should setup before kickstart application should always complete one-to-one, i.e. each should mapped only Channel type. Channel type corresponds Channels respectively. 4.1.1 Audio_Control: (Index 0x00) Bit_15 Makes CS492X sensitive changes Audio configuration reported input bitstream. Whenever there change MODE, EXT_BIT_STREAM_PRESENT, CENTER, SURROUND variables, CS492X will issue unsolicited messsage (see Unsolicited Messages (Read-Only), Section 4.5). Disables Enables Maintains CS492X autodetect mode, bypasses autodetection (directly enters input data processing) start-up, i.e. first time after download/reset. This should only changed after download, soft reset, Application Restart. state autodetect should modified during run-time. Disables Startup_Autodetect_Bypass Enables Startup_Autodetect_Bypass unsolicited message generated CS492X processing successful. However, data format subsequently found wrong type, autodetect messaging will generated CS492X usual. above Startup_Autodetect_Bypass mode useful saving autodetect latency when controller already knows that current input data format decodable downloaded application. controller usually aware this autodetection message from previous (most recent) downloaded application. Notes:If this mode enabled, readback value reserved (either received should ignored). AN121REV2 AN121 Autodetect_Enable Puts CS492X into autodetect mode (see Unsolicited Messages (Read-Only), Section 4.5). This should only changed after download, soft reset, Application Restart. state autodetect should modified during run-time. Disables Autodetect Enables Autodetect PLL_Enable Enables Phase Locked Loop (PLL) generate internal DSPCLK from desired external CLKIN. Disables Enables register values PLL_Register_1 (0x17) PLL_Register_2 (0x18) define desired clock reference CLKIN used. default values download setup DSPCLK from 12.288 external CLKIN. CLKIN 11.2896 MHz, PLL_Register_1=0x24BC34 PLL_Register_2 0x0001fe should used. These register values should downloaded prior Kickstart with PLL_Enable. Kickstart Enable Puts CS492X into run-time mode. Indicates that hardware software configuration been completed CS492X start application. Application continues waiting kickstart. Application kickstarted AN121REV2 AN121 MPEG Manager Write Opcode 0x8C; Read Opcode 0x0D; Read Response Opcode 0x8D Write Message 0x8C00HH 0xhhhhhh Read Request Message 0x0D00HH; Read Response Message 0x8D00HH 0xhhhhhh 0xHH index 0xhhhhhh data value Index 0x00 Variable MPEG_Control Dataword Content Bits 7:4: Output_Mode Surround Encoded. Reserved. Reserved. Reserved. (with Logic decode, (with Logic decode, MPEG_Enable Disable/Enable MPEG decoding. Default 0x000070 [MPG_ code] Default 0x000000 [MPS_ code] NOTE: Undesired Channel outputs should explicitly muted setting corresponding Ch_Vol (see Audio Manager) 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e LAYER PROTECTION_BIT BITRATE_INDEX SAMPLING_FREQUENCY PADDING_BIT PRIVATE_BIT MODE MODE_EXTENSION COPYRIGHT ORIGHOME EMPHASIS N_AD_BYTES Extension lower frequencies, ISO/IEC 11172-3 ISO/IEC 13818-3 READ-ONLY bits indicate which layer used READ-ONLY stream protected, protected READ-ONLY 4-bit index bitrate table READ-ONLY 2-bit index sampling frequency table READ-ONLY padding, padding exists READ-ONLY reserved non-ISO purposes READ-ONLY bits indicate audio configuration mode (for channels only) READ-ONLY bits indicate which sub-bands intensity stereo READ-ONLY copyright, copyright protected bitstream READ-ONLY bitstream copy, bitstream original READ-ONLY bits indicate which type de-emphasis used READ-ONLY bits: number bytes used MPEG-1 base frame ancillary data field extension stream exists READ-ONLY Table MPEG Manager EXT_BIT_STREAM_PRESENT extension stream present, ext. present READ-ONLY AN121REV2 AN121 Index 0x0f 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 CENTER SURROUND AUDIO_MIX DEMATRIX_PROCEDURE Variable Dataword Content bits indicate presence bandwidth center channel READONLY bits indicate whether surround channels present secondary stereo exists READ-ONLY present, present READ-ONLY indicate whether signal mixed large listening rooms READ-ONLY bits indicate which de-matrix procedure used READ-ONLY NO_OF_MULTI_LINGUAL_CH bits: number multi-lingual channels present multi-channel extension READ-ONLY MULTI_LINGUAL_FS MULTI_LINGUAL_LAYER COPYRIGHT_ID_BIT COPYRIGHT_ID_START indicate same main audio READ-ONLY indicate which layer used READ-ONLY bit: part 72-bit copyright identification number READ-ONLY start copyright identification this frame, start copyright identification this audio frame READ-ONLY Table MPEG Manager (Continued) 4.2.1 MPEG_Control Bits Output_Mode These bits output speaker downmix configuration. When configuring Output _Mode, first individual volumes each undesired channel should Next, desired output mode should specified. This should done before kickstart application. example, output mode chosen, volume must explicitly Audio Manager module guarantee output those channels. Dolby Surround compatible (with Logic decode, (with Logic decode, 4.2.2 MPEG Stream Information Table lists complete READ-ONLY variables that reported host MPEG Decoder module. These read using appropriate Read Request, Read Response sessions. example, read MODE value, host should issue 3-byte Read Request 0x0D0008 then read 6-byte Read Response 0x8D0008, 0x00000h, where dataword (latter bytes) indicates reported value MODE. Please refer MPEG Specification ISO/IEC 11172-3 ISO/IEC 13818-3 more information these stream variables. AN121REV2 AN121 Logic Manager Write Opcode 0x8E; Read Opcode 0x0F; Read Response Opcode 0x8F Write 0x8E00HH 0xhhhhhh Read Request 0x0F00HH; Read Response 0x8F00HH 0xhhhhhh 0xHH index 0xhhhhhh data value Index 0x00 Variable ProLogic_Control Dataword Content Autobalance_Enable 0/1= Disable/Enable Autobalance. Btype_NR_Enable 0/1= Disable/Enable B-Type Noise Reduction. ProLogic_Enable Disable/Enable Logic decoding. Default 0x000000 Table Logic Manager Phantom modes enabled selecting output modes which include center channel output. center channel audio mixed into left right speakers. Phantom modes would include: Output_Mode 3dB) Wide mode used audio outputs which connected full-bandwidth speaker. Wide mode particular channel obtained disabling high pass filter that channel within bass manager module. AN121REV2 AN121 Generalized Bass Manager Write Opcode 0x94; Read Opcode 0x15; Read Response Opcode 0x95 Write 0x9400HH 0xhhhhhh Read Request 0x1500HH; Read Response 0x9500HH 0xhhhhhh 0xHH index 0xhhhhhh data value Index 0x00 Variable Bass_Mgr_Control Dataword Content LFE_Only_Sub Disable/Enable Only subwoofer. 4th_Order_LPF Disable/Enable order output summer. must addition enable order LPF. Disable/Enable output summer. HPF_L Disable/Enable channel HPF. HPF_C Disable/Enable channel HPF. HPF_R Disable/Enable channel HPF. HPF_Ls Disable/Enable channel HPF. HPF_Rs Disable/Enable channel HPF. Bass_Mgr Disable/Enable Bass Manager post-processing. Default 0x000000 0x000000-0x7FFFFF Level adjustment input channel pass-through Default* 0x7FFFFF 0x000000-0x7FFFFF Level adjustment input channel input pass-through. Default* 0x7FFFFF 0x000000-0x7FFFFF Level adjustment input channel input pass-through Default* 0x7FFFFF 0x000000-0x7FFFFF Level adjustment input channel pass-through Default* 0x7FFFFF 0x000000-0x7FFFFF Level adjustment input channel pass-through. Default* 0x7FFFFF 0x000000-0x7FFFFF Level adjustment input channel pass-through. Default* 0x7FFFFF 0x000000-0x7FFFFF Level adjustment bass summer output contribution channel output. 0x01 0x02 0x03 0x04 0x05 0x06 0x07 Input_L_Level Input_C_Level Input_R_Level Input_Ls_Level Input_Rs_Level Input_LFE_Level Sum_Output_L_Level 0x08 Sum_Output_C_Level Default* 0x000000 0x000000-0x7FFFFF Level adjustment bass summer output contribution channel output. Default* 0x000000 0x000000-0x7FFFFF Level adjustment bass summer output contribution channel output. 0x09 Sum_Output_R_Level 0x0a Default* 0x000000 Sum_Output_Ls_Level 0x000000-0x7FFFFF Level adjustment bass summer output contribution channel output. Default* 0x000000 Table Bass Manager AN121REV2 AN121 Index 0x0b Variable Dataword Content Default* 0x000000 0x000000-0x7FFFFF Level adjustment input contribution channel output. Default* 0x000000 0x000000-0x7FFFFF Level adjustment input contribution channel output. Sum_Output_Rs_Level 0x000000-0x7FFFFF Level adjustment bass summer output contribution channel output. LFE_L_Level 0x0c 0x0d LFE_C_Level 0x0e 0x0f 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1a Default* 0x000000 0x000000-0x7FFFFF Level adjustment input contribution channel output. Default* 0x000000 LFE_Ls_Level 0x000000-0x7FFFFF Level adjustment input contribution channel output. Default* 0x000000 LFE_Rs_Level 0x000000-0x7FFFFF Level adjustment input contribution channel output. Default* 0x000000 Sum_Input_L_Level 0x000000-0x7FFFFF Level adjustment input channel contribution bass summer input. Default* 0x16C311 (-15 Sum_Input_C_Level 0x000000-0x7FFFFF Level adjustment input channel contribution bass summer input. Default* 0x16C311 (-15 Sum_Input_R_Level 0x000000-0x7FFFFF Level adjustment input channel contribution bass summer input. Default* 0x16C311 (-15 Sum_Input_Ls_Level 0x000000-0x7FFFFF Level adjustment input channel contribution bass summer input. Default* 0x16C311 (-15 Sum_Input_Rs_Level 0x000000-0x7FFFFF Level adjustment input channel contribution bass summer input. Default* 0x16C311 (-15 Sum_Input_LFE_Level 0x000000-0x7FFFFF Level adjustment input channel contribution bass summer. Default* 0x47FACD LPF_48_b0 0x000000-0x7FFFFF coefficient Pass Filter, Fs=48 KHz. Default* 0x014D4C LPF_48_b1 0x000000-0x7FFFFF coefficient Pass Filter, Fs=48 KHz. Default* 0x014D4C LPF_48_a1 0x000000-0x7FFFFF coefficient Pass Filter, Fs=48 KHz. Default* 0x7D6567 HPF_48_b0 0x000000-0x7FFFFF coefficient High Pass Filter, Fs=48 KHz. Default* 0x7F7750 Table Bass Manager (Continued) LFE_R_Level AN121REV2 AN121 Index 0x1b 0x1c 0x1d 0x1e 0x1f 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 0x28 Variable HPF_48_b1 HPF_48_a1 LPF_44_b0 LPF_44_b1 LPF_44_a1 HPF_44_b0 HPF_44_b1 HPF_44_a1 LPF_32_b0 LPF_32_b1 LPF_32_a1 HPF_32_b0 HPF_32_b1 HPF_32_a1 Dataword Content 0x000000-0x7FFFFF coefficient High Pass Filter, Fs=48 KHz. Default* 0x8088B0 0x000000-0x7FFFFF coefficient High Pass Filter, Fs=48 KHz. Default* 0x7EEEA0 0x000000-0x7FFFFF coefficient Pass Filter, Fs=44 KHz. Default* 0x016A73 0x000000-0x7FFFFF coefficient Pass Filter, Fs=44 KHz. Default* 0x016A73 0x000000-0x7FFFFF coefficient Pass Filter, Fs=44 KHz. Default* 0x7D2B19 0x000000-0x7FFFFF coefficient High Pass Filter, Fs=44 KHz. Default* 0x7F6B48 0x000000-0x7FFFFF coefficient High Pass Filter, Fs=44 KHz. Default* 0x8094B8 0x000000-0x7FFFFF coefficient High Pass Filter, Fs=44 KHz. Default* 0x7ED68F 0x000000-0x7FFFFF coefficient Pass Filter, Fs=32 KHz. Default* 0x01F171 0x000000-0x7FFFFF coefficient Pass Filter, Fs=32 KHz. Default* 0x01F171 0x000000-0x7FFFFF coefficient Pass Filter, Fs=32 KHz. Default* 0x7C1D1F 0x000000-0x7FFFFF coefficient High Pass Filter, Fs=32 KHz. Default* 0x7F3365 0x000000-0x7FFFFF coefficient High Pass Filter, Fs=32 KHz. Default* 0x80CC9B 0x000000-0x7FFFFF coefficient High Pass Filter, Fs=32 KHz. Default* 0x7E66CA Table Bass Manager (Continued) Bass Manager best described with block diagram. Figure shows topology filter used both pass high pass filters. This filter represents first order filters cascaded implement second order filter. order filters Figure implemented back back. Depending coefficient values, either second order pass second order high pass implemented. default frequency this filter corner frequency changed downloading values coefficients Note that since first order filters cascaded tain second order filter, corner frequency design first order prototype adjusted obtain desired overall frequency when such first order filters cascaded. effect, first order filter should designed yield desired overall corner frequency. Figure shows processing unit each output channels (except LFE) Figure shows summing module used redirect bass subwoofer channel AN120 examples many typical bass management configurations. AN121REV2 AN121 Figure Filter Topology Input_X_Level Input Channel Output Channel HPF_X_Enable Sum_Output_X_Level LFE_X_Level Summing Module Summing Module Figure Bass Manager Processing Unit Sum_Input_X_Level Subwoofer Input_LFE_Level LFE_Only_Sub_Enable Processing Unit LPF_Enable Figure Subwoofer Summing Module AN121REV2 AN121 Unsolicited Messages (Read-Only) Write Message. Read Request. Unsolicited Read Response 0x8700HH 0xhhhhhh 0xHH index, 0xhhhhhh data value Index 0x00 Variable Autodetect_Response Dataword Content Decodable_Stream_Flag= This stream not/is decodable application need download Bits 22:6 Reserved. Non_IEC61937_Stream_Flag= This stream not/is IEC61937 compressed data. Non_IEC61937_Stream_Flag=1 Bits Non_IEC61937 Stream Descriptor. 0x00 Silent Input Data (Out Application Sync) 0x01 Format-16 elementary stream 0x02 Format-14 elementary stream 0x03 Linear stream 0x04 HDCD stream (only available HDCD application) 0x05-0x1F Reserved Non_IEC61937_Stream_Flag=0 Bits IEC61937 Stream Descriptor Identical bits [4:0] burst datatype descriptor IEC61937 specification. Description data-type field reproduced below from IEC61937 spec.(current 11/97): 0x00 Never Reported. (Null data ignored CS492X) 0x01 AC-3 data 0x02 Reserved. 0x03 Never Reported. (Pause ignored CS492X) 0x04 MPEG-1 Layer data 0x05 MPEG-1 Layer data MPEG-2 without extension. 0x06 MPEG-2 data with extension 0x07 Reserved. 0x08 MPEG-2 Layer sampling frequency 0x09 MPEG-2 Layer sampling frequency 0x0A Reserved 0x0B DTS-1 data (512-sample bursts). 0x0C DTS-2 data (1024-sample bursts). 0x0D DTS-3 data (2048-sample bursts). 0x0E 0x1F Reserved Bits 23:0 Reserved. will send this message indicate that following changed MPEG stream: MODE, EXT_BIT_STREAM_PRESENT, CENTER, SURROUND, LFE. host's responsibility check exactly what changed. Bits 22:0 Reserved. Table Unsolicited Messages 0x03 Audio_Configuration_ Changed 0x10 PLL_Out_Of_Lock AN121REV2 AN121 4.5.1 Autodetect Operation sequence events involving autodetection described below from host's perspective. This general example CS492X, when using MPEG code code application restart available thus should used. Host downloads CS492X with tentative application code, this example will AC3_****.LD. Host then configures CS492X hardware appropriately sets application parameters desired including enable desired application. this example will code configured AC-3® decode. Host then kickstarts CS492X with Autodetect enabled (see Section 4.1, Audio Manager, details). autodetect module enabled application CS492X analyzes input maximum non-silent/nonpause data determines content input bitstream. enabled application play detected input (i.e. AC-3 detected this case), then CS492X issues Unsolicited Message host indicating datatype with Decodable_Bitstream_Flag=1. example AC-3 stream, message would 0x870000 0x800001. CS492X then goes ahead processes according application parameters setup Step above. enabled application cannot play detected input (say Non-IEC61937 detected), then CS492X soft mutes outputs, issues Unsolicited Message host indicating datatype with Decodable_Bitstream_Flag=0. example, message would 0x870000 0x000021. receiving this message, host repeats Steps onwards this time downloads code CS492X (along with correct hardware configuration application configuration with autodetect enabled). Subsequently, will detected within successfully played code, after sending corresponding unsolicited message (0x870000 0x800021). NOTE: This example assumes CS4926 CS4928 being used since only play DTS. case being detected CS4923/4/5/7/9 MPEG detected CS4923/4/6/8/9, host should display appropriate user message front panel stating that detected stream (DTS/MPEG) cannot played this receiver. After above steps while CS492X successfully playing input bitstream (still AC-3 example), host receives external information that input been changed (e.g. user selects source using front panel buttons), then before switching input data CS492X, host should send Application Restart message (see Section 4.1, Audio Manager) Soft Reset. application restart used, this effectively puts CS492X Step without changing output hardware configuration (i.e. output clocks interrupted). input configuration would need changed different than default. Soft Reset issued then entire hardware configuration needs resent. host should then repeat Steps 5a/b described above after delivering input stream CS492X. input content detected unchanged (still AC-3 example), CS492X responds continues processing Step This situation will happen stream selected user also AC-3. input content detected different (non-AC-3 example), CS492X responds Step continues monitoring AN121REV2 AN121 input stream change content. During runtime, while successfully playing input bitstream, CS492X also simultaneously monitors input. Note that CS492X only active input. `input' defined receiving data which application configured (e.g. application configured PCM, receiving data input. application configured compressed data, receiving compressed data input). soon CS492X detects change bitstream longer AC-3, original example), then CS492X automatically reverts Step i.e. analyzes input determine content. This automatic version Step above, intended only cover cases where host aware possible upstream content changes. Whenever possible, host should convey information about possible change input Step input content detected different (non-AC-3 example), CS492X reverts Step compressed data streams code will also report Unsolicited Message 0x870000 0x800020 indicate out-of-sync condition when decoder loses sync with incoming stream silent input data. This informative message action needed host. input content detected unchanged (still AC-3 example), CS492X continues processing like Step without requiring further action from host. This situation could arise pause track change upstream source, like from player. case compressed data being played currently (like AC-3 example), host could out-of-sync Unsolicited Message followed AN121REV2 Unsolicited Message indicating AC-3 data. presence out-of-sync messages `special' functions like pause track change completely dependent upon audio source (such player). case application that currently active, silence less than (default 48000 samples, i.e. Second KHz) before transitioning PCM, CS492X continues process input data change occurred. However, during processing, silence more than PCM_Autodetect_ Silence_Threshold, CS492X jumps Silent Input Data state, output muted (transparent silent input anyway). Transition this Silent Input Data state reported Unsolicited Message (0x870000 0x800020). This message informative only, action should taken host. CS492X effectively Step above now, waiting autodetect input once non-silent data appears. Once input data successfully detected, corresponding Unsolicited Message issued host process continues above. Please Figure overview previously described flow. 4.5.2 Special Considerations Autodetect Autodetect should only enabled disabled when sending kickstart command. Changing state Autodetect other time produce unpredictable results function input application that currently enabled. host needs change state Autodetect time some reason, soft reset should sent. MPEG code, MPEG decode must enabled before autodetect enable sent with kickstart. Autodetect function senses MPEG AN121 data, then appropriate Unsolicited Message sent decode will start automatically without direction from host. Perform Kickstart with Autodetect summary, following recommended procedure when using autodetect. Please Figure overview previously described summary. Download code Soft Reset Application Restart) Hardware Configuration (for download Soft Reset) Application Configuration (including enable desired application) Kickstart with autodetection enabled. Time (Autodetect Enabled) INTREQ goes User Reads Unsolicited Response Last Input Current Input Current Input Silence Host Does Nothing Last Input Compressed Bitstream Current Input Different Compressed Bitstream Host Loads Corresponding AC-3, MPEG Code, Configures Hardware Performs Kickstart with Autodetect Bypass one/all follwing: Notes Download Application Code (AC-3, PCM, DTS, MPEG, etc.) Download Successful Last Input Bitstream Current Input Compressed Bitstream Host Loads Corresponding AC-3, MPEG Code, Configures Hardware Performs Kickstart Note Configure Hardware Last Input Compressed Bitstream Current Input Bitstream Host Loads Corresponding Code, Configures Hardware Performs Kickstart Note Configure Application (Audio Manager, etc.) Figure Autodetect Flow Chart Notes: Host need load AC-3 code AC-3 already loaded passing-through PCM. Host need only perform Soft Reset, Configure Hardware perform Kickstart perform Application Restart, Configure Inputs, perform Kickstart. Host need reload AC-3 code AC-3 already loaded, will pass-through PCM. Host need only perform Soft Reset, Configure Hardware perform Kickstart perform Application Restart, Configure Inputs, perform Kickstart. Perform Kickstart with Autodetect Time (Autodetect Enabled) Figure Typical Download Configuration Notes: Check file version. Contact your most recent version. Check make sure file correct chip being used. AN121REV2 AN121 APPLICATION CONFIGURATION EXAMPLES This section covers various application modes available with CS4925/7. Although many application modes possible, only most common modes have been presented here examples. This should considered limit what modes part system designer configure CS4925/7 needs system. Table following section provides message sent what message doing. Care should taken guarantee that correct value sent directly after associated opcode index word. command kickstart application should always sent last. MPEG decode with Autodetect this mode input should compressed MPEG. data will taken from compressed input port designated hardware configuration message. Table gives description MPEG decode with Autodetect. input this port MPEG Autodetect function will notify host described section 4.5. Figure example pseudocode configure either part basic MPEG decode. This pseudocode used template other configurations swapping message array size. Module MPEG Audio Manager Index MPEG Control Audio Manager Control Description Output Mode MPEG Enabled Autodetect Enabled Enabled Kickstart Application Opcode Index 0x8C0000 0x880000 Value 0x000071 0x001011 Table Enabling MPEG decode with Autodetect void MPEG_Config() unsigned char MPEG_config_message[] {0x8C, 0x00, 0x00, 0x00, 0x00, 0x71, 0x88, 0x00, 0x00, 0x00, 0x10, 0x11}; Replace with depending protocol Figure Pseudocode Example Configure Part MPEG Decode with Autodetect AN121REV2 Other recent searchesNTD4857N - NTD4857N NTD4857N Datasheet MPC885RM - MPC885RM MPC885RM Datasheet ML13155 - ML13155 ML13155 Datasheet MC13155 - MC13155 MC13155 Datasheet MC10E - MC10E MC10E Datasheet 100E158 - 100E158 100E158 Datasheet KM2520EJ - KM2520EJ KM2520EJ Datasheet 1SGD - 1SGD 1SGD Datasheet IRFB23N15DPbF - IRFB23N15DPbF IRFB23N15DPbF Datasheet IRFS23N15DPbF - IRFS23N15DPbF IRFS23N15DPbF Datasheet IFP830 - IFP830 IFP830 Datasheet IFLP-4040DZ-01 - IFLP-4040DZ-01 IFLP-4040DZ-01 Datasheet AS03608MR-SC-R - AS03608MR-SC-R AS03608MR-SC-R Datasheet
Privacy Policy | Disclaimer |