Datasheet SM5903CF Datasheet (NPC)

Page 1
NIPPON PRECISION CIRCUITS INC.
NIPPON PRECISION CIRCUITS-1
SM5903CF
compression and non compression type anti-shock memory controller
Overview
- 2-channel processing
- Serial data input 2s complement, 16-bit/MSB first, rear-packed format Wide capture function
(until triple speed available)
- System clock input 384fs (16.9344 MHz)
- Anti-shock memory controller
ADPCM compression method4-level compression mode selectable
4-bit compression mode 2.78 s/Mbit 5-bit compression mode 2.22 s/Mbit 6-bit compression mode 1.85 s/Mbit Full-bit non compression mode 0.74 s/Mbit
4 external DRAM configurations selectable
16M DRAM (4M × 4 bits ×1,refresh cycle 2048 cycle) 4M DRAM (1M × 4 bits ×1 or ×2) 1M DRAM (256k × 4 bits ×1)
- Microcontroller interface
Serial command write and state read-outData residual quantity detector:
15-bit operation, 16-bit output
Forced mute
- Extension I/O Microcontroller interface for external control using 5 extension I/O pins
- +4.5 to +5.5 V operating voltage range
- Schmidt inputs All input pins (including I/O pins) except CLK (system clock)
- Reset signal noise elimination Approximately 3.8 µs or longer (65 system clock pulses) continuous LOW-level reset
- 44-pin QFP package (0.8 mm pin pitch)
The SM5903CF is a compression and non com­pression type anti-shock memory controller LSI for compact disc players. The compression level can
be set in 4 levels, and external memory can be selected from 4 options (1M, 4M, 4M× 2, 16M). It operates from a 4.5 to 5.5 V supply voltage range.
Features
Ordering Information
SM5903CF 44pin QFP
Page 2
NIPPON PRECISION CIRCUITS-2
SM5903CF
Package dimensions
(Unit: mm)
44-pin QFP
Pinout
(Top View)
0.80
0.20MAX
0.15
(1.40)
12.80 0.30
0.35
0.10
0.15 0.05
12.80 0.30
0.17
0.05
0 to 10
0.60 0.20
4
C0.7
10.00 0.30
10.00 0.30
1.50
0.10
0.20
(1.40)
1 2 3 4 5 6 7 8
9 10 11
1213141516171819202122
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
VDD2
UC1 UC2 UC3 UC4 UC5
N.C
NTEST
CLK
VSS
YSRDATA
NWE D1 D0 D3 D2 NCAS A10/ NCAS2 YMCLK YMDATA YMLD YDMUTE
YLRCK
YSCK
ZSCK
ZLRCK
ZSRDATA
YFLAG
YFCLK
YBLKCK
NRESET
ZSENSE
VDD1
A3A2A1A0A4A5A6A7A8
A9
NRAS
SM590
3CF
Page 3
NIPPON PRECISION CIRCUITS-3
SM5903CF
Pin description
Pin number Pine name I/O Function Setting
HL
1 VDD2 - VDD supply pin 2 UC1 Ip/O Microcontroller interface extension I/O 1 3 UC2 Ip/O Microcontroller interface extension I/O 2 4 UC3 Ip/O Microcontroller interface extension I/O 3 5 UC4 Ip/O Microcontroller interface extension I/O 4 6 UC5 Ip/O Microcontroller interface extension I/O 5 7 N.C - 8 NTEST Ip Test pin Test
9 CLK I 16.9344 MHz clock input 10 VSS - Ground 11 YSRDATA I Audio serial input data 12 YLRCK I Audio serial input LR clock Left channel Right channel 13 YSCK I Audio serial input bit clock 14 ZSCK O Audio serial output bit clock 15 ZLRCK O Audio serial output LR clock Left channel Right channel 16 ZSRDATA O Audio serial output data 17 YFLAG I Signal processor IC RAM overflow flag Overflow 18 YFCLK I Crystal-controlled frame clock 19 YBLKCK I Subcode block clock signal 20 NRESET I System reset pin Reset 21 ZSENSE O Microcontroller interface status output 22 VDD1 - VDD supply pin 23 YDMUTE I Forced mute pin Mute 24 YMLD I Microcontroller interface latch clock 25 YMDATA I Microcontroller interface serial data 26 YMCLK I Microcontroller interface shift clock 27 A10 O DRAM address 10
(NCAS2) O DRAM2 CAS control (with 2 DRAMs) 28 NCAS O DRAM CAS control 29 D2 I/O DRAM data input/output 2 30 D3 I/O DRAM data input/output 3 31 D0 I/O DRAM data input/output 0 32 D1 I/O DRAM data input/output 1 33 NWE O DRAM WE control 34 NRAS O DRAM RAS control 35 A9 O DRAM address 9 36 A8 O DRAM address 8 37 A7 O DRAM address 7 38 A6 O DRAM address 6 39 A5 O DRAM address 5 40 A4 O DRAM address 4 41 A0 O DRAM address 0 42 A1 O DRAM address 1 43 A2 O DRAM address 2 44 A3 O DRAM address 3
Ip : Input pin with pull-up resistor Ip/O : Input/Output pin (With pull-up resistor when a input mode)
Page 4
Parameter Pin Symbol Condition Rating Unit
Min Typ Max
Current consumption VDD I
DD (*A)SHPRF ON 13.5 25.0 mA
(*A)Through mode 5.0 7.5 mA
Input voltage CLK H level V
IH1 0.7VDD V
L level V
IL1 0.3VDD V
V
INAC AC coupling 1.0 VP-P
(*2,3,4) H level VIH2 0.7VDD V
L level V
IL2 0.3VDD V
(*5) H level V
IH3 0.6VDD V
L level V
IL3 0.2VDD V
Output voltage (*4,6) H level V
OH1 IOH = - 0.5 mA VDD - 0.4 V
L level V
OL1 IOL = 0.5 mA 0.4 V
(*5,7) H level V
OH2 IOH = - 0.5 mA VDD - 0.4 V
L level V
OL2 IOL = 0.5 mA 0.4 V
Input current CLK I
IH1 VIN = VDD 5 15 115 µA
I
IL1 VIN = 0V 5 15 115 µA
(*3,4) I
IL2 VIN = 0V 1 2.5 15 µA
Input leakage current (*2,3,4,5) I
LH VIN = VDD 1.0 µA
(*2,5) I
LL VIN = 0V 1.0 µA
(*A) VDD1 = VDD2 = 5 V, CLK input frequency fXTI= 384fs = 16.9344 MHz, all outputs unloaded, SHPRF: Shock-proof, typical values are for VDD1 = VDD2 = 5 V.
NIPPON PRECISION CIRCUITS-4
SM5903CF
Parameter Symbol Rating Unit
Supply voltage V
DD - 0.3 to 7.0 V
Input voltage V
I VSS - 0.3 to VDD + 0.3 V
Storage temperature T
STG - 55 to 125 ˚C
Power dissipation P
D 350 mW
Soldering temperature T
SLD 255 ˚C
Soldering time
tSLD 10 sec
(VSS = 0V, VDD1, VDD2 pin voltage = VDD)
Note. Refer to pin summary on the next page. Values also apply for supply inrush and switch-off.
Parameter Symbol Rating Unit
Supply voltage V
DD 4.5 to 5.5 V
Operating temperature T
OPR - 40 to 85 ˚C
(VSS = 0V, VDD1, VDD2 pin voltage = VDD)
Electrical characteristics
Recommended operating conditions
DC characteristics
Standard voltage:(VDD1 = VDD2 = 4.5 to 5.5 V, VSS = 0 V, Ta = - 40 to 85 ˚C)
Absolute maximum ratings
Page 5
NIPPON PRECISION CIRCUITS-5
SM5903CF
<Pin summary>
(*1) Pin function Clock input pin (AC input)
Pin name CLK
(*2) Pin function Schmitt input pins
Pin name YSRDATA, YLRCK, YSCK, YFLAG, YFCLK, NRESET,
YBLKCK, YDMUTE, YMLD, YMDATA, YMCLK
(*3) Pin function Schmitt input pin with pull-up
Pin name NTEST
(*4) Pin function I/O pins (Schmitt input with pull-up in input state)
Pin name UC1, UC2, UC3, UC4, UC5
(*5) Pin function I/O pins (Schmitt input in input state)
Pin name D0, D1, D2, D3
(*6) Pin function Outputs
Pin name ZSCK, ZLRCK, ZSRDATA, ZSENSE
(*7) Pin function Outputs
Pin name NCAS, NWE, NRAS, A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10
Page 6
NIPPON PRECISION CIRCUITS-6
SM5903CF
CWH
t
CWL
t
CY
t
0.5V
DD
CLK
Parameter Symbol Rating Unit Condition
Min Typ Max
YSCK pulsewidth (HIGH level)
tBCWH 75 ns
YSCK pulsewidth (LOW level)
tBCWL 75 ns
YSCK pulse cycle
tBCY 150 ns
YSRDATA setup time
tDS 50 ns
YSRDATA hold time
tDH 50 ns
Last YSCK rising edge to YLRCK edge
tBL 50 ns
YLRCK edge to first YSCK rising edge
tLB 50 ns
0 3fs Memory system ON
YLRCK pulse frequency (MSON=H)
See note below. fs fs Memory system OFF
(MSON=L)
Note. When the memory system is OFF (through mode), the input data rate is synchronized to the system clock input (384fs), so input
data needs to be at 1/384 of this frequency. But, this IC can tolerate a certain amount of jitter. For details, refer to Through-mode operation.
YSCK
YSRDATA
YLRCK
BCY
t
DS
t
DH
t
BCWH
t
BCWL
t
LB
t
BL
t
0.5V
DD
0.5V
DD
0.5V
DD
Serial input (YSRDATA, YLRCK, YSCK pins)
AC characteristics
Standard voltage: VDD1 = VDD2 = 4.5 to 5.5 V, VSS = 0 V, Ta = -40 to 85 ˚C (*) Typical values are for fs = 44.1 kHz
System clock (CLK pin)
Parameter Symbol Condition Rating Unit
System clock Min Typ Max
Clock pulsewidth (HIGH level)
tCWH 26 29.5 125 ns
Clock pulsewidth (LOW level)
tCWL 26 29.5 125 ns
Clock pulse cycle
tCY 384fs 58 59 250 ns
System clock input
Page 7
NIPPON PRECISION CIRCUITS-7
SM5903CF
Parameter Symbol Rating Unit
Min Typ Max
YMCLK LOW-level pulsewidth
tMCWL 30 + 2tCY ns
YMCLK HIGH-level pulsewidth
tMCWH 30 + 2tCY ns
YMDATA setup time
tMDS 30 + tCY ns
YMDATA hold time
tMDH 30 + tCY ns
YMLD LOW-level pulsewidth
tMLWL 30 + 2tCY ns
YMLD setup time
tMLS 30 + tCY ns
YMLD hold time
tMLH 30 + tCY ns
Rise time
tr 100 ns
Fall time
tf 100 ns
ZSENSE output delay
tPZS 100 + 3tCY ns
Note. tCY is the system clock cycle time (59ns typ).
YMDATA
YMCLK
ZSENSE
YMLD
YMDATA
YMCLK
YMLD
MDS
t
MDH
t
MCWL
t
MLS
t
MCWH
t
MLH
t
MLWL
t
PZS
t
0.5VDD0.5V
DD
0.5V
DD
0.5V
DD
0.5V
DD
0.5V
DD
0.3VDD 0.3VDD
0.7VDD 0.7VDD
f
t
r
t
Reset input (NRESET pin)
Parameter Symbol Rating Unit
Min Typ Max
First HIGH-level after supply voltage rising edge
tHNRST 0 tCY (Note)
NRESET pulsewidth
tNRST 64 tCY (Note)
Note. tCY is the system clock (CLK) input (384fs) cycle time.
tCY = 59 ns, tNRST (min) = 3.8 µs when fs = 44.1 kHz
NRESET
VDD1,VDD2
HNRST
t t
NRST
Microcontroller interface (YMCLK, YMDATA, YMLD, ZSENSE pins)
Page 8
NIPPON PRECISION CIRCUITS-8
SM5903CF
Parameter Symbol Condition Rating Unit
Min Typ Max
ZSCK pulsewidth
tSCOW 15 pF load 1/96fs
ZSCK pulse cycle
tSCOY 15 pF load 1/48fs
ZSRDATA and ZLRCK output delay time
tDHL 15 pF load 0 60 ns tDLH 15 pF load 0 60 ns
DRAM access timing (NRAS, NCAS, NCAS2, NWE, A0 to A10, D0 to D3)
Parameter Symbol Condition Rating Unit
Min Typ Max
NRAS pulsewidth
tRASL 15 pF load 5 tCY(note)
tRASH 15 pF load 3 tCY
NRAS falling edge to NCAS falling edge tRCD 15 pF load 2 tCY
NCAS pulsewidth tCASH 15 pF load 5 tCY
tCASL 15 pF load 3 tCY
NRAS Setup time tRADS 15 pF load 1 tCY
falling edge to address Hold time tRADH 15 pF load 1 tCY
NCAS Setup time tCADS 15 pF load 1 tCY
falling edge to address Hold time tCADH 15 pF load 5 tCY
NCAS Setup time tCWDS 15 pF load 3 tCY
falling edge to data write Hold time tCWDH 15 pF load 3 tCY
NCAS Input setup tCRDS 40 ns
rising edge to data read Input hold
tCRDH 0ns
NWE pulsewidth
tWEL 15 pF load 6 tCY
NWE falling edge to NCAS falling edge tWCS 15 pF load 3 tCY
Non compression 1.5 ms
Refresh cycle
1M 6-bit compression 3.7 ms
(fs = 44.1 kHz playback)
DRAM 5-bit compression 4.4 ms
tREF × 1 4-bit compression 5.5 ms
Memory system ON
Non compression 3.0 ms
Decode sequence operation
4M 6-bit compression 7.3 ms
(RDEN=H)
DRAM 5-bit compression 8.8 ms
× 1 or × 2 4-bit compression 10.9 ms
Non compression 5.9 ms
16M 6-bit compression 14.6 ms
DRAM 5-bit compression 17.5 ms
× 1 4-bit compression 21.8 ms
Note. tCY is the system clock (CLK) input (384fs) cycle time. tCY = 59 ns when fs = 44.1 kHz
ZSCK
ZSRDATA
0.5V
DD
DLH
ZLRCK
0.5V
DD
DHL
tt
DLH
SCOW
tt
SCOW
t
SCOY
t
Serial output (ZSRDATA, ZLRCK, ZSCK pins)
Page 9
NIPPON PRECISION CIRCUITS-9
SM5903CF
DRAM access timing (with single DRAM)
The NWE terminal output is fixed as "High-level" when selecting "READ".
DRAM access timing (with 2 DRAMs)
The NWE terminal output is fixed as "High-level" when selecting "READ". NCAS terminal output is fixed as "High-level" when selecting "DRAM2". NCAS2 terminal output is fixed as "High-level" when selecting "DRAM1".
,,,,,,,,
,,,,,,,,
,,,,,,,,
NCAS
A0 to A10
D0 to D3 (WRITE)
NRAS
D0 to D3
(READ)
NWE
(WRITE)
3
WCS
t
6
CRDH
t
CRDS
t
CWDH
t
CWDS
t
33
5
CADH
t
CADS
t
RADH
t
RADS
t
111
5
32
t
RCD
t
CASL
CASH
t
RASH
t
3
t
CY
5
RASL
t
t
CY
tCY
tCY
tCY
tCY tCY tCY tCY
tCY tCY
tCY
tCY
WEL
t
NCAS
(DRAM1 SELECT)
A0 to A9
NRAS
D0 to D3
(READ)
NCAS2
(DRAM2 SELECT)
D0 to D3 (WRITE)
NWE
(WRITE)
5
3
253
1
1
1
3
3
5
253
3
RASH
t
RASL
t
RCD
tt
CASL CASH
t
CASH
tt
CASLRDC
t
t
RADS
RADH
t
CADS
t
CADH
t
CWDH
t
CWDS
t
CRDStCRDH
t
WCS
t
tCY tCY
tCY
tCY tCY tCY
tCY tCY
tCY tCY
tCY tCY
tCY
tCY tCY
WEL
t 6
tCY
WCS
t
Page 10
NIPPON PRECISION CIRCUITS-10
SM5903CF
Control
Input 1
Control
Input 2
Microcont-
roller
Interface
General
Port
Output Interface Input Interface
Input Buffer
Decoder Encoder
DRAM Interface
YBLKCK
YFCLK YFLAG
YMDATA
YMCLK
YMLD
ZSENSE
UC1 to UC5
YDMUTE
NRESET
NTEST
CLK
NRAS
NCAS
NCAS2
NWE
A0 to A10
D0 to D3
Through
Mode
Compression
Mode
ZLRCK
ZSCK
ZSRDATA
YLRCK
YSCK
YSRDATA
SM5903
Block diagram
Page 11
NIPPON PRECISION CIRCUITS-11
SM5903CF
Write command format (Commands 80 to 85)
SM5903CF has two modes of operation; shock­proof mode and through mode.
The operating sequences are controlled using com­mands from a microcontroller.
D7 D6 D5 D4 D3 D2 D1 D0 B7 B6 B5 B4 B3 B2 B1 B0
COMMAND 8bit DATA 8bit
YMDATA
YMCLK
YMLD
B7 B6 B5 B4 B3 B2 B1 B0
COMMAND 8bit
YMDATA
YMCLK
YMLD
S7 S6 S5 S4 S3 S2 S1 S0
STATUS 8bit
ZSENSE
B7 B6 B5 B4 B3 B2 B1 B0
COMMAND 8bit
YMDATA
YMCLK
YMLD
S7 S6 S1 S0
RESIDUAL DATA 16bit
ZSENSE
M1 M2 M7 M8
Functional description
Read command format (Command 92 (memory residual read))
Read command format (Commands 90, 91, 93)
Microcontroller interface
Command format
Commands from the microcontroller are input using 3 bit serial inputs; data (YMDATA), bit clock (YMCLK) and load signal (YMLD).
In the case of a read command from the microcon­troller, bit serial data is output (ZSENSE) synchro­nized to the bit clock input (YMCLK).
Page 12
NIPPON PRECISION CIRCUITS-12
SM5903CF
Bit Name Function H operation Reset level
D7 MSWREN Encode sequence start/stop Start L D6 MSWACL Write address reset Reset L D5 MSRDEN Decode sequence start/stop Start L D4 MSRACL Read address reset Reset L D3 MSDCN2 MSDCN2=H, MSDCN1=H: 3-pair comparison start L
MSDCN2=H, MSDCN1=L: 2-pair comparison start
D2 MSDCN1 MSDCN2=L, MSDCN1=H: Direct-connect start L
MSDCN2=L, MSDCN1=L: Connect operation stop D1 WAQV Q data valid Valid L D0 MSON Memory system ON ON L
1000 0000
B0
B1
B2
B3
B4
B5
B6
B7
80hex
=
Anti-shock memory system settings
Bit Name Function H operation Reset level
D7 D6 D5 D4 UC5OE Extension I/O port UC5 input/output setting Output L D3 UC4OE Extension I/O port UC4 input/output setting Output L D2 UC3OE Extension I/O port UC3 input/output setting Output L D1 UC2OE Extension I/O port UC2 input/output setting Output L D0 UC1OE Extension I/O port UC1 input/output setting Output L
1000 0001
B0
B1
B2
B3
B4
B5
B6
B7
81hex
=
Extension I/O port input/output settings
Bit Name Function H operation Reset level
D7 D6 D5 D4 UC5WD Extension I/O port UC5 output data setting H output L D3 UC4WD Extension I/O port UC4 output data setting H output L D2 UC3WD Extension I/O port UC3 output data setting H output L D1 UC2WD Extension I/O port UC2 output data setting H output L D0 UC1WD Extension I/O port UC1 output data setting H output L
1000 0010
B0
B1
B2
B3
B4
B5
B6
B7
82hex
=
Extension port HIGH/LOW output level
A port setting is invalid if that port has already been defined as an input using the 81H command above.
Command table Write command summary MS command 80
Extension I/O settings 81
Extension I/O output data settings 82
Page 13
NIPPON PRECISION CIRCUITS-13
SM5903CF
Bit Name Function H operation Reset level
D7 D6 MUTE Forced muting (changes instantaneously) Mute ON L D5 D4 D3 CMP12 12-bit comparison connect/ 16-bit comparison connect
12-bit comparison L
D2 D1 D0
1000 0011
B0
B1
B2
B3
B4
B5
B6
B7
83hex
=
Refer to Force mute, 12-bit comparison connection.
Bit Name Function H operation Reset level
D7 RAMS1 DRAM type setting L
RAMS1=0 RAMS2=0 when 1MDRAM(256k × 4bit) × single
RAMS1=1 RAMS2=0 when 4MDRAM(1M × 4bit) × single
D6 RAMS2 RAMS1=0 RAMS2=1 when 4MDRAM(1M × 4bit) × double L
RAMS1=1 RAMS2=1 when 16MDRAM(4M × 4bit) × single
D5 YFLGS FLAG6 set conditions (reset using status read command 90H) L
- When YFLGS=0, YFCKP=0, YFCLK input falling edge, YFLAG=L
- When YFLGS=0, YFCKP=1, YFCLK input rising edge, YFLAG=L
D4 YFCKP - When YFLGS=1, YFCKP=0, YFLAG=L L
- When YFLGS=1, YFCKP=1, YFLAG=H D3 COMPFB Full-bit compression mode L D2 COMP6B 6-bit compression mode H D1 COMP5B 5-bit compression mode L D0 COMP4B 4-bit compression mode L
1000 0101
B0
B1
B2
B3
B4
B5
B6
B7
85hex
=
When the number of compression bits is set incorrectly (2 or more bits in D0 to D3 are set to 1 or all bits are set to 0),
6-bit compression mode is selected.
MUTE, CMP12 settings 83
Option settings 85
Page 14
Bit Name Function HIGH-level state
S7 FLAG6 Signal processor IC jitter margin exceeded Exceeded S6 MSOVF Write overflow (Read once only when RA exceeds WA) DRAM overflow S5 BOVF When input buffer memory overflow Iput buffer memory overflow
because sampling rate of input data is too fast S4 S3 DCOMP Data compare-connect sequence operating Compare-connect sequence operating S2 MSWIH Encode sequence stop due to internal factors Encoding stopped S1 MSRIH Decode sequence stop due to internal factors Decoding stopped S0
1001 0000
B0
B1
B2
B3
B4
B5
B6
B7
90hex
=
Refer to Status flag operation summary.
Bit Name Function HIGH-level state
S7 MSEMP Valid data empty state (Always HIGH when RA exceeds VWA) No valid data S6 OVFL Write overflow state (Always HIGH when WA exceeds RA) Memory full S5 ENCOD Encode sequence operating state Encoding S4 DECOD Decode sequence operating state Decoding S3 S2 S1 S0
1001 0001
B0
B1
B2
B3
B4
B5
B6
B7
91hex
=
Refer to Status flag operation summary.
NIPPON PRECISION CIRCUITS-14
SM5903CF
Read command summary
Anti-shock memory status (1) 90
Anti-shock memory status (2) 91
Page 15
NIPPON PRECISION CIRCUITS-15
SM5903CF
Anti-shock memory valid data residual 92
Extension I/O inputs 93
Bit Name Function HIGH-level state
S7 S6 S5 S4 UC5RD S3 UC4RD S2 UC3RD S1 UC2RD S0 UC1RD
1001 0011
B0
B1
B2
B3
B4
B5
B6
B7
93hex
=
Input data entering (or output data) an extension port terminal is echoed to the microcontroller. (That is, the input data entering an I/O port configured as an input port using the 81H command, OR the output data from a pin configured as an output port using the 82H command.)
Bit Name Function
S7 AM21 Valid data accumulated VWA-RA (MSB) 8M bits S6 AM20 S5 AM19 S4 AM18 S3 AM17 S2 AM16 S1 AM15
S0 AM14 M1 AM13 M2 AM12 M3 AM11 M4 AM10 M5 AM09 M6 AM08 M7 AM07 M8 AM06
1001 0010
B0
B1
B2
B3
B4
B5
B6
B7
92hex
=
Note. The time conversion factor varies depending on the compression bit mode.(M = 1,048,576 K= 1,024) Residual time (sec) = Valid data residual (Mbits) × Time conversion value k where the Time conversion value k (sec/Mbit) 2.78(4 bits), 2.22 (5 bits), 1.85 (6 bits) and 0.74 (Full bits).
4M bits 2M bits
1M bits 512k bits 256k bits 128k bits
64k bits
32k bits
16k bits
8k bits
1k bits
4k bits 2k bits
512 bits
256 bits
Page 16
Flag Read
name method
FLAG6 READ Meaning - Indicates to the CD signal processor DSP (used for error correction, de-interleaving) that a
90H disturbance has exceeded the RAM jitter margin. bit 7 Set - Set according to the YFLAG input and the operating state of YFCKP and YFLGS.
FLAG6 set conditions
When YFLGS=0, YFCKP=0, YFCLK input falling edge, YFLAG=L When YFLGS=0, YFCKP=1, YFCLK input rising edge, YFLAG=L When YFLGS=1, YFCKP=0, YFLAG=L When YFLGS=1, YFCKP=1, YFLAG=H
Reset - By 90H status read
- By 80H command when MSON=ON
- After external reset
MSOVF READ Meaning - Indicates once only that a write to external DRAM has caused an overflow. (When reset
90H by the 90H status read command, this flag is reset even if the overflow condition continues.) bit 6 Set - When the write address (WA) exceeds the read address (RA)
Reset - By 90H status read
- When a read address clear (MSRACL) or write address clear (MSWACL) command is issued
- After external reset
BOVF READ Meaning - Indicates that a input data was spilled
90H (When input buffer memory overflow because sampling rate of input data is too fast.) bit 5 Set - When inputs a data during a buffer memory overflow
Reset - By 90H status read
- When a read address clear (MSRACL) or write address clear (MSWACL) command is issued
- After external reset
DCOMP READ Meaning - Indicates that a compare-connect sequence is operating
90H Set - When a (3-pair or 2-pair) compare-connect start command is received (MSDCN2=1) bit 3 - When a direct connect command is received (MSDCN2=0, MSDCN1=1)
Reset - When a (3-pair or 2-pair) comparison detects conforming data
- When the connect has been performed after receiving a direct connect command
- When a compare-connect stop command (MSDCN2=0, MSDCN1=0) is received
- When a MSWREN=1 command is received (However, if a compare-connect command is received at the same time, the compare-connect command has priority.)
- After external reset
MSWIH READ Meaning - Indicates that the encode sequence has stopped due to internal factors
90H (not microcontroller commands) bit 2 Set - When FLAG6 (above) is set
- When BOVF (above) is set
- When MSOVF (above) is set
Reset - When conforming data is detected after receiving a compare-connect start command
- When the connect has been performed after receiving a direct connect command
- When a read address clear (MSRACL) or write address clear (MSWACL) command is received
- After external reset
MSRIH READ Meaning - Indicates that the decode sequence has stopped due to internal factors
90H (not microcontroller commands) bit 1 Set - When the valid data residual becomes 0
Reset - By 90H status read
- When a read address clear (MSRACL) or write address clear (MSWACL) command is issued
- After external reset
Status flag operation summary
NIPPON PRECISION CIRCUITS-16
SM5903CF
Page 17
NIPPON PRECISION CIRCUITS-17
SM5903CF
Flag Read
name method
MSEMP READ Meaning - Indicates that the valid data residual has become 0
91H Set - When the VWA (final valid data's next address) bit 7 = RA (address from which the next read would take place)
Reset - Whenever the above does not apply
OVFL READ Meaning - Indicates a write to external DRAM overflow state
91H Set - When the write address (WA) exceeds the read address (RA). bit 6 (Note: This flag is not set when WA=RA through an address initialize or reset operation.)
Reset - When the read address (RA) is advanced by the decode sequence
- When a read address clear (MSRACL) or write address clear (MSWACL) command is issued
- After external reset
ENCOD READ Meaning - Indicates that the encode sequence (input data entry, encoding, DRAM write) is operating
91H Set - By the 80H command when MSWREN=1 bit 5 - When conforming data is detected during compare-connect operation
- When the connect has been performed after receiving a direct connect command
Reset - When the FLAG6 flag=1 (above)
- When the OVFL flag=1 (above)
- By the 80H command when MSWREN=0
- By the 80H command when MSDCN1=1 or MSDCN2=1 (compare-connect start command)
- By the 80H command when MSON=0
- After external reset
Note. Reset conditions have priority over set conditions. For example, if the 80H command has
MSWREN=1 and MSDCN1=1, the ENCOD flag is reset and compare-connect operation starts.
DECOD READ Meaning - Indicates that the decode sequence (read from DRAM, decoding,
91H attenuation, data output) is operating bit 4 Set - By a new 80H command when MSRDEN=1 and the MSEMP flag=0 (above)
Reset - Whenever the above does not apply
Page 18
- MSWREN When 1: Encode sequence starts
Invalid when MSON is not 1 within the same 80H command
Invalid when FLAG6=1 Invalid when OVFL=1 Invalid when a compare-connect start
command (MSDCN2=1 or MSDCN1=1) occurs simultaneously
Direct connect if a compare-connect sequence is already operating
When 0: Encode sequence stops
- MSWACL When 1: Initializes the write address (WA) When 0: No operation
- MSRDEN When 1: Decode sequence starts
Does not perform decode sequence if MSON=1.If there is no valid data, decode sequence temporarily stops. But, because the MSRDEN flag setting is maintained as is, the sequence automatically re-starts when valid data appears.
When 0: Decode sequence stops
-MSRACL When 1: Initializes the read address (RA) When 0: No operation
- MSDCN2, MSDCN1 When 1 and 1: 3-pair compare-connect sequence
starts
When 1 and 0: 2-pair compare-connect sequence
starts When 0 and 1: Direct connect sequence starts When 0 and 0: Compare-connect sequence stops.
No operation if a compare-connect
sequence is not operating.
- WAQV When 1: The immediately preceding YBLKCK
falling-edge timing WA (write address) becomes the VWA (valid write address).
When 0: No operation
- MSON When 1: Memory system turns ON and compres-
sion-type shock-proof operation starts
When 0: Memory system turns OFF and through-
mode playback starts. (In this mode, the attenuator is still active.)
Write command supplementary information
80H (MS command)
81H (I/O setting on extension I/O)
82H (Setting output data on extension I/O)
NIPPON PRECISION CIRCUITS-18
SM5903CF
Page 19
NIPPON PRECISION CIRCUITS-19
SM5903CF
85H (option settings)
- RAMS1, RAMS2 When 0 and 0 : 1M DRAMs (256k×4 bits)×single When 1 and 0 : 4M DRAMs (1M×4 bits)×single When 0 and 1 : 4M DRAMs (1M×4 bits)×double When 1 and 1 : 16M DRAMs (4M×4 bits)×single
- YFLGS, YFCKP When 0 and 0: Sets FLAG6 on the falling edge of
YFCLK when YFLAG=0
When 0 and 1: Sets FLAG6 on the rising edge of
YFCLK when YFLAG=0 When 1 and 0: Sets FLAG6 when YFLAG=0 When 1 and 1: Sets FLAG6 when YFLAG=1
- COMPFB, COMP6B, COMP5B, COMP4B When 0, 0, 0 and 1: Selects 4-bit compression
mode
When 0, 0, 1 and 0: Selects 5-bit compression
mode
When 1, 0, 0 and 0: Selects full-bit compression
mode
In all other cases: Selects 6-bit compression mode
Changing mode without initialize in opera­tion is possible.
83H ( MUTE, 12-bit comparison connection settings)
- MUTE (forced muting) When 1: Outputs are instantaneously muted to
0.(note 1) Same effect as taking the YDMUTE pin
HIGH.
When 0: No muting(note 1)
(note1) Effective at the start of a Left-channel out­put data.
- MUTE, YDMUTE relationship When all mute inputs are 0, mute is released.
- CMP12 (12-bit comparison connection) When 1: Performs comparison connection using
only the most significant 12 bits of input data.
When 0: Performs comparison connection using
all 16 bits of input data.
Page 20
NIPPON PRECISION CIRCUITS-20
SM5903CF
Shock-proof mode is the mode that realizes shock­proof operation using external DRAM. Shock-proof mode is invoked by setting MSON=H in microcon-
troller command 80H. This mode comprises the following 3 sequences.
Shock-proof operation overview
- Encode sequence
1. Input data from a signal processor IC is stored in internal buffers.
2. Encoder starts after a fixed number of data have been received.
3. The encoder, after the most suitable predicting
filter type and quantization steps have been deter­mined, performs ADPCM encoding and then writes to external DRAM.
- Decode sequence
1. Reads compressed data stored in external buffer RAM at rate fs.
2. Decoder starts, using the predicting filter type and quantization levels used when encoded.
3. Outputs the result.
- Compare-connect sequence
1. Encoding immediately stops when either external buffer RAM overflows or when a CD read error occurs due to shock vibrations.
2. Then, using microcontroller command 80H, the compare-connect start command is executed and compare-connect sequence starts.
3. Compares data re-read from the CD with the pro­cessed final valid data stored in RAM (confirms its correctness).
4. As soon as the comparison detects conforming data, compare-connect sequence stops and encode sequence re-starts, connecting the data directly behind previous valid data.
Page 21
NIPPON PRECISION CIRCUITS-21
SM5903CF
13.3ms
VWA latch set
WAQV set
VWA(x) VWA(x + 1)
YBLKCK
Microcontroller data set
Refer to Microcontroller interface
VWA
Values shown are for rate fs. The values are 1/2 those shown at rate 2fs.
Fig 2. YBLKCK and VWA relationship
The VWA is determined according to the YBLKCK pin and WAQV command. Refer to the timing chart below.
1.YBLKCK is a 75 Hz clock(HIGH for 136 µs) when used for normal read mode and it is a 150 Hz clock when used for double-speed read mode. Both modes clock are synchronized to the CD format block end timing.
When this clock goes LOW, WA which is the write address of internal encode sequence, is stored
(see note 2).
2.The microcontroller checks the subcode and, if
confirmed to be correct, generates a WAQV com­mand (80H).
3.When the WAQV command is received, VWA is
updated according to the previously latched WA. (note 2) Actually, there is a small time difference, or
gap, between the input data and YBLKCK. This gap serves to preserves the preceding WA to protect against incorrect operation.
RAM addresses
The SM5903CF uses either 1 or 2 external 1M or 4M DRAMs as external buffers.
Three kinds of addresses are used for external RAM control.
WA (write address) RA (read address)
VWA (valid write address) Among these, VWA is the write address for con­forming data whose validity has been confirmed. Determination of the correctness of data read from the CD is delayed relative to the encode write pro­cessing, so VWA is always delayed relative to WA.
The region available for valid data is the area between VWA-RA.
- Connect data work area
This is an area of memory reserved for connect data. This area is 2k bits if using 1M DRAMs, 4k bits if using 4M DRAMs, or 8k bits if using 16M DRAMs.
Fig1. RAM addresses
RA
WA
VWA
Valid data
area
Connect data work area
VWA (valid write address)
Page 22
NIPPON PRECISION CIRCUITS-22
SM5903CF
Correct data demodulation becomes impossible for the CD signal processor IC when a disturbance exceeding the RAM jitter margin occurs. The YFLAG signal input pin is used to indicate when such a condition has occurred.
The YFCLK is a 7.35 kHz clock synchronized to the CD format frame 1.
The IC checks the YFLAG input and stops the
encode sequence when such a disturbance has occurred, and then makes FLAG6 active.
The YFLAG check method used changes depend­ing on the YFLGS flag and YFCKP flag (85H com­mand). See table1.
If YFLAGS is set to 1, then YFCLK should be tied either High or Low.
YFLAG, YFCLK, FLAG6
85H command
YFLGS YFCKP FLAG6 set conditions FLAG6 reset conditions
1 0 0 When YFLAG=LOW on YFCLK input falling edge - By status read (90H command) 2 1 When YFLAG=LOW on YFCLK input rising edge - When MSON=LOW 3 1 0 When YFLAG=LOW YFCLK be tied either High or Low - After system reset 4 1 When YFLAG=HIGH
Table1. YFLAG signal check method
Page 23
NIPPON PRECISION CIRCUITS-23
SM5903CF
Compare-connect sequence
The SM5903CF supports three kinds of connect modes; 3-pair compare-connect, 2-pair compare­connect and direct connect.
Note that the SM5903CF can also operate in 12-bit comparison connect mode using only the most sig­nificant 12 bits of data for connection operation.
In 3-pair compare-connect mode, the final 6 valid data (3 pairs of left- and right-channel data input before encode processing) and the most recently input data are compared until three continuous data pairs all conform. At this point, the encode
sequence is re-started and data is written to VWA. In 2-pair compare-connect mode, comparison
occurs just as for 3-pair comparison except that only 2 pairs from the three compared need to con­form with the valid data. At this point, the encode sequence is re-started and data is written to VWA.
In direct-connect mode, comparison is not per­formed at all, and encode sequence starts and data is written to the VWA. This mode is for systems that cannot perform compare-connect operation.
- Compare-connect preparation time
1. Comparison data preparation time Internally, when the compare-connect start com-
mand is issued, a sequence starts to restore the data for comparison. The time required for this preparation after receiving the command is approxi­mately 2.5 × (1/fs). (approximately 60 µs when fs =
44.1 kHz)
2. After the above preparation is finished, data is input beginning from the left-channel data and com-
parison starts.
3. If the compare-connect command is issued again, the preparation time above is not necessary and operation starts from step 2.
4. The same sequence takes place in direct-con­nect mode also. However, at the point when 3 words have been input, all data is directly connect­ed as if comparison and conformance had taken place.
- Compare-connect sequence stop
If a compare-connect stop command (80H with MSDCN1= 1, MSDCN2= 0) is input from the micro­controller, compare-connect sequence stops.
If compare-connect sequence was not operating, the compare-connect stop command performs no operation. However, make sure that the other bit settings within the same 80H command are valid.
Page 24
NIPPON PRECISION CIRCUITS-24
SM5903CF
- DRAM initialization refresh A 15-cycle RAS-only refresh is carried out for
DRAM initialization under the following condition. When MSON changes from 0 to 1 in command
80H. When from MSON=1, MSRDEN=0 and
MSWREN=0 states only MSWREN changes to 1. In this case, encode sequence immediately starts and initial data is written (at 2fs rate input) after a delay of 0.7ms.
- Refresh during Shock-proof mode operation In this IC, a data access operation to any address
also serves as a data refresh. Accordingly, there are no specific refresh cycles other than the initial­ization refresh cycle (described above).
This has the resulting effect of saving on DRAM
power dissipation. A data access to DRAM can occur in an encode
sequence write operation or in a decode sequence read operation. In an encode sequence write oper­ation the connect operation is stopped, while in a decode sequence read operation the data is always output to the D/A converter in a fixed manner. The refresh rate for each DRAM during decode sequence is shown in the table below.
The decode sequence, set by MSON=1 and MSR­DEN=1, operates when valid data is in DRAM (when MSEMP=0).
- When MSON=0, DRAM is not refreshed because no data is being accessed.Although MSON=1, DRAM is not refreshed if ENCOD=0 and DECOD=0 (both encode and decode sequence are stopped).
DRAM refresh
Table 2. Decode sequence refresh rate
DRAMs used (same for 1 or 2 DRAMs)
Data compression mode 1M (256K×4 bits) 4M (1M×4 bits) 16M(4M×4 bits)
4 bit 5.44 ms 10.88 ms 21.77ms 5 bit 4.35 ms 8.71 ms 17.42ms 6 bit 3.63 ms 7.26 ms 14.52ms
Full bit 1.36 ms 2.72 ms 5.81ms
Encode sequence temporary stop
- When RAM becomes full, MSWREN is set LOW using the 80H command and encode sequence stops. (For details of the stop conditions, refer to the description of the ENCOD flag.)
- Then, if MSWREN is set HIGH without issuing a compare-connect start command, the encode sequence re-starts. At this time, newly input data is written not to VWA, but to WA. In this way, the data already written to the region between VWA and WA is not lost.
- But if the MSWREN is set HIGH (80H command) after using the compare-connect start command even only once, data is written to VWA. If data is input before comparison and conformance is detected, the same operation as direct-connect mode takes place when the command is issued. After comparison and conformance are detected, no operation is performed because the encode sequence has already been started. However, make sure that the other bit settings within the same 80H command are valid.
Page 25
NIPPON PRECISION CIRCUITS-25
SM5903CF
Through-mode operation
If MSON is set LOW (80H command), an operating mode that does not perform shock-proof functions becomes active. In this case, input data is passed as-is (except Force mute operation) to the output. External DRAM is not accessed.
- In this case, input data needs to be at a rate fs and the input word clock must be synchronized to the CLK input (384fs). However, short range jitter can be tolerated (jitter-free system).
- Jitter-free system timing starts from the first YLRCK rising edge after either (A) a reset (NRE­SET= 0) release by taking the reset input from LOW to HIGH or (B) by taking MSON from HIGH to LOW. Accordingly, to provide for the largest possi­ble jitter margin, it is necessary that the YLRCK
clock be at rate fs by the time jitter-free timing starts.
The jitter margin is 0.2/ fs. This jitter margin is the allowable difference
between the system clock (CLK) 1/ 384 divided, fs rate clock and the YLRCK input clock.
If the timing difference exceeds the jitter margin, irregular operation like data being output twice or conversely complete “1” data output may occur. In the worst case, a click noise will also be generated.
Recommendation; Set the mute "ON" when a mode change for reduce
a click noise.
Force mute
Serial output data is muted by setting the YDMUTE pin input HIGH or by setting the MUTE flag to 1. Mute starts and finishes on the leading left-channel bit.
When MSON is HIGH and valid data is empty (MSEMP=H), the output is automatically forced into the mute state.
12-bit comparison connection
When the CMP12 flag is set to 1, the least signifi­cant 4 bits of the 16-bit comparison connection input data are discarded and comparison connec­tion is performed using the remaining 12 bits.
Note that if the CMP12 flag is set to 1 during a com­parison connection operation, only the most signifi­cant 12 bits are used for comparison connection from that point on.
Page 26
NIPPON PRECISION CIRCUITS-26
SM5903CF
YLRCK
16
LSB
MSB
LSB
MSB
R ch
LSB
YSCK
YSRDATA
L ch
1/(3fs )
16
9
ZLRCK
1 33 48
LSB
MSB
LSB
MSB
R ch
LSB
1/fs
ZSCK
ZSRDATA
L ch
24
Timing charts
Input timing (YSCK, YSRDATA, YLRCK)
Output timing (ZSCK, ZSRDATA, ZLRCK)
Page 27
NIPPON PRECISION CIRCUITS-27
SM5903CF
NCAS
A0 to A10
D0 to D3 (WRITE)
NRAS
NWE
t
RASH
t
RASL
t
t
CASL
CASH
t
CADS
t
RADH
t
t
RADS CADH
t
CWDS
t
CWDH
t
WEL
t
RDC
NCAS1
(DRAM1 SELECT)
A0 to A9
D0 to D3
(WRITE)
NRAS
NWE
NCAS2
(DRAM2 SELECT)
t
CASL CASH
t
RASH
t
RASL
t
WEL
t
CWDH
t
CWDS
t
RADS
t
RADH
t
CADS
tt
CADH
t
CASL CASH
t
RDC
t
RDC
t
DRAM write timing (NRAS, NCAS, NCAS2, NWE, A0 to A10, D0 to D3)
Write timing (with single DRAM)
Write timing (with 2 DRAMs)
Page 28
NIPPON PRECISION CIRCUITS-28
SM5903CF
NCAS
A0 to A10
NRAS
D0 to D3
(READ)
NWE
RASL
t
RASH
t
CASH
tt
CASLRCD
t
RADS
tt
RADH CADS
t
CADH
t
CRDStCRDH
t
OEL
t
NCAS1
(DRAM1 SELECT)
A0 to A9
NRAS
D0 to D3
(READ)
NWE
NCAS2
(DRAM2 SELECT)
RASH
t
RASL
t
RCD
tt
CASL CASH
t
RADStRADHtCADS
t
CADH
t
CRDStCRDH
t
RCD
tt
CASL CASH
t
DRAM read timing (NRAS, NCAS, NCAS2, NWE, A0 to A10, D0 to D3)
Read timing (with single DRAM)
Read timing (with 2 DRAMs)
Page 29
NIPPON PRECISION CIRCUITS-29
SM5903CF
Microcon-
troller
DSP
Matsushita
MN662740
D/A
converter
SM5903
DRAM 1 DRAM 2
YMDATA
YMCLK
YMLD
ZSENSE
YBLKCK
YFLAG
YFCLK
YLRCK
YSCK
YSRDATA
ZLRCK
ZSCK
ZSRDATA
UC1 to UC5
NRAS
NWE
A0 to A10
D0 to D3
NCAS2
A0 to A9 D0 to D3
A0 to A10 D0 to D3
CLK
NRESET
YDMUTE
NCAS
DSP
SONY
CXD2517
SM5903
DRAM 1 DRAM 2
YMDATA
YMCLK
YMLD
ZSENSE
YBLKCK
YFCLK
YFLAG
YLRCK
YSCK
YSRDATA
NRAS
NWE
A0 to A10
D0 to D3
NCAS2
A0 to A9 D0 to D3
A0 to A10 D0 to D3
CLK
NRESET
YDMUTE
NCAS
SCOR XROF
Microcon-
troller
RAS
WE
OECAS
RAS
WE
OECAS
RAS
WE
OECAS
RAS
WE
OECAS
UC1 to UC5
AD
ZSCK
ZLRCK
ZSRDATA
NRAS
NWE
A0 to A9
D0 to D3
NRAS
NWE
A0 to A9
D0 to D3
Connection example
note1
- When 2 DRAMs are used, the DRAM OE pins should be tied LOW.
- When single DRAM is used, the DRAM OE pin should be tied LOW or controlled by the SM5903CF NOE signal.
note 2 When CXD 2517 (Sony) is used
Set 85H of microcontroller command (option setting) as setting YFLAG take in; D5: YFLAGS= 1 D4: YFCKP= 0
Page 30
NIPPON PRECISION CIRCUITS-30
SM5903CF
VDD pins
Deleted functions form SM5902AF
Microcontroller interface extensions
Microcomputer commands listed below are deleted from SM5902AF.
Compression mode switching
1) DIT function
2) Digital attenuator function
3) Soft mute function
4) Noise shaper function during compress encoding
5) Compression mode switching function during shock proof operation
Compression mode switching using 85 H command of SM5903CF can’t be changed during shockproof operation. In order to switch compression mode, it is necessary to change it to “through-mode” first
and change the compression mode setting, then again set shock- proof mode ( Detailed switching procedure is available ).
Attentions
About SM5903CF, Soft mute function and Attenuation function are deleted. In order not to
cause audio output noise, it is necessary to activate Soft mute after DA converter.
Pin No. SM5902AF SM5903CF
7 pin DIT (N.C)
Device comparison with SM5902AF
Pin differences
Obsolete commands
Command Bit Name Function
83H D4 NS Noise shaper ON/OFF switch
D5 SOFT Soft muting ON/OFF switch
D7 ATT Attenuator ON/OFF switch 84H D0 to D7 K0 to K7 Attenuation level settings 86H D4 to D7 Digital audio interface settings 87H D0 to D11 Subcode Q data settings 91H S3 QRDY Q data write buffer status
SMl5902AF has a built-in level shifter to use 5V DARM during IC operation with 3V, therefore, it has 2 electrical power terminals. VDD 1 is an electrical power terminal used for internal ICs and VDD 2 is an electrical power terminal used for external
DRAM interface. Regarding SM5903CF, VDD can’t be set to other voltage due to the different process­ing. Therefore, make sure to set VDD 1 and VDD 2 to the same voltage.
Page 31
NIPPON PRECISION CIRCUITS-31
SM5903CF
NIPPON PRECISION CIRCUITS INC. reserves the right to make changes to the products described in this data sheet in order to
improve the design or performance and to supply the best possible products. Nippon Precision Circuits Inc. assumes no responsibility for the use of any circuits shown in this data sheet, conveys no license under any patent or other rights, and makes no claim that the circuits are free from patent infringement. Applications for any devices shown in this data sheet are for illustration only and Nippon Precision Circuits Inc. makes no claim or warranty that such applications will be suitable for the use specified without further testing or modifica­tion. The products described in this data sheet are not intended to use for the apparatus which influence human lives due to the failure or malfunction of the products. Customers are requested to comply with applicable laws and regulations in effect now and hereinafter, includ­ing compliance with export controls on the distribution or dissemination of the products. Customers shall not export, directly or indirect­ly, any products without first obtaining required licenses and approvals from appropriate government agencies.
NIPPON PRECISION CIRCUITS INC.
4-3, FUKUZUMI 2 CHOME, KOTO-KU TOKYO,135-8430, JAPAN Telephon: +81-3-3642-6661 Facsimile: +81-3-3642-6698
NP9823AE 1999.2
NIPPON PRECISION CIRCUITS INC.
Loading...