M65863FP is a single device. The device decodes AC-3
bitstreams into PCM audio. Dolby Digital (AC-3) is a multi-channel audio coding algorithm developed by
Dolby Laboratories, Inc.
• Decoding
1) 5.1 ch AC-3 bitstream
2) Dolby Pro Logic*1 encoded 2ch Dolby Digital (AC-3) bitstream
3) Dolby Pro Logic encoded 2ch PCM data
• All input combinations from 1 to 5.1 channels
• Output : mono 5.1 surround
• Sampling rates : 32kHz, 44.1 kHz, 48 kHz and 96 kHz (96 kHz is for linear PCM only)
• Supports a maximum bit rate of 640 kbps at a full service (up to 448 kbps when 32 kHz sampling rates)
• 2 DIR (Digital Audio Interface Receiver)/ADC input interfaces
• Serial input bitstream interface for DEMUX
• PCM output interface
Standard 3-wire DAC output interface (data,clock,LR clock), 16/18/20/24 bit DAC word size
• Supports IEC958 digital audio output for Dolby Digital (AC-3) data stream
• I2C*2 interface and clocked serial (4 line) interface for host microcontroller
• Generates audio test noise
• 2nd DSP I/F (twice higher PCM transfer rate)
• Controllable dynamic range compression
• Programmable center and surround channel delays
• Dialogue level control
• No external memory required (M65863FP doos not have memory space for surround delay)
Dolby, Dolby Digital (AC-3), and Pro Logic are registered trademarks of Dolby Laboratories Licensing Corp.
Available only to licensees of Dolby Laboratories Licensing Corporation, San Francisco, CA 94111, USA, (415) 5580200, from whom licensing and application information must be obtained.
*2 Phillips Semiconductors, "I2C bus specification",January,1992
Table 3.1 shows input/output pins. "low active" pins are added "_" to tail of pin name (ex. _AERR).
Table 3.1 Input/Output Pins
Pin NamePins I/O Out VoltageDescription
1 VDD5V7-Voltage supply 5V (I/O)
2 ASOUT1I/O 2mAD5
3 CDATA1I/O 2mAD5
4 CCLK1I/O 2mAD5
5 RSYCREQ1O 2mAD5Indication of sync word lock condition
6 SYNCRST1ID5Sync world detection start signal
7 ADVLDS1ID5Indication of valid data
8 ADATAS1ID5Data input from DEMUX
9 ACLKS1ID5Clock input from DEMUX
10 VDD3V3-Voltage supply 3.3V
11 GND7IGND
12 VDD5V
13 _ADREQ1O 2mAD5Data Request for DEMUX
14 _AMUTE1ID5
15 DOTX1O 2mAD5Digital audio interface IEC958 output
16 DIRX1ID5Digital audio interface IEC958 input
17 ALRCK11ID5L/R clock from DIR/ADC
18 ACLK11ID5Data from DIR
19 ADATA11ID5Bit clock from DIR/ADC
20 GND
21 VDD5V
22 DEMPH1ID5De-emphasis control
23 ALRCK21ID5L/R clock from DIR/ADC
24 ACLK21ID5Bit clock from DIR
25 ADATA21ID5Data from DIR
26 MCLKI1ID5Audio master clock input
27 GND
28 VDD5V
29 MCLKO1ID5Audio master clock output
30 HMCLKO1ID5Audio master clock output (1/2MCLKI)
31 DOLR1O 2mAD5PCM output for L ch and R ch
32 DOCW1O 2mAD5PCM output for C channel SW ch
33 DOSS1O 2mAD5PCM output for SL ch and SR ch
Indication of audio data output timing (main chip output / sub chip
input)
Dynamic range compression data input from sub chip / output to main
chip
Dynamic range compression data transfer clock input from sub chip /
output to main chip
Mute sound0 (0 : Mute ON, 1 : Mute OFF)
MITSUBISHI ELECTRIC CORPORATION4
No.
Product NoteM65863FP
April 1998Dolby Digital Decoder
Pin NamePins I/O Out VoltageDescription
34 GND
35 VDD5V
36 BCLK1O 4mAD5Bit clock for PCM output
37 LRCK1O 4mAD5LR clock for PCM output
38 2LRCK1O 2mAD5LR clock for 2nd DSP
39 2BCLK1O 2mAD5Bit clock for 2nd DSP
40 VDD3V
41 PLLGND1-GND for PLL
42 PVCO1OP3.3 Processor clock output for crystal
ACLK1Bit clock input for DIR/ADC input (Line 1).
ADATA1Data input for DIR/ADC interface (Line 1). Latched at the rising edge of ACLK1.
ALRCK1LR clock input for DIR/ADC interface (Line 1).
ACLK2Bit clock input for DIR/ADC input (Line 2).
ADATA2Data input for DIR/ADC interface (Line 2). Latched at the rising edge of ACLK2.
ALRCK2LR clock input for DIR/ADC interface (Line 2)
ACLKSClock for DEMUX interface.
MITSUBISHI ELECTRIC CORPORATION5
Data enable instruction for DEMUX interface. Data is input when this signal is enabled
(0).
_ADREQUsed in the data transmission control of DEMUX interface.
SYNCRSTSynchronization lock cancel signal. M65863FP starts detecting sync word when this
signal is disabled.
RSYCREQSYNCRST request signal which is enabled when M65863FP comes out of
synchronization.
_AMUTEAudio mute output signal. Output is muted when this signal is enabled (0). This signal is
valid for both DIR/ADC interface and DEMUX interface.
<Audio output interface>
DOLRPCM output terminal. When control register dspif is 0, L and R channel data are output.
When dspif is 1, L, R, C and SW channel data are output.
DOCWPCM output terminal. When control register dspif is 0, C and SW channel data are
output. When dspif is 1, SL and SR channel data are output.
DOSSPCM output terminal. When control register dspif is 0, SL and SR channel data are
output.
BCLKBit clock output.
LRCKLR clock output.
2BCLKDouble-rate bit clock. Used in DSP interface.
2LRCKDouble-rate LR clock. Used in DSP interface.
<Main/Sub Chip interface>
CHIPMODSpecifies the chip mode. Decodes the main service when 0, and decodes the associate
service when 1. Select decoding of main service when it is not necessary to decode dual
streams.
CCLKTransmission clock used in data transmission between main and sub chips during dual-
stream decoding. Sub chip becomes the clock master. This is valid only when control
register asmix is 1.
CDATAData transmission line from sub chip to main chip during dual-stream decoding. This is
valid only when control register asmix is 1.
ASOUTSynchronization signal for dual-stream output. CCLK, CDATA and ASOUT terminals
may be open when dual-stream decoding is not required (when control register asmix is
0).
<MCU interface>
MCUSELSelects which of synchronized serial and I2C is to be used as MCU interface.
Synchronized serial is selected when this is 0, and I2C is selected when 1.
HSCL/SCKBecomes data transmission clock input in either case of I2C or synchronized serial.
HSDA/SIBecomes data input/output terminal in the case of I2C, and data input terminal in the case
of synchronized serial.
ADR/SOBecomes chip address selection terminal in the case of I2C, and data output terminal in
the case of synchronized serial.
_NC/SSBecomes enable signal in the case of synchronized serial. In the case of I2C, this may be
left open because it is not used.
<Audio master clock>
MCLKIAudio master clock input.
MCLSI [0:1]Indicates whether the audio master clock which is input from MCLKI is 512 fs, 384 fs or
256 fs. Only 384 fs or 256 fs can be selected when the sampling frequency is 96kHz.
MCLKOAudio master clock output which gives MCLKI as through-output.
Product NoteM65863FP
April 1998Dolby Digital Decoder
ADATASData input for DEMUX interface. Latched at the rising edge of ACLKS.
_AVLDS
MITSUBISHI ELECTRIC CORPORATION6
Enabled when control register demph is 10, turning de-emphasis ON when this is 0, and
de-emphasis OFF when 1.
DECSTATIndicates the current decoding status: 1 during normal decoding and 0 at a time of error.
DIRSTATIndicates the current DIR input stream: 1 in the case of Dolby Digital AC-3 input, 0 in the
case of PCM input.
Product NoteM65863FP
April 1998Dolby Digital Decoder
HMCLKOAudio master clock output which gives MCLKI at 1/2-divided frequency.
Dual stream (main effect and Associate service) can be decoded with 2 M65863FP. In the case, the
register addresses for a main chip (which decodes main effect) and those for a sub chip (which decodes
associate service) are different.
In the following sections, only the register address for a main chip will be shown. For a sub chip you
should add h'40 to the corresponding register address for a main chip. For a example, the address of the
control register "synclock" is h'14 for a main chip and h'54 for a sub chip. In this may, the address range
will be following.
Main chip : h'00~h'3f
Sub chip: h'40~h'7f
Product NoteM65863FP
April 1998Dolby Digital Decoder
Chapter 4
Registers
Table 4.1 shows the registers overview.
Table 4.1 Registers Overview
RegisterByteDescription
Dolby Digital (AC-3) Bitstream Information13 • Synchronization Information
• Bitstream Information
IEC958 Burst Information1• IEC958 Burst Information
Status6• CRC Result
• Synchronization Condition
• Pointer to the input buffer
Control36 • I/O Signals Control
• Decoding Status Control
• Channel delay control
• Dynamic Range Control
• Pro Logic Control
• Calibration Noise Control
• Mute Control
• IEC958 Category code input
Test1• Monitor of overflow and underflow
• Register Address
MITSUBISHI ELECTRIC CORPORATION8
s field indicates nominal bit rate. This code is used along with the sample rate code to determine the
number of bytes per frame.
address h'01
Bitstream Identification (bsid)5 bits
This field contains the version number of the coder syntax.
M65863FP only supports 0 to 8.
Product NoteM65863FP
April 1998Dolby Digital Decoder
4.1Dolby Digital (AC-3) Bitstream Information Registers
Table 4.2 shows Dolby Digital (AC-3) bitstream information registers.
Table 4.2 Dolby Digital (AC-3) Bitstream Information Registers
Sample Rate Code (fscod)2 bits
This field indicates sampling rate according to the following table.
fscodSampling Rate
0 048 kHz
0 144.1 kHz
1 032 kHz
1 1Reserved
Frame Size Code(frmsizecod)6 bits
Thi
MITSUBISHI ELECTRIC CORPORATION9
When acmod is 010, these bits indicate whether or not the program has been encoded in Dolby Surround.
If this bit has a value of 1, the sub-woofer channel is on. If this bit has a value of 0, the sub-woofer
channel is off.
Copyright Bit (copyrightb)1 bit
If this bit has a value of 1, the bitstream is protected by copyright. If this bit has a value of 0, the bitstream
is not protected by copyright.
Original Bitstream (origbs)1 bit
If this bit has a value of 1, this bitstream is an original bitstream. If this bit has a value of 0, this bitstream
is a copy of another bitstream.
Product NoteM65863FP
April 1998Dolby Digital Decoder
Bitstream Mode(bsmod)3 bits
This field indicates the type of service that the bitstream conveys as defined by the following table.
bsmodacmodType of Service
0 0 0anyMain audio service : complete main (CM)
0 0 1anyMain audio service : music and effects (ME)
0 1 0anyAssociated service : visually impaired (VI)
0 1 1anyAssociated service : hearing impaired (HI)
1 0 0anyAssociated service : dialogue (D)
1 0 1anyAssociated service : commentary (C)
1 1 0anyAssociated service : emergency (E)
1 1 10 0 1Associated service : voice-over (VO)
1 1 10 1 0 ~ 1 1 1 Main audio service : karaoke
address h'02
Audio Coding Mode (acmod)3 bits
This field indicates channel array for audio service.
If this bit is a 1, this bitstream has compression gain word which can use heavy dynamic range
compression.
address h'04
Compression Gain Word (compr)8 bits
If compre is a 1, this field indicates scale for the reproduced audio level in order to reproduce a very
narrow dynamic range.
address h'05
Language Code (langcod)8 bits
This field indicates the audio service language. If the language code doesn't exist in bitstream, this value
indicates h'00.
address h'06
Dynamic Range Gain Word (dynrng)8 bits
If dynrnge is a 1, this field indicates the scale of the reproduced audio level in order to reproduce an
ordinary dynamic range.
address h'07
Mixing Level (mixlevel)5 bits
This field contains the acoustic sound pressure level of the dialogue level of the final audio mixing
session.
Room Type (roomtyp)2 bits
This field indicates the type of mixing room used for the final audio mixing session.
If this bit is a 1, this bitstream has a dynamic range gain word for ch2 when acmod indicates dual mono
mode (acmod=000).
Compression Gain Word Exists, Ch2 (compr2e)1 bit
If this bit is a 1,this bitstream has a compression gain word for ch2 when acmod indicates dual mono
Product NoteM65863FP
April 1998Dolby Digital Decoder
address h'03
Dialogue Normalization (dialnorm)5 bits
This field contains how far the average dialogue level is below digital 100%.
Dynamic Range Gain Word Exists (dynrnge)1 bit
If this bit is a 1, this bitstream has dynamic range gain word which can use dynamic range compression.
Heavy dynamic range Compression Code Exists (compre)1 bit
Audio Production Information Exists (audprodie)1 bit
If this bit is a 1,this bitstream has mixing level data and room type data.
address h'08
Dialogue Normalization, Ch2 (dianorm2)5 bits
This field contains dialogue normalization for ch2 when acmod indicates dual mono mode (acmod=000).
Dynamic Range Gain Word Exists, Ch2 (dynrng2e)1 bit
MITSUBISHI ELECTRIC CORPORATION11
This field indicates dynamic range gain word for ch2 when acmod indicates dual mono mode
(acmod=000).
address h'0C
Mixing Level, Ch2 (mixlevel2)5 bits
This field contains mixing level for ch2 when acmod indicates dual mono mode (acmod=000).
Room Type, Ch2 (roomtyp2)2 bits
This field contains room type for ch2 when acmod indicates dual mono mode (acmod=000).
Audio Production Information Exists, Ch2 (audprodi2e)1 bit
This bit indicates audio production information for ch2 when acmod indicates dual mono mode
(acmod=000).
Product NoteM65863FP
April 1998Dolby Digital Decoder
mode (acmod=000).
address h'09
Compression Gain Word, Ch2 (compr2)8 bits
This field indicates compression gain word for ch2 when acmod indicates dual mono mode (acmod=000).
address h'0A
Language Code, Ch2 (langcod2)8 bits
This field indicates language code for ch2 when acmod indicates dual mono mode (acmod=000).
address h'0B
Dynamic Range Gain Word , Ch2 (dynrng2)8 bits
MITSUBISHI ELECTRIC CORPORATION12
3rd and 4th bit are reserved,and these values set '0'. If Data Type Code indicates Dolby Digital (AC-3)
Data,other 3 bits field indicates same as bsmod code.
Product NoteM65863FP
April 1998Dolby Digital Decoder
4.2IEC958 Burst Information Registers
IEC958 burst information registers are provided. Table 4.3 shows IEC958 burst information registers.
Table4.3 IEC958 Burst Information Registers
bit
Address01234567R/W
h'0Dburste0ierrflgidtdepR
address h'0D
Data Type Dependent Code (idtdep)5 bits
idtdepType of Service
0 0 0 0 0Main audio service : complete main (CM)
0 0 0 0 1Main audio service : music and effects (ME)
0 0 0 1 0Associated service : visually impaired (VI)
0 0 0 1 1Associated service : hearing impaired (HI)
0 0 1 0 0Associated service : dialogue (D)
0 0 1 0 1Associated service : commentary (C)
0 0 1 1 0Associated service : emergency (E)
0 0 1 1 1Associated service : voice-over (VO) , or main audio service : karaoke
Error Flag (ierrflg)1 bit
This field indicates error condition for burst data , according to the following table.
ierrflgStatus
0No error
1Error
Burst Data Exists (burste)1 bit
If this bit is a1, burst data which is assigned "istrnums" in control register exists.
MITSUBISHI ELECTRIC CORPORATION13
Product NoteM65863FP
April 1998Dolby Digital Decoder
4.3Status Registers
The default values are described in the bit fields shown in table 4.4.
Error Information (bserr)1 bit
This bit indicates error status.
bserrDescription
0The value of bsid is less than 8 and encode error doesn't exist
1The value of bsid is more than 9, or encode error exists
Decoding Condition Information (decode)1 bit
decodeDescription
0Regular decode
1Mute
Synchronous Detection Information (syncdet)1 bit
This bit indicates whether sync word was detected per frame or not.
syncdetDescription
0Sync word was detected
1Sync word was not detected
Synchronous Lock Information (synccon)1 bit
This bit indicates whether sync word is locked or not.
syncconDescription
0Sync word is locked
1Sync word is not locked
MITSUBISHI ELECTRIC CORPORATION14
Read pointer to the input data buffer. Read/Write operation are allowed when M65863FP is not decoding.
Only read operation is allowed when M65863FP is decoding.
address h'12
address h'13
Write Pointer to the Input Data Buffer (writepointer)16 bits
Write pointer to the input data buffer. Only read operation is allowed.
Product NoteM65863FP
April 1998Dolby Digital Decoder
address h'0F
CRC2 Checked Data (crc2err)2 bits
This field indicates the status of CRC error for CRC2.
Set the number of sync words required for entering the state where synchronization is established.
Default value is 2 (b'010). Set the value only once when M65863FP is in the initial state.
Specify the output format. Default value is 000 (MSB first right-justified, when LRCK is 1, Lch output).
This field can be changed at any time.
Product NoteM65863FP
April 1998Dolby Digital Decoder
bit
Address01234567R/W
h'2AkcoeffeR/W
h'2B
h'2CkcoefffR/W
h'2D
h'2EkcoeffgR/W
h'2F
h'30kcoeffhR/W
h'31
h'32kcoeffiR/W
h'33
h'34kcoeffjR/W
h'35
h'36kcoeffkR/W
h'37
address h'14
Synchronous Lock Control (synclock)3 bits
synclockDescription
0 0 0Reserved
0 0 1 ~ 1 1 1Number of sync words which must be detected before mute is canceled
Output Format (dacform)3 bits
dacformDescription
0 0 0MSB first right-justified format (when LRCK is 1, Lch output)
0 0 1LSB first right-justified format (when LRCK is 1, Lch output)
0 1 0I2S format (when LRCK is 1, Lch output)
0 1 1Reserved
1 0 0MSB first right-justified format (when LRCK is 0, Lch output)
1 0 1LSB first right-justified format (when LRCK is 0, Lch output)
1 1 0I2S format (when LRCK is 0, Lch output)
1 1 1Reserved
MITSUBISHI ELECTRIC CORPORATION17
Specify the LR clock and bit clock to be used in the DAC/DSP interface. When dacclkmode=0,
M65863FP becomes the clock master and divides the audio master clock to generate LR clock (LRCK)/bit
clock (BCLK). When dacclkmode=1, M65863FP becomes the slave and uses the DIR/ADC input clocks
(ALRCK, ACLK) as the LR clock and bit clock, respectively. In the default setting, M65863FP becomes
the clock master. Set this value only once when M65863FP is in the initial status.
Specify the output interface mode. Default value is 0 (DAC interface). This field can be changed at any
time.
Specify the format of data input from DIR/ADC. Default value is 000 (MSB first right-justified, when
ALRCK is 1, Lch input). This field can be changed at any time.
Product NoteM65863FP
April 1998Dolby Digital Decoder
Number of PCM Output Bits (outbitlen)2 bits
Specify the output bit length. Default value is 00 (16 bits output). This field can be changed at any time.
outbitlenDescription
0 016 bit
0 118 bit
1 020 bit
1 124 bit
address h'15
DSP/DAC Clock Mode (dacclkmode)1 bit
dacclkmodeDescription
0Clock master
1Slave
Selection of DSP/DAC Interface (dspif)1 bit
dspifDescription
0DAC/IF
1DSP I/F
DIR/ADC Data Input Format (dirform)3 bits
dirformDescription
0 0 0MSB first right-justified format (when ALRCK is 1, Lch input)
0 0 1LSB first right-justified format (when ALRCK is 1, Lch input)
0 1 0I2S format (when ALRCK is 1, Lch input)
0 1 1Reserved
1 0 0MSB first right-justified format (when ALRCK is 0, Lch input)
1 0 1MSB first right-justified format (when ALRCK is 0, Lch input)
1 1 0I2S first right-justified format (when ALRCK is 0, Lch input)
1 1 1Reserved
MITSUBISHI ELECTRIC CORPORATION18
Loading...
+ 42 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.