SPPCA504 B S B Dual Mode PC Camera Processor

Jul 16, 2003 - 33. 5.7.3. CMOS Image sensor programmable valid timing . .... The SPCA504B is a digital camera processor chip that provides a complete solution for dual ..... trap signal controls the power of the pull-up resistors attached to the. SDRAM ...... DSC mode - Digital Still Camera mode is used to take a single still.
486KB taille 41 téléchargements 211 vues
S PCA504B SP Dual Mode PC Camera Processor

Preliminary JUL. 16, 2003 Version 0.1

SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLOGY CO. is believed to be accurate and reliable.

However, SUNPLUS TECHNOLOGY CO. makes no warranty for any errors which may appear in this document.

Contact SUNPLUS TECHNOLOGY CO. to obtain the latest version of device specifications before placing your order. No responsibility is assumed by SUNPLUS TECHNOLOGY CO. for any infringement of patent or other rights of third parties which may result from its use. In addition, SUNPLUS products are not authorized for use as critical components in life support devices/ systems or aviation devices/systems, where a malfunction or failure of the product may reasonably be expected to result in significant injury to the user, without the express written approval of Sunplus.

Preliminary

SPCA504B Table of Contents PAGE 1. GENERAL DESCRIPTION.......................................................................................................................................................................... 4 2. FEATURE .................................................................................................................................................................................................... 4 3. PIN DESCRIPTION ..................................................................................................................................................................................... 6 3.1. PIN ASSIGNMENT FOR 160-PIN PACKAGE (P1 PACKAGE) ........................................................................................................................ 6 3.2. PIN ASSIGNMENT FOR 128-PIN PACKAGE (P3 PACKAGE) ...................................................................................................................... 12 3.3. PIN ASSIGNMENT FOR 128-PIN PACKAGE WITH AUDIO ADC (P4 PACKAGE) ............................................................................................. 18 4. FUNCTIONAL DESCRIPTION .................................................................................................................................................................. 23 4.1. BLOCK DIAGRAM.................................................................................................................................................................................. 23 4.2. CAMERA OPERATION MODES................................................................................................................................................................ 24 5. ELECTRICAL SPECIFICATIONS ............................................................................................................................................................. 25 5.1. ABSOLUTE MAXIMUM RATING ............................................................................................................................................................... 25 5.2. DC CHARACTERISTICS......................................................................................................................................................................... 25 5.3. USB DC CHARACTERISTICS ................................................................................................................................................................ 25 5.4. SDRAM TIMING CHARACTERISTICS ..................................................................................................................................................... 26 5.4.1. SDRAM initialization timing..................................................................................................................................................... 26 5.4.2. SDRAM single read timing...................................................................................................................................................... 26 5.4.3. SDRAM page mode read timing ............................................................................................................................................. 27 5.4.4. SDRAM single write timing ..................................................................................................................................................... 27 5.4.5. SDRAM page mode read timing ............................................................................................................................................. 28 5.4.6. SDRAM auto refresh timing .................................................................................................................................................... 28 5.5. SYNCHRONOUS SERIAL INTERFACE TIMING ........................................................................................................................................... 29 5.6. AC-97 INTERFACE TIMING .................................................................................................................................................................... 29 5.6.1. Cold Reset .............................................................................................................................................................................. 29 5.6.2. Warm Reset ............................................................................................................................................................................ 29 5.6.3. Clock Timing ........................................................................................................................................................................... 30 5.6.4. Sync Timing ............................................................................................................................................................................ 30 5.6.5. Audio data output timing ......................................................................................................................................................... 31 5.6.6. Audio Data Input Timing.......................................................................................................................................................... 31 5.7. CMOS IMAGE SENSOR TIMING ............................................................................................................................................................ 32 5.7.1. Original CMOS timing ............................................................................................................................................................. 32 5.7.2. CMOS Image Sensor Reshapnig Timing ................................................................................................................................ 33 5.7.3. CMOS Image sensor programmable valid timing ................................................................................................................... 34 5.8. CPU TIMING ........................................................................................................................................................................................ 34 5.9. USB TIMING ........................................................................................................................................................................................ 35 5.10.POWER-ON RESET TIMING ................................................................................................................................................................... 36 5.10.1.

Power-on Sequence ........................................................................................................................................................... 36

5.11. FLASH MEMORY INTERFACE TIMING ...................................................................................................................................................... 37 5.11.1.Command Latch Cycle............................................................................................................................................................ 37 5.11.2.Address Latch Cycle ............................................................................................................................................................... 38 5.11.3.Sequential Out Cycle after Read ............................................................................................................................................ 39 5.11.4.Input Data Latch Cycle............................................................................................................................................................ 40 5.11.5.Status Read Cycle .................................................................................................................................................................. 41 © Sunplus Technology Co., Ltd. Proprietary & Confidential

2

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 6. PACKAGE ................................................................................................................................................................................................. 42 6.1. LQFP 160-PIN .................................................................................................................................................................................... 42 6.2. LQFP 128-PIN .................................................................................................................................................................................... 43 7. DISCLAIMER............................................................................................................................................................................................. 44 8. REVISION HISTORY ................................................................................................................................................................................. 45

© Sunplus Technology Co., Ltd. Proprietary & Confidential

3

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B DUAL MODE PC CAMERA PROCESSOR 1.GENERAL DESCRIPTION — UXGA: OmniVision OV2610, IC Media ICM109T,

The SPCA504B is a digital camera processor chip that provides a complete solution for dual mode camera applications.

This chip

integrates image sensor interface, digital video input interface,

„ Audio functions that the SPCA504B supports include audio

color image processor, storage media controller, JPEG image

class, audio capture, audio record and playback as provided by

compression engine, USB interface, and a built-in micro-controller

the following:

to fulfill all dual-mode camera requirements.

— bi-directional AC-link interface for audio record and

The SPCA504B

supports both progressive CCD and CMOS image sensors up to 1.1M and 2.0M pixels respectively.

playback — MP3 decoder interface for MP3 decoding and playback

The SPCA504B camera

processor chip includes, not only the latest technology, but also

— microphone interface for audio record

the full services and support of Sunplus.

— IMA-ADPCM compatible ADPCM compression engine for audio compression

2.FEATURE „ In addition to the external SDRAM module, the SPCA504B

„ The main functions of the SPCA504B include: — DSC mode for capturing one frame at a time

supports a large variety of storage media including:

— Video clip mode for capturing video with a frame rate of

— NAND-gate flash memory (smart media card) — NOR-type flash memory

15~30 frames/sec

— ATAPI interface (ATAPI CDRW, compact flash memory)

— PC-camera mode at 30 frames/sec for CIF size, 20

— SPI serial flash memory, both mode0 and mode 3

frames/sec for VGA size

supported (MultiMediaCard) — Next Flash serial flash memory

„ The SPCA504B chip has many image-processing functions that

— SD Card

include: — High quality color interpolation

„ The DRAM interface supports 16M bits and 64M bits SDRAM

— Two-dimensional edge enhancement

modules through a 16-bit data bus.

— Bad pixels concealment — AE/AWB parameter windows cover a full range of sensors

„ The SPCA504B supports JPEG image compression in YUV422 and YUV 420 chroma formats. (black-and-white) images.

„ The SPCA504B supports progressive image sensors up to 1.3M/2.1M pixels.

It can also compress BW

The output data format is

compliant with the JFIF bit-stream format. An automatic

Some of them are listed below:

scale-down function is included to fit into the display size in the

CCD — VGA

playback mode.

: Sharp LZ24BP, Sony ICX098AK, Panasonic

MN3777 — XGA : Sony ICX204AK

„ The USB interface supports the following pipes to the PC: — Video ISO-IN pipe for video data transmission to the PC

— SXGA : Panasonic MN3778 (progressive)

— Audio ISO-IN pipe for Audio data transmission to the PC — BULK-IN pipe for uploading images from the camera to the

CMOS — VGA: Agilent HDCS2020/21, Micron MI-330, OmniVision

PC — BULK-OUT pipe for downloading image data, audio data,

OV7620, Hynix HV7131D/E, Sharp LZ34B10, PixArt

firmware, and MP3 data to the camera

PAS202, TASC TAS5130A, Biomorphic BI8602, IC Media

— INTERRUPT-IN pipe for reporting camera status and

ICM205DL, Motorola SCM20014, National Semiconductor LM9627,

Century

Semiconductor

CS2102,

events to the PC

Toshiba

— Hardware support for Mass Storage Device Class (MSDC)

TCM5043LU — SVGA: Hynix HV7141B — SXGA: Motorola MCM20027, OmniVision OV9620, IC Media

ICM108T,

TASC

5160,

PixArt

„ The SPCA504B has a built-in 8032 micro-controller with 6K bytes of internal SRAM

PAS005B,

STMicroelectronics VV6600 © Sunplus Technology Co., Ltd. Proprietary & Confidential

4

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B — Supports ISP (in-system-programming) with 4K bytes of

„ The SPCA504B also: — Has a built-in PLL to supply on-chip clock sources

shadow space — Has built-in 64K bytes of mask ROM

— Provides packaging in either 128-pin QFP or 160-pin LQFP

— Supports LOW-POWER mode and IDLE mode

— Uses a 3.3/2.5 dual power supply

© Sunplus Technology Co., Ltd. Proprietary & Confidential

5

JUL. 16, 2003 Preliminary Version: 0.1

SPCA504B 3.PIN DESCRIPTION rgb4 rgb3 rgb2 rgb1 rgb0 trap dvss3 dvdd3 ma11 ma10 ma9 ma8 ma7 ma6 ma5 ma4 ma3 ma2 ma1 ma0 ovss3 ovdd3 cke dqm mwenn casnn rasnn sdclk gpio10 gpio9 gpio8 fmgpio1 fmgpio1 fmgpio1 fmgpio1 fmgpio1 fmgpio1 fmgpio1 fmgpio0 fmgpio1

3.1. Pin Assignment For 160-Pin Package (P1 Package)

1 2 0

rg b 5 rg b 6 rg b 7 rg b 8 rg b 9 v1 v2 v3 sg sub fr fh 1 fh 2 p b lk ovdd4 ovss4 rs fs fc d s a d c lp o b c lp adck sen sck sdo dvdd4 dvss4 avssd avss a lc m ic opi opo avdd v re f uvss dp dm uvdd suspend

1 1 9

1 1 8

1 1 6

1 1 7

1 1 5

1 1 4

1 1 3

1 1 2

1 1 1

1 1 0

1 0 9

1 0 8

1 0 7

1 0 6

1 0 5

1 0 4

121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160

1 0 3

1 0 2

1 0 1

1 0 0

9 9

9 8

9 7

9 6

9 5

9 4

9 3

9 2

9 1

9 0

8 9

8 8

8 7

8 6

8 5

8 4

8 3

8 2

8 1 80 79 78 77 76 75 73 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41

( 1 6 0 p in )

1

2

3 4

5

6

7

8

9

1 0

1 1

1 2

1 3

1 4

1 5

1 6

1 7

1 8

1 9

2 0

2 1

2 2

2 3

2 4

2 5

2 6

2 7

2 8

2 9

3 0

3 1

3 2

3 3

3 4

3 5

3 3 6 7

3 8

3 9

f m g p io 2 f m g p io 3 f m g p io 4 f m g p io 5/ m a 1 2 f m g p io 6/ m a 1 3 f m g p io 7 f m g p io 8 f m g p io 9 f m g p io 1 0 f m g p io 1 1 f m g p io 1 2 dvss2 dvdd2 m d15 m d14 m d13 m d12 m d11 m d10 m d9 m d8 m d7 m d6 m d5 m d4 m d3 m d2 m d1 m d0 ovss2 ovdd2 p35 p34 p31 p30 p17 p16 p15 p14 p13

4 0

p12 p11 p10 gpio7 gpio6 gpio5 gpio4 gpio3 gpio2 gpio1 gpio0 dvss1 dvdd1 p37 p36 intnn p27 p26 p25 p24 p23 p22 p21 p20 ovss1 xtalout xtalin ovdd1 p07 p06 p05 p04 p03 p02 p01 p00 romwrn psen ale prstnn

S P C A 5 -1 0 4 B

Preliminary

Pin No.

Pin Name

Direction

Description

Memo

System Interface

1

PRSTNN

I

Power-on reset

CPU Interface 2

ALE

B

Address latch enable This pin is an output pin when the built-in CPU is enabled. When an external CPU is used, this pin is an input pin.

3

PSEN

B

Program space enable This pin is an output pin when the built-in CPU is enabled. When an external CPU is used, this pin is an input pin.

4

ROMWRNN

O

External write pulse.

GPIO11

5

P00

B

CPU port 0, address/data multiplex pin, bit 0.

6

P01

B

CPU port 0, address/data multiplex pin, bit 1.

This pin is used in the ISP (in-system-programming) function.

7

P02

B

CPU port 0, address/data multiplex pin, bit 2.

8

P03

B

CPU port 0, address/data multiplex pin, bit 3.

9

P04

B

CPU port 0, address/data multiplex pin, bit 4.

10

P05

B

CPU port 0, address/data multiplex pin, bit 5.

© Sunplus Technology Co., Ltd. Proprietary & Confidential

6

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No. 11

Pin Name

Direction

P06

12

P07

13

OVDD1

B B PG

Description

CPU port 0, address/data multiplex pin, bit 7. IO power

14

XTALIN

I

Crystal input

15

XTALOUT

O

Crystal output

16

OVSS1

17

P20

PG B

Memo

CPU port 0, address/data multiplex pin, bit 6.

3.3V

IO ground CPU port 2, high byte address, bit 0. This bus is an output bus in the internal CPU mode. It is an input bus in the external CPU mode.

18

P21

B

CPU port 2, high byte address, bit 1.

19

P22

B

CPU port 2, high byte address, bit 2.

20

P23

B

CPU port 2, high byte address, bit 3.

21

P24

B

CPU port 2, high byte address, bit 4.

22

P25

B

CPU port 2, high byte address, bit 5.

23

P26

B

CPU port 2, high byte address, bit 6.

24

P27

B

CPU port 2, high byte address, bit 7.

25

INTnn

B

When the internal CPU is enabled, this pin is an input pin.

External interrupt events can be passed to the built-in CPU via this pin.

When using an external CPU, this pin is an output pin that is driven low by SPCA504B internal module interrupt events. 26

P36

B

CPU port 3, bit 6.

WRnn

27

P37

B

CPU port 3, bit 7.

RDnn

28

DVDD1

PG

Core power

2.5V

29

DVSS1

PG

Core ground

30

GPIO0

B

General purpose IO

31

GPIO1

B

General purpose IO

32

GPIO2

B

General purpose IO

33

GPIO3

B

General purpose IO

34

GPIO4

B

General purpose IO

35

GPIO5

B

General purpose IO

36

GPIO6

B

General purpose IO

37

GPIO7

B

Multi-function pin

General purpose IO 8051

MP3/UI

AC-link

38

P10

B

CPU port 1, bit 0

MP3/UI

AC-link

Note 1,2

39

P11

B

CPU port 1, bit 1

MPtxfs (O)

AUrstnn (O)

Note 1,2

40

P12

B

CPU port 1, bit 2

MPrxfs (O)

AUsync (O)

Note 1,2

41

P13

B

CPU port 1, bit 3

MPsiclk (O)

AUdout (O)

Note 1,2

42

P14

B

CPU port 1, bit 4

MPd

AUbclk ( I )

Note 1,2

43

P15

B

CPU port 1, bit 5

MPfceb1 (I)

AUdin ( I )

Note 1

44

P16

B

CPU port 1, bit 6

MPfceb2 (I)

Note 1

45

P17/WKUP1

B

CPU port 1, nit 7

MPrstnn (O)

Note 4

46

P30/WKUP2

B

Uiclk (I)

TXD, Note4

47

P31

B

Uidi (I)

RXD,

(B)

Note4 48

P34

B

© Sunplus Technology Co., Ltd. Proprietary & Confidential

Uido (O) 7

T0, Note 5 JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No.

Pin Name

Direction B

Description

49

P35

CPU port 3, bit 5

50

OVDD2

PG

IO power

51

OVSS2

PG

IO ground

Memo

AUDck (O)

T1 3.3V

Sdram Interface (I) The DRAM data bus is multiplexed with the storage media bus. Depending on the type of package, the multiplexed pins are different. 128-pin package

160-pin package

52

MD0

B

SDRAM data bit 0.

FMGPIO8

FMGPIO20

53

MD1

B

SDRAM data bit 1.

FMGPIO9

FMGPIO21

54

MD2

B

SDRAM data bit 2.

FMGPIO10

FMGPIO22

55

MD3

B

SDRAM data bit 3.

FMGPIO11

FMGPIO23

56

MD4

B

SDRAM data bit 4.

FMGPIO12

FMGPIO24

57

MD5

B

SDRAM data bit 5.

FMGPIO13

FMGPIO25

58

MD6

B

SDRAM data bit 6.

FMGPIO14

FMGPIO26

59

MD7

B

SDRAM data bit 7.

FMGPIO15

FMGPIO27

60

MD8

B

SDRAM data bit 8.

FMGPIO16

FMGPIO28

61

MD9

B

SDRAM data bit 9.

FMGPIO17

FMGPIO29

62

MD10

B

SDRAM data bit 10.

FMGPIO18

63

MD11

B

SDRAM data bit 11.

FMGPIO19

64

MD12

B

SDRAM data bit 12.

65

MD13

B

SDRAM data bit 13.

66

MD14

B

SDRAM data bit 14.

67

MD15

B

SDRAM data bit 15.

68

DVDD2

PG

Core power

69

DVSS2

PG

Core ground

2.5V

Storage Media Interface The SPCA504B supports NAND-gate flash memory, nor-type flash memory, ATA interface, SPI interface, SD memory card and the NextFlash serial interface for the storage media.

These interfaces share the ‘fmgpio“ bus. The pin definitions

depend on the type of the storage media selected.

If some pins of the “fmgpio”

bus are not used in a specific type of storage media, they can be used as GPIO’s for the system control. In the 128-pin application, the fmgpio[19:8] is not bonded. The SDRAM data bus is shared with the storage media bus. NAND-gate

SMC

MMC

SD

(SPI)

CFA

CFA

Next

NOR-type

memory

(IDE)

Flash

A1 (O)

A1 (O)

A17 (O)

Flash

70

FMGPIO12

B

D0 (B)

D0 (B)

71

FMGPIO11

B

WE/ (O)

WE/ (O)

D3 (B)

A0 (O)

A0 (O)

A16 (O)

72

FMGPIO10

B

RE/ (O)

RE/ (O)

D2 (B)

OE/ (O)

RD/ (O)

A15 (O)

73

FMGPIO9

B

WP/ (O)

WP/ (O)

74

FMGPIO8

B

CLE (O)

CLE(O)

SO (O)

75

FMGPIO7

B

SI (I)

76

FMGPIO6

B

RDY (I)

WP/ (O)

B

CD1 (I)

RST/ (O)

CD1 (I)

D1 (B)

WE/ (O)

WR/ (O)

A14 (O)

D0 (B)

RST/ (O)

RST/ (O)

A13 (O)

RDY/ (I)

IRQ (I)

A12 (O)

WAIT/ (I)

IORDY (I)

A11 (O)

CD1 (I)

A10 (O)

/MA13 77

FMGPIO5 /MA12

© Sunplus Technology Co., Ltd. Proprietary & Confidential

8

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No. 78

Pin Name FMGPIO4

Direction B

Description ALE (O)

Memo

ALE (O)

SCK (O)

CD2 (I)

CD2 (I)

A9 (O)

RDY (I)

CLK (O)

REG/ (O)

CS2/ (O)

A8 (O)

CE/ (O)

CS/ (O)

CMD (B)

CE/ (O)

CS1/ (O)

RST/ (O)

79

FMGPIO3

B

80

FMGPIO2

B

81

FMGPIO1

B

RDY (I)

SIO (B)

RDY (I)

82

FMGPIO0

B

CE/ (O)

SCK (O)

CE/ (O)

83

FMGPIO13

B

D1 (B)

D1 (B)

A2 (O)

A2 (O)

A18 (O)

84

FMGPIO14

B

D2 (B)

D2 (B)

D0 (B)

D0 (B)

A19 (O)

85

FMGPIO15

B

D3 (B)

D3 (B)

D1 (B)

D1 (B)

A20 (O)

86

FMGPIO16

B

D4 (B)

D4 (B)

D2 (B)

D2 (B)

A21 (O)

87

FMGPIO17

B

D5 (B)

D5 (B)

D3 (B)

D3 (B)

88

FMGPIO18

B

D6 (B)

D6 (B)

D4 (B)

D4 (B)

89

FMGPIO19

B

D7 (B)

D7 (B)

D5 (B)

D5 (B)

90

GPIO8

B

A16

Note 7

91

GPIO9

B

A17

Note 7

92

GPIO10

B

SG2

Note 7

SDRAM Interface (II) 93

SDCLK

O

SDRAM clock

94

RASnn

O

SDRAM raw address strobe signal

GPIO12

95

CASnn

O

SDRAM column address strobe signal

96

MWEnn

O

SDRAM write enable signal

97

DQM

O

SDRAM data mask signal

98

CKE

O

SDRAM clock enable signal

99

OVDD3

PG

IO power

100

OVSS3

PG

IO ground

101

MA0

B

GPIO13 3.3V

SDRAM address bit 0. This bus is also used as the IO-trap. During the IO-trap stage, the “MA” bus is an input bus. After the IO-trap stage, the “MA” bus is an output bus.

102

MA1

B

SDRAM address bit 1

103

MA2

B

SDRAM address bit 2

104

MA3

B

SDRAM address bit 3

105

MA4

B

SDRAM address bit 4

106

MA5

B

SDRAM address bit 5

107

MA6

B

SDRAM address bit 6

108

MA7

B

SDRAM address bit 7

109

MA8

B

SDRAM address bit 8

110

MA9

B

SDRAM address bit 9

111

MA10

B

SDRAM address bit 10

112

MA11

B

SDRAM address bit 11

113

DVDD3

PG

Core power

114

DVSS3

PG

Core ground

© Sunplus Technology Co., Ltd. Proprietary & Confidential

2.5V

9

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No. 115

Pin Name TRAP

Direction B

Description

Memo

IO-trap control signal. The configuration of the SPCA504B is partly

GPIO14

controlled by the IO-trap values in the SDRAM address bus. This trap signal controls the power of the pull-up resistors attached to the SDRAM address. The signal is high once the SPCA504B power is applied, and will go low after the chip reset is completed. This signal will remain low during SPCA504B operation and in the suspend state. This pin may be configured as a GPIO pin after power-on. 116

RGB0

I

Sensor data input bit 0. (internal pull low)

117

RGB1

I

Sensor data input bit 1. (internal pull low)

118

RGB2

I

Sensor data input bit 2. (internal pull low)

119

RGB3

I

Sensor data input bit 3. (internal pull low)

120

RGB4

I

Sensor data input bit 4. (internal pull low)

121

RGB5

I

Sensor data input bit 5. (internal pull low)

122

RGB6

I

Sensor data input bit 6. (internal pull low)

123

RGB7

I

Sensor data input bit 7. (internal pull low)

124

RGB8

I

Sensor data input bit 8. (internal pull low)

125

RGB9

I

Sensor data input bit 9. (internal pull low) Timing Generator Default function

TG disabled

126

V1

B

Clock output for vertical CCD drive

EXTvd

(B)

127

V2

B

Clock output for vertical CCD drive

EXThd

(B)

128

V3

B

Clock output for vertical CCD drive

EXTvvalid ( I )

GPIO15

Note 6

129

SG

B

CCD readout pulse

EXThvalid ( I )

GPIO16

Note 6

130

SUB

O

CCD electric charge sweep pulse output.

EXTdvalid ( I )

GPIO17

Note 6

131

FR

O

CCD reset gate pulse

EXTfield

GPIO18

Note 6

132

FH1

O

Clock output for horizontal CCD drive

GPIO19

133

FH2

O

Clock output for horizontal CCD drive

GPIO20

O

CCD blanking cleaning pulse.

GPIO21

(I)

Note 6 Note 6

134

PBLK

135

OVDD4

PG

Timing generator IO PAD power

136

OVSS4

PG

Timing generator IO PAD ground

137

RS

O

Sample and hold pulse.

GPIO22

138

FS

O

CDS control signal.

GPIO23

139

FCDS

O

CDS control signal

140

ADCLP

B

Dummy pixel clamping signal

141

OBCLP

O

Optical black clamping signal

142

ADCK

B

Clock output for AD converter.

143

SEN

O

Serial interface data transaction starting signal.

The

3.3V

GPIO24

SPCA504B

has

2XCK output

Note 6 GPIO25

1XCK output

a

Note 6 GPIO26

built-in

synchronous serial interface to communicate with the CDS/AGC chip. The CDS/AGC chip is

needed

when

the

SPCA504B

is

connected with a CCD image sensor. 144

SCK

O

CDS/AGC serial interface clock.

SSISCL

Note 6

145

SD

B

CDS/AGC interface data output.

SSISDA

Note 6

146

DVDD4

PG

Core power

2.5V

147

DVSS4

PG

Core ground

© Sunplus Technology Co., Ltd. Proprietary & Confidential

10

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No.

Pin Name

Direction

Description

Memo

Built-in Audio ADC 148

AVSSD

PG

ADC ground (digital)

149

AVSS

PG

ADC ground (analog)

150

ALC

I

AGC gain control

151

MIC

I

Microphone analog input

152

OPI

I

AGC OpAmp input

153

OPO

O

AGC OpAmap output

154

AVDD

PG

ADC power (analog)

155

VREF

O

ADC voltage reference

156

UVSS

PG

USB transceiver ground

3.3V

USB Transceiver

157

DP

B

USB D+ signal

158

DM

B

USB D- signal

159

UVDD

160

SUSPEND

PG O

USB transceiver power

3.3V

Chip suspend output

GPIO27

Note 1. MP3 interface Pin 38 to 44 can be programmed as an MP3 data interface. Pin

Name

The pin sequence is defined in the following table:

Direction O

Description

38

MPtxfs

Data transmit frame sync.

39

MPrxfs

O

Data receiving frame sync.

40

Mpsiclk

O

Serial interface serial clock

41

MPd

B

Serial data bit

42

Mpfceb1

I

MP3 decoder status 1

43

Mpfceb2

I

MP3 decoder status 2

44

MPrstnn

O

MP3 decoder reset signal

Note 2. AC-link Pin 38 to pin 42 can be programmed as an AC-link interface. interface pins are shared with the MP3 interface. Pin 38

Name AUrstnn

The pin sequence is defined in the following table.

Note that theAC-97

MP3 and AC-97 functions shall not exist at the same time in normal applications.

Direction O

Description AC-link reset signal

39

AUsync

O

AC-link synchronization signal

40

AUdout

O

AC-link data output pin

41

AUbclk

I

AC-link audio bit clock

42

AUdin

I

AC-link data input pin

Note 3. Pin 45 to 47 can be used as the UI module interface. The pin definition is in the following table: Pin

Name

45

Uiclk

46 47

Direction

Description

I

UI clock

Uidi

I

UI data input (from UI module to SPCA504B)

Uido

O

UI data output(from SPCA504B to UI module)

© Sunplus Technology Co., Ltd. Proprietary & Confidential

11

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Note 4. Pin 48 can be used to output a clock for external audio

be programmed to their alternative functions.

devices, such as MP3 decoder or AC-97 CODEC.

application, the sync signals and clocks can be provided by the

The frequency

of the audio clock can be 12MHz, 19MHz or 24 MHz.

CMOS sensor or by the SPCA504B.

In the CMOS

To use the clock provided

by an external device, the application must turn off the Note 5. The TG (timing generator) interface is designed for CCD

corresponding output enable registers.

timing generation.

interface is used to program the registers of the TV decoders and

If the application uses a TV decoder or a

CMOS sensor as the image input device, the TG output pins can

Pin 126

Name

The synchronous serial

CMOS sensors.

Direction

Description

Extvd

B

External vertical sync. Signal

127

Exthd

B

External horizontal sync. Signal

128

Extvvalid

I

External vertical valid, for TV decoder

129

Exthvalid

I

External horizontal valid, for TV decoder

130

Extdvalid

I

External data valid, for TV decoder

131

Extfield

I

External field signal, for TV decoder

140

2XCK

B

Pixel clock X2

142

1XCK

B

Pixel clock X1

144

SSISCL

O

Synchronous serial interface clock

145

SSISDA

B

Synchronous serial interface data

Note 6. Pin A16 and A17 are ROM address pins.

They are used to extend the ROM space to 256KB.

SG is a signal for the CCD TG

interface.

rgb4 rgb3 rgb2 rgb1 rgb0 trap dvss3 dvdd3 ma11 ma10 ma9 ma8 ma7 ma6 ma5 ma4 ma3 ma2 ma1 ma0 ovss3 ovdd3 cke dqm mwenn casnn rasnn sdclk fmgpio0 fmgpio1 fmgpio2 fmgpio3

3.2. Pin Assignment For 128-Pin Package (P3 Package)

9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 7 7 7 7 7 6 6 6 6 6 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5

rgb5 rgb6 rgb7 rgb8 rgb9 v1 v2 v3 sg sub fr fh1 fh2 pblk ovdd4 ovss4 rs fs fcds adclp obclp adck sen sck sdo dvdd4 dvss4 uvss dp dm uvdd suspend

97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128

SPCA504B-P3 (LQ FP 128)

1 2 3 4 5 6 7 8 9

64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33

fm gpio4 fm gpio5/m a12 fm gpio6/m a13 fm gpio7 dvss2 dvdd2 m d15 m d14 m d13 m d12 m d11 m d10 m d9 m d8 m d7 m d6 m d5 m d4 m d3 m d2 m d1 m d0 ovss2 ovdd2 p34 p31 p30 p17 p16 p15 ̃˄ˇ ̃˄ˆ

1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2

p12 p11 p10 dvss1 dvdd1 p37 p36 intnn p27 p26 p25 p24 p23 p22 p21 p20 ovss1 xtalout xtalin ovdd1 p07 p06 p05 p04 p03 p02 p01 p00 romwrnn psen ale prstnn

© Sunplus Technology Co., Ltd. Proprietary & Confidential

12

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No.

Pin Name

Direction

Description

Memo

System Interface 1

PRSTNN

I

Power-on reset CPU Interface

2

ALE

B

Address latch enable This pin is an output pin when the built-in CPU is enabled. When an external CPU is used, this pin is an input pin.

3

PSEN

B

Program space enable This pin is an output pin when the built-in CPU is enabled. When external CPU is used, this pin is an input pin.

4

ROMWRNN

O

External write pulse. This pin is used in the ISP

GPIO11

(in-system-programming) function. 5

P00

B

CPU port 0, address/data multiplex pin, bit 0.

6

P01

B

CPU port 0, address/data multiplex pin, bit 1.

7

P02

B

CPU port 0, address/data multiplex pin, bit 2.

8

P03

B

CPU port 0, address/data multiplex pin, bit 3.

9

P04

B

CPU port 0, address/data multiplex pin, bit 4.

10

P05

B

CPU port 0, address/data multiplex pin, bit 5.

11

P06

B

CPU port 0, address/data multiplex pin, bit 6.

B

CPU port 0, address/data multiplex pin, bit 7.

12

P07

13

OVDD1

PG

IO power

14

XTALIN

I

Crystal input

15

XTALOUT

O

Crystal output

16

OVSS1

17

P20

PG B

3.3V

IO ground CPU port 2, high byte address, bit 0. This bus is an output bus in the internal CPU mode. It is an input bus in the external CPU mode.

18

P21

B

CPU port 2, high byte address, bit 1.

19

P22

B

CPU port 2, high byte address, bit 2.

20

P23

B

CPU port 2, high byte address, bit 3.

21

P24

B

CPU port 2, high byte address, bit 4.

22

P25

B

CPU port 2, high byte address, bit 5.

23

P26

B

CPU port 2, high byte address, bit 6.

24

P27

B

CPU port 2, high byte address, bit 7.

25

INTnn

B

When the internal CPU is enabled, this pin is an input pin. External interrupt events can be passed to the built-in CPU via this pin. When using external CPU, this pin is an output pin that is driven low by SPCA504B internal module interrupt events.

26

P36

B

CPU port 3, bit 6.

WRnn

27

P37

B

CPU port 3, bit 7.

RDnn

28

DVDD1

PG

Core power

2.5V

29

DVSS1

PG

Core ground 8051

MP3/UI

AC-link

30

P10

B

CPU port 1, bit 0

MPtxfs (O)

AUrstnn (O)

Note 1,2

31

P11

B

CPU port 1, bit 1

MPrxfs (O)

AUsync (O)

Note 1,2

Multi-Function Pin

© Sunplus Technology Co., Ltd. Proprietary & Confidential

13

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No.

Pin Name

Direction

Description

Memo

32

P12

B

CPU port 1, bit 2

MPsiclk (O)

AUdout (O)

Note 1,2

33

P13

B

CPU port 1, bit 3

MPd

AUbclk ( I )

Note 1,2

34

P14

B

CPU port 1, bit 4

MPfceb1 (I)

AUdin ( I )

Note 1,2

35

P15

B

CPU port 1, bit 5

MPfceb2 (I)

Note 1

36

P16

B

CPU port 1, bit 6

MPrstnn (O)

Note 1

37

P17/WKUP1

B

CPU port 1, nit 7

Uiclk (I)

Note 4

38

P30/WKUP2

B

Uidi (I)

TXD, Note4

39

P31

B

Uido (O)

RXD, Note4

B

AUDck (O)

T0, Note 5

40

P34

41

OVDD2

PG

42

OVSS2

PG

(B)

IO power

3.3V

IO ground SDRAM Interface (I) The DRAM data bus is multiplexed with the storage media bus. Depending on the type of the package, the multiplexed pins are different. 128-pin package

160-pin package

43

MD0

B

SDRAM data bit 0.

FMGPIO8

FMGPIO20

44

MD1

B

SDRAM data bit 1.

FMGPIO9

FMGPIO21

45

MD2

B

SDRAM data bit 2.

FMGPIO10

FMGPIO22

46

MD3

B

SDRAM data bit 3.

FMGPIO11

FMGPIO23

47

MD4

B

SDRAM data bit 4.

FMGPIO12

FMGPIO24

48

MD5

B

SDRAM data bit 5.

FMGPIO13

FMGPIO25

49

MD6

B

SDRAM data bit 6.

FMGPIO14

FMGPIO26

50

MD7

B

SDRAM data bit 7.

FMGPIO15

FMGPIO27

51

MD8

B

SDRAM data bit 8.

FMGPIO16

FMGPIO28

52

MD9

B

SDRAM data bit 9.

FMGPIO17

FMGPIO29

53

MD10

B

SDRAM data bit 10.

FMGPIO18

54

MD11

B

SDRAM data bit 11.

FMGPIO19

55

MD12

B

SDRAM data bit 12.

56

MD13

B

SDRAM data bit 13.

57

MD14

B

SDRAM data bit 14. SDRAM data bit 15.

58

MD15

B

59

DVDD2

PG

Core power

60

DVSS2

PG

Core ground

2.5V

Storage Media Interface The SPCA504B supports NAND-gate flash memory, nor-type flash memory, ATA interface, SPI interface, SD memory card and the NextFlash serial

interface

for

storage

media.

These

interfaces

share

the

‘fmgpio“ bus. The pin definitions depend on the type of storage media selected. If some pins of the “fmgpio” bus are not used in a specific type of the storage media, they can be used as GPIO’s for the system control. In the 128-pin application the fmgpio[19:8] is not bonded. The SDRAM data bus is shared with the storage media bus.

© Sunplus Technology Co., Ltd. Proprietary & Confidential

14

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No.

Pin Name

Direction

Description NAND-ga

SMC

MMC

te

SD

(SPI)

Memo CFA

CFA

Next

memory

(IDE)

Flash

A1 (O)

A1 (O)

NOR-type Flash

B

D0 (B)

D0 (B)

FMGPIO11

B

WE/ (O)

WE/ (O)

D3 (B)

A0 (O)

A0 (O)

A16 (O)

FMGPIO10

B

RE/ (O)

RE/ (O)

D2 (B)

OE/ (O)

RD/ (O)

A15 (O)

FMGPIO9

B

WP/ (O)

WP/ (O)

D1 (B)

WE/ (O)

WR/ (O)

A14 (O)

CLE (O)

CLE(O)

D0 (B)

*47

FMGPIO12

*46 *45 *44 *43

FMGPIO8

B

61

FMGPIO7

B

62

FMGPIO6

B

B

SO (O)

A17 (O)

RST/ (O)

RST/ (O)

A13 (O)

SI (I)

RDY/ (I)

IRQ (I)

A12 (O)

RDY (I)

WP/ (O)

WAIT/ (I)

IORDY (I)

A11 (O)

CD1 (I)

RST/ (O)

CD1 (I)

CD1 (I)

A10 (O)

ALE (O) SCK (O)

CD2 (I)

CD2 (I)

A9 (O)

/MA13 63

FMGPIO5 /MA12

64

FMGPIO4

B

ALE (O)

65

FMGPIO3

B

66

FMGPIO2

B

RDY (I)

67

FMGPIO1

B

RDY (I)

SIO (B)

RDY (I)

68

FMGPIO0

B

CE/ (O)

SCK (O)

CE/ (O)

*48

FMGPIO13

B

D1 (B)

D1 (B)

A2 (O)

A2 (O)

A18 (O)

*49

FMGPIO14

B

D2 (B)

D2 (B)

D0 (B)

D0 (B)

A19 (O)

*50

FMGPIO15

B

D3 (B)

D3 (B)

D1 (B)

D1 (B)

A20 (O)

*51

FMGPIO16

B

D4 (B)

D4 (B)

D2 (B)

D2 (B)

A21 (O)

CE/ (O)

CLK (O) REG/ (O)

CS/ (O) CMD (B)

CE/ (O)

CS2/ (O)

A8 (O)

CS1/ (O)

RST/ (O)

*52

FMGPIO17

B

D5 (B)

D5 (B)

D3 (B)

D3 (B)

*53

FMGPIO18

B

D6 (B)

D6 (B)

D4 (B)

D4 (B)

*54

FMGPIO19

B

D7 (B)

D7 (B)

D5 (B)

D5 (B)

SDRAM Interface (II) 69

SDCLK

O

SDRAM clock

70

RASnn

O

SDRAM raw address strobe signal

71

CASnn

O

SDRAM column address strobe signal

72

MWEnn

O

SDRAM write enable signal

73

DQM

O

SDRAM data mask signal

74

CKE

75

OVDD3

PG

O

76

OVSS3

PG

77

MA0

B

GPIO12

SDRAM clock enable signal

GPIO13

IO power

3.3V

IO ground SDRAM address bit 0 This bus is also used as the IO-trap. During the IO-trap stage, the “MA” bus is an input bus. After the IO-trap stage, this bus is an output bus.

78

MA1

B

SDRAM address bit 1

79

MA2

B

SDRAM address bit 2

80

MA3

B

SDRAM address bit 3

81

MA4

B

SDRAM address bit 4

82

MA5

B

SDRAM address bit 5

83

MA6

B

SDRAM address bit 6

84

MA7

B

SDRAM address bit 7

85

MA8

B

SDRAM address bit 8

© Sunplus Technology Co., Ltd. Proprietary & Confidential

15

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No.

Pin Name

Direction

Description

86

MA9

B

SDRAM address bit 9

87

MA10

B

SDRAM address bit 10

88

MA11

B

SDRAM address bit 11

89

DVDD3

PG

Core power

90

DVSS3

PG

Core ground

91

TRAP

B

Memo

2.5V

IO-trap control signal The configuration of the SPCA504B is

GPIO14

partly controlled by the IO-trap values in the SDRAM address bus. This trap signal controls the power of the pull-up resistors attached to the SDRAM address. The signal is high once the SPCA504B power is applied and will go to low after the chip reset is completed. This signal will remain low during the SPCA504B operation and suspend states. This pin may be configured to be a GPIO pin after power-on. 92

RGB0

I

Sensor data input bit 0. (internal pull low)

93

RGB1

I

Sensor data input bit 1. (internal pull low)

94

RGB2

I

Sensor data input bit 2. (internal pull low)

95

RGB3

I

Sensor data input bit 3. (internal pull low)

96

RGB4

I

Sensor data input bit 4. (internal pull low)

97

RGB5

I

Sensor data input bit 5. (internal pull low)

98

RGB6

I

Sensor data input bit 6. (internal pull low)

99

RGB7

I

Sensor data input bit 7. (internal pull low)

100

RGB8

I

Sensor data input bit 8. (internal pull low)

101

RGB9

I

Sensor data input bit 9. (internal pull low) Timing Generator Default function

TG disabled

102

V1

B

Clock output for vertical CCD drive

EXTvd

(B)

Note 6

103

V2

B

Clock output for vertical CCD drive

EXThd

(B)

Note 6

104

V3

B

Clock output for vertical CCD drive

EXTvvalid ( I )

GPIO15

Note 6

105

SG

B

CCD readout pulse

EXThvalid ( I )

GPIO16

Note 6

106

SUB

O

CCD

EXTdvalid ( I )

GPIO17

Note 6

EXTfield

GPIO18

Note 6

electric

charge

sweep

pulse

output. 107

FR

O

CCD reset gate pulse

(I)

108

FH1

O

Clock output for horizontal CCD drive

GPIO19

109

FH2

O

Clock output for horizontal CCD drive

GPIO20

O

CCD blanking cleaning pulse.

GPIO21

110

PBLK

111

OVDD4

PG

Timing generator IO PAD power

112

OVSS4

PG

Timing generator IO PAD ground

113

RS

O

Sample and hold pulse.

GPIO22

114

FS

O

CDS control signal.

GPIO23

115

FCDS

O

CDS control signal

GPIO24

116

ADCLP

B

Dummy pixel clamping signal

117

OBCLP

O

Optical black clamping signal

118

ADCK

B

Clock output for AD converter.

© Sunplus Technology Co., Ltd. Proprietary & Confidential

16

3.3V

2XCK output

Note 6 GPIO25

1XCK output

Note 6

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No. 119

Pin Name

Direction

SEN

O

Description Serial interface data transaction starting

Memo GPIO26

signal. The SPCA504B has a built-in synchronous

serial

interface

to

communicate with the CDS/AGC chip. The CDS/AGC chip is needed when the SPCA504B is connected with a CCD image sensor. 120

SCK

O

CDS/AGC serial interface clock.

SSISCL

Note 6

121

SDO

B

CDS/AGC interface data output.

SSISDA

Note 6

122

DVDD4

PG

123

DVSS4

PG

Core power

2.5V

Core ground USB Transceiver

124

UVSS

125

DP

126

DM

127

UVDD

128

SUSPEND

PG

USB transceiver ground

B

USB D+ signal

B

USB D- signal

PG O

USB transceiver power

3.3V

Chip suspend output

GPIO27

Note: When the 128-pin package is selected, FMGPIO8 to FMGPIO19 are multiplexed to MD0 to MD11. Note 1-6 Please refer to Note 1-6 in Section 3.1 for the function descriptions while ignoring the pin numbers.

© Sunplus Technology Co., Ltd. Proprietary & Confidential

17

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B

9 6

̅˺˵ˈ ̅˺˵ˉ ̅˺˵ˊ ̅˺˵ˋ ̅˺˵ˌ ̉˄ ̉˅ ̉ˆ ̆˺ ̆̈˵ ̂̉˷˷ˇ ̂̉̆̆ˇ ˴˷˶˿̃ ˴˷˶˾ ̆˸́ ̆˶˾ ̆˷̂ ˷̉˷˷ˇ ˷̉̆̆ˇ ˴̉̆̆˷ ˴̉̆̆ ˴˿˶ ̀˼˶ ̂̃˼ ̂̃̂ ˴̉˷˷ ̉̅˸˹ ̈̉̆̆ ˷̃ ˷̀ ̈̉˷˷ ̆̈̆̃˸́˷

9 3

9 2

9 1

9 0

8 9

8 8

8 7

8 4

8 5

8 6

8 3

8 2

8 1

8 0

7 9

7 8

7 7

7 6

7 5

7 4

˷̄̀ ̀̊˸́́ ˶˴̆́́ ̅˴̆́́ ̆˷˶˿˾ ˹̀˺̃˼̂˃ ˹̀˺̃˼̂˄ ˹̀˺̃˼̂˅ ˹̀˺̃˼̂ˆ 7 3

7 2

7 1

7 0

6 9

6 8

6 7

6 6

6 5

97 98

64 63

62

100 101

61 60

102 103 104

59

58 57

105

56

106 107

55 54

˦ˣ˖˔ˈ˃ˇ˕ˀˣˇ ʻ˟ˤ˙ˣʳ˄˅ˋʳʼ ʻ̊˼̇˻ʳ˔̈˷˼̂ʳ˔˗˖ʼ

108

109 110 111

112 113

53

52 51

50

49 48

114

47

115 116

46 45

117

44

118 119

43 42

120 121 122

41 40 39

123

38

124 125

37 36

126 127

35 34

128

33

2

3

4

5

6

7

8

9

1 0

1 1

1 2

1 3

1 4

1 5

1 6

1 7

1 8

1 9

2 0

2 1

2 2

2 3

2 4

2 5

2 6

2 7

2 8

2 9

3 0

3 1

˹̀˺̃˼̂ˇ ˹̀˺̃˼̂ˈ˂̀˴˄˅ ˹̀˺̃˼̂ˉ˂̀˴˄ˆ ˹̀˺̃˼̂ˊ ˷̉̆̆˅ ˷̉˷˷˅ ̀˷˄ˈ ̀˷˄ˇ ̀˷˄ˆ ̀˷˄˅ ̀˷˄˄ ̀˷˄˃ ̀˷ˌ ̀˷ˋ ̀˷ˊ ̀˷ˉ ̀˷ˈ ̀˷ˇ ̀˷ˆ ̀˷˅ ̀˷˄ ̀˷˃

̂̉̆̆˅ ̂̉˷˷˅ ̃ˆˇ ̃ˆ˄ ̃ˆ˃ ̃˄ˊ ̃˄ˉ ̃˄ˈ ̃˄ˇ ̃˄ˆ

3 2

̃˄˅ ̃˄˄ ̃˄˃ ˷̉̆̆˄ ˷̉˷˷˄ ̃ˆˊ ̃ˆˉ ˼́̇́́ ̃˅ˊ ̃˅ˉ ̃˅ˈ ̃˅ˇ ̃˅ˆ ̃˅˅ ̃˅˄ ̃˅˃ ̂̉̆̆˄

̋̇˴˿̂̈̇ ̋̇˴˿˼́

̂̉˷˷˄ ̃˃ˊ ̃˃ˉ ̃˃ˈ ̃˃ˇ ̃˃ˆ ̃˃˅ ̃˃˄ ̃˃˃ ̅̂̀̊̅́́ ̃̆˸́ ˴˿˸

̃̅̆̇́́

Pin Name

9 4

99

1

Pin No.

9 5

˶˾˸

̅˺˵ˇ ̅˺˵ˆ ̅˺˵˅ ̅˺˵˄ ̅˺˵˃ ̇̅˴̃ ˷̉̆̆ˆ ˷̉˷˷ˆ ̀˴˄˄ ̀˴˄˃ ̀˴ˌ ̀˴ˋ ̀˴ˊ ̀˴ˉ ̀˴ˈ ̀˴ˇ ̀˴ˆ ̀˴˅ ̀˴˄ ̀˴˃ ̂̉̆̆ˆ ̂̉˷˷ˆ

3.3. Pin assignment for 128-pin package with Audio ADC (P4 Package)

Direction

Description

Memo

System Interface 1

PRSTNN

I

Power-on reset

2

ALE

B

Address latch enable

CPU Interface

This pin is an output pin when the built-in CPU is enabled. When an external CPU is used, this pin is an input pin. 3

PSEN

B

Program space enable This pin is an output pin when the built-in CPU is enabled. When an external CPU is used, this pin is an input pin.

4

ROMWRNN

O

External write pulse This pin is used in the ISP

5

P00

B

CPU port 0, address/data multiplex pin, bit 0.

6

P01

B

CPU port 0, address/data multiplex pin, bit 1.

GPIO11

(in-system-programming) function.

7

P02

B

CPU port 0, address/data multiplex pin, bit 2.

8

P03

B

CPU port 0, address/data multiplex pin, bit 3.

9

P04

B

CPU port 0, address/data multiplex pin, bit 4.

10

P05

B

CPU port 0, address/data multiplex pin, bit 5.

11

P06

B

CPU port 0, address/data multiplex pin, bit 6.

© Sunplus Technology Co., Ltd. Proprietary & Confidential

18

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No.

Pin Name

Direction

12

P07

13

OVDD1

PG

14

XTALIN

I

15

XTALOUT

16

OVSS1

17

P20

B

O PG B

Description

Memo

CPU port 0, address/data multiplex pin, bit 7. IO power

3.3V

Crystal input Crystal output IO ground CPU port 2, high byte address, bit 0. This bus is an output bus in the internal CPU mode. It is an input bus in the external CPU mode.

18

P21

B

CPU port 2, high byte address, bit 1.

19

P22

B

CPU port 2, high byte address, bit 2.

20

P23

B

CPU port 2, high byte address, bit 3.

21

P24

B

CPU port 2, high byte address, bit 4.

22

P25

B

CPU port 2, high byte address, bit 5.

23

P26

B

CPU port 2, high byte address, bit 6.

24

P27

B

CPU port 2, high byte address, bit 7.

25

INTnn

B

When the internal CPU is enabled, this pin is an input pin. External interrupt events can be passed to the built-in CPU via this pin. When using an external CPU, this pin is an output pin that is driven low by SPCA504B internal module interrupt events.

26

P36

B

CPU port 3, bit 6.

WRnn

B

27

P37

CPU port 3, bit 7.

RDnn

28

DVDD1

PG

Core power

2.5V

DVSS1

PG

Core ground

29

Multi-Function Pin

8051

MP3/UI

AC-link

30

P10

B

CPU port 1, bit 0

MPtxfs (O)

AUrstnn (O)

Note 1,2

31

P11

B

CPU port 1, bit 1

MPrxfs (O)

AUsync (O)

Note 1,2

32

P12

B

CPU port 1, bit 2

MPsiclk (O)

AUdout (O)

Note 1,2

33

P13

B

CPU port 1, bit 3

MPd

AUbclk ( I )

Note 1,2

34

P14

B

CPU port 1, bit 4

MPfceb1 (I)

AUdin ( I )

Note 1,2

35

P15

B

CPU port 1, bit 5

MPfceb2 (I)

Note 1

36

P16

B

CPU port 1, bit 6

MPrstnn (O)

Note 1

CPU port 1, nit 7

37

P17/WKUP1

B

38

P30/WKUP2

B

(B)

Uiclk (I)

Note 4

Uidi (I)

TXD, Note4

39

P31

B

Uido (O)

RXD, Note4

40

P34

B

AUDck (O)

T0, Note 5

41

OVDD2

PG

IO power

42

OVSS2

PG

IO ground

3.3V

SDRAM Interface (I) The DRAM data bus is multiplexed with the storage media bus. Depending on the type of package, the multiplexed pins are different. 128-pin package

160-pin package

43

MD0

B

SDRAM data bit 0.

FMGPIO8

FMGPIO20

44

MD1

B

SDRAM data bit 1.

FMGPIO9

FMGPIO21

45

MD2

B

SDRAM data bit 2.

FMGPIO10

FMGPIO22

46

MD3

B

SDRAM data bit 3.

FMGPIO11

FMGPIO23

© Sunplus Technology Co., Ltd. Proprietary & Confidential

19

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No.

Pin Name

Direction

Description

Memo

47

MD4

B

SDRAM data bit 4.

FMGPIO12

FMGPIO24

48

MD5

B

SDRAM data bit 5.

FMGPIO13

FMGPIO25

49

MD6

B

SDRAM data bit 6.

FMGPIO14

FMGPIO26

50

MD7

B

SDRAM data bit 7.

FMGPIO15

FMGPIO27

51

MD8

B

SDRAM data bit 8.

FMGPIO16

FMGPIO28

52

MD9

B

SDRAM data bit 9.

FMGPIO17

FMGPIO29

53

MD10

B

SDRAM data bit 10.

FMGPIO18

54

MD11

B

SDRAM data bit 11.

FMGPIO19

55

MD12

B

SDRAM data bit 12.

56

MD13

B

SDRAM data bit 13.

57

MD14

B

SDRAM data bit 14.

58

MD15

B

SDRAM data bit 15.

59

DVDD2

PG

Core power

60

DVSS2

PG

Core ground

2.5V

Storage Media Interface The SPCA504B supports NAND-gate flash memory, nor-type flash memory, ATA interface, SPI interface, SD memory card and the NextFlash serial interface for storage media. These interfaces share the ‘fmgpio“ bus. The pin definitions depend on the type of storage media selected. If some pins of the “fmgpio” bus are not used in a specific type of storage media, they can be used as GPIO for the system control. In the 128-pin application the fmgpio[19:8] is not bonded. The SDRAM data bus is shared with the storage media bus. NAND-g

SMC

ate

MMC

SD

(SPI)

CFA

CFA

Next

memory

(IDE)

Flash

A1 (O)

A1 (O)

NOR-type Flash

*47

FMGPIO12

B

D0 (B)

D0 (B)

A17 (O)

*46

FMGPIO11

B

WE/ (O)

WE/ (O)

D3 (B)

A0 (O)

A0 (O)

A16 (O)

*45

FMGPIO10

B

RE/ (O)

RE/ (O)

D2 (B)

OE/ (O)

RD/ (O)

A15 (O)

*44

FMGPIO9

B

WP/ (O)

WP/ (O)

*43

FMGPIO8

B

CLE (O)

CLE(O)

SO (O)

61

FMGPIO7

B

SI (I)

RDY/ (I)

IRQ (I)

A12 (O)

62

FMGPIO6

B

RDY (I)

WP/ (O)

WAIT/ (I)

IORDY (I)

A11 (O)

63

FMGPIO5

B

CD1 (I)

RST/ (O)

CD1 (I)

CD1 (I)

A10 (O)

ALE (O)

SCK (O)

D1 (B)

WE/ (O)

WR/ (O)

A14 (O)

D0 (B)

RST/ (O)

RST/ (O)

A13 (O)

/MA13

/MA12 64

FMGPIO4

B

65

FMGPIO3

B

ALE (O)

66

FMGPIO2

B

67

FMGPIO1

B

RDY (I)

CE/ (O)

CD2 (I)

CD2 (I)

A9 (O)

RDY (I)

CLK (O)

REG/ (O)

CS2/ (O)

A8 (O)

CS/ (O)

CMD (B)

CE/ (O)

CS1/ (O)

RST/ (O) SIO (B)

RDY (I)

SCK (O)

CE/ (O)

68

FMGPIO0

B

CE/ (O)

*48

FMGPIO13

B

D1 (B)

D1 (B)

A2 (O)

A2 (O)

A18 (O)

*49

FMGPIO14

B

D2 (B)

D2 (B)

D0 (B)

D0 (B)

A19 (O)

*50

FMGPIO15

B

D3 (B)

D3 (B)

D1 (B)

D1 (B)

A20 (O)

*51

FMGPIO16

B

D4 (B)

D4 (B)

D2 (B)

D2 (B)

A21 (O)

*52

FMGPIO17

B

D5 (B)

D5 (B)

D3 (B)

D3 (B)

© Sunplus Technology Co., Ltd. Proprietary & Confidential

20

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No.

Pin Name

Direction

*53

FMGPIO18

B

D6 (B)

D6 (B)

Description D4 (B)

D4 (B)

Memo

*54

FMGPIO19

B

D7 (B)

D7 (B)

D5 (B)

D5 (B)

SDRAM interface (II) 69

SDCLK

O

SDRAM clock

70

RASnn

O

SDRAM raw address strobe signal

GPIO12

71

CASnn

O

SDRAM column address strobe signal

72

MWEnn

O

SDRAM write enable signal

73

DQM

O

SDRAM data mask signal

74

CKE

75

OVDD3

PG

O

76

OVSS3

PG

77

MA0

B

SDRAM clock enable signal

GPIO13

IO power

3.3V

IO ground SDRAM address bit 0 This bus is also used as the IO-trap. During the IO-trap stage, the “MA” bus is an input bus. After the IO-trap stage, this bus is an output bus.

78

MA1

B

SDRAM address bit 1

79

MA2

B

SDRAM address bit 2

80

MA3

B

SDRAM address bit 3

81

MA4

B

SDRAM address bit 4

82

MA5

B

SDRAM address bit 5

83

MA6

B

SDRAM address bit 6

84

MA7

B

SDRAM address bit 7

85

MA8

B

SDRAM address bit 8

86

MA9

B

SDRAM address bit 9

87

MA10

B

SDRAM address bit 10

88

MA11

B

SDRAM address bit 11

89

DVDD3

PG

Core power

90

DVSS3

PG

Core ground

91

TRAP

B

2.5V

IO-trap control signal

GPIO14

The configuration of the SPCA504B is partly controlled by the IO-trap values in the SDRAM address bus. This trap signal controls the power of the pull-up resistors attached to the SDRAM address. The signal is high once the SPCA504B power is applied and will go to low after the chip reset is completed. This signal will remain low during SPCA504B operation and in the suspend state.

This pin may be configured as a GPIO pin

after power-on. 92

RGB0

I

Sensor data input bit 0. (internal pull low)

93

RGB1

I

Sensor data input bit 1. (internal pull low)

94

RGB2

I

Sensor data input bit 2. (internal pull low)

95

RGB3

I

Sensor data input bit 3. (internal pull low)

96

RGB4

I

Sensor data input bit 4. (internal pull low)

97

RGB5

I

Sensor data input bit 5. (internal pull low)

98

RGB6

I

Sensor data input bit 6. (internal pull low)

99

RGB7

I

Sensor data input bit 7. (internal pull low)

100

RGB8

I

Sensor data input bit 8. (internal pull low)

© Sunplus Technology Co., Ltd. Proprietary & Confidential

21

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Pin No. 101

Pin Name

Direction

RGB9

I

Description

Memo

Sensor data input bit 9. (internal pull low) Timing Generator Default function

TG disabled

102

V1

B

Clock output for vertical CCD drive

EXTvd

(B)

Note 6

103

V2

B

Clock output for vertical CCD drive

EXThd

(B)

Note 6

104

V3

B

Clock output for vertical CCD drive

EXTvvalid ( I )

GPIO15

Note 6

105

SG

B

CCD readout pulse

EXThvalid ( I )

GPIO16

Note 6

106

SUB

O

CCD electric charge sweep pulse output.

EXTdvalid ( I )

GPIO17

Note 6

107

OVDD4

PG

Timing generator IO PAD power

108

OVSS4

PG

Timing generator IO PAD ground

3.3V

109

ADCLP

B

Dummy pixel clamping signal

2XCK output

Note 6

110

ADCK

B

Clock output for AD converter.

1XCK output

Note 6

111

SEN

O

Serial interface data transaction starting

GPIO26

signal The

SPCA504B

synchronous

has

serial

a

built-in

interface

to

communicate with the CDS/AGC chip. The CDS/AGC chip is needed when the SPCA504B is connected with a CCD image sensor. 112

SCK

O

CDS/AGC serial interface clock.

SSISCL

Note 6

B

CDS/AGC interface data output.

SSISDA

Note 6

113

SD

114

DVDD4

PG

Core ground

115

DVSS4

PG

Core power

2.5V

Built-in Audio ADC 116

AVSSD

PG

ADC ground (digital)

117

AVSS

PG

ADC ground (analog)

118

ALC

I

AGC gain control

119

MIC

I

Microphone analog input AGC OpAmp input

120

OPI

I

121

OPO

O

AGC OpAmap output

122

AVDD

PG

ADC power (analog)

123

VREF

O

3.3V

ADC voltage reference USB Transceiver

124

UVSS

125

DP

126

DM

127

UVDD

128

SUSPEND

PG

USB transceiver ground

B

USB D+ signal

B

USB D- signal

PG O

USB transceiver power

3.3V

Chip suspend output

GPIO27

Note* When the 128-pin package is selected, FMGPIO8 to FMGPIO19 are multiplexed to MD0 to MD11. Note 1-6 Please refer to Note 1-6 in Section 3.1 for the function descriptions while ignoring the pin numbers.

© Sunplus Technology Co., Ltd. Proprietary & Confidential

22

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 4.FUNCTIONAL DESCRIPTION 4.1. Block Diagram

SDRAM

Image Data

Image/ Sensor interfac e

siggen

CDSP

DRAM controller

CCD sensors, CDSAGC TG

CPU

Storage media interface controller

JPEG

64K embedded ROM

Storage media

The figure shown above is a functional block diagram of the SPCA504B chip.

USB bus

Audio ADC

(UI /Status LCD)

ROM

USB transceiv er

Audio controller/ compression

PLL

Global

USB interface controller

FIFO controller

MIC

AC97/MP3 Interface

streams.

The SPCA504B has two types of interface for

image acquisition: CCD sensor and CMOS sensor.

A timing

The SPCA504B camera chip supports many types of storage

generator (TG) module is designed to provide all the necessary

media, such as, flash memory, smart media card, compact flash

clocking signals for the CCD sensor.

card, MultiMediaCard, SD card, and ATAPI interface.

The TG module must be

disabled when the CMOS sensor is used.

CMOS and CCD

sensor data share the same digital input bus.

It also

integrates a USB transceiver for transferring compressed image

A synchronous

data to a PC.

serial interface is used to program the CMOS sensor internal registers.

This chip also includes a bi-directional audio control interface for MP3 audio and AC97 codec functions. When an AC97 codec is

The external DRAM device serves as a buffer for capturing image

connected, the audio interface controller transfers audio data

frames as well as compressed data.

between the AC97 codec and the USB transceiver.

Data access to the external

The USB

DRAM memory is through a DRAM interface control module.

transceiver will further transfer the audio data between the

Either the captured image or the image after CDSP processing

SPCA504B chip and the host PC.

can be stored in the external DRAM memory.

CDSP is a color

the audio data recorded by the AC97 codec, and the AC97 codec

image processor that handles all color management and image

and can then playback the audio data generated from the host PC.

enhancement functions.

Thus, the host PC can store

After the JPEG compression module,

the compressed image can be buffered in the external DRAM

The SPCA504B chip also includes an on-chip audio DAC for audio

before going to the USB interface or storage media interface.

recording.

The JPEG compression engine can generate JFIF compliant bit

The audio compression is ADPCM.

© Sunplus Technology Co., Ltd. Proprietary & Confidential

23

It can connect to an external microphone directly. The compressed audio data

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B in the IDLE mode because it must provide the CPU with AE/AWB

goes to the host PC through the USB interface.

information. The SPCA504B camera chip has integrated an 8032-compatible The

DSC mode - Digital Still Camera mode is used to take a single still

application programs can be stored in the 64K bytes of on-chip

picture and saves the compressed image into the storage media.

mask-ROM.

The embedded CPU is required to finish all the AE and AWB

micro-controller with 4K bytes of on-chip SRAM data.

adjustments before the camera is put into the DSC mode. There are two on-chip PLL modules.

Once

the camera enters the DSC mode, it captures the image and

The first is designed to

generate an internal 48MHz master clock from an external 6, 12 or

stores it in DRAM.

24 MHz crystal.

controlled by the firmware.

The other is used to generate clock signals for

The compression and storage tasks are The firmware may instruct the

SPCA504B to compress the image many times until the size of the

the CCD TG module.

compressed image meets the requirements.

4.2. Camera Operation Modes The SPCA504B has five camera operation modes including IDLE,

Video-Clip mode - This mode is designed to take a sequence of

DSC, PC-CAM, Video-Clip and Upload/download modes.

pictures.

mode transition is controlled by the firmware. defines the camera operation mode.

The

The images can be temporarily saved in DRAM or

directly passed to the storage media.

Register 0X2000

The audio data can be

taken (and compressed) at the same time and stored with the

The SPCA504B enters the

designated mode immediately after the Cam mode register is

short video.

programmed.

hardware.

All unfinished tasks are abandoned once the mode

Both video and audio compression are done by Moving data from the DRAM to the storage media is

controlled by the firmware.

is changed.

PC-Camera mode - While operating in this mode, the SPCA504B acts like a PC-camera.

PC-camera mode

DSC mode

The image is taken, processed,

compressed and passed to the PC via the USB bus continuously. The audio data can be sent to the PC at the same time via another USB pipe.

IDLE

USB ISO pipes are used in this mode.

The firmware

does nothing except AE/AWB adjustments in this mode. Upload/ Download mode

Video Clip mode

Upload/Download mode - This mode is for data transfer from the PC to the camera and vice versa.

For example, the images

stored in the storage media can be sent to the PC via the USB bus in this mode.

IDLE mode - The IDLE mode is the default mode after the SPCA504B is power-on.

this mode (For example the updated firmware code).

The IDLE mode resets most of the

mode.

Note that the CDSP module is in operation

© Sunplus Technology Co., Ltd. Proprietary & Confidential

Normally,

the BULK-IN or BULK-OUT pipes of the USB are used in this

internal modules to their power-on states except that the register values are preserved.

Data from the PC can be loaded into the camera in

24

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.ELECTRICAL SPECIFICATIONS 5.1. Absolute Maximum Rating Parameter

Symbol

Value

Unit

VT

-0.4 to 4.0

V

Supply Voltage relative to VSS

VDD

-0.4 to 4.0

Short Circuit Output Current

IOUT

Voltage on any pin relative to VSS

Power Dissipation

V mA

PD

0.3

W

Operating Temperature

TOPT

0 to +70

qC

Storage Temperature

TSTG

-55 to 125

qC

5.2. DC Characteristics I/O Pads: Vdd - Vss = 3.3VΔTA = 25 к Characteristics

Limit

Symbol

Unit

Min

Typ

Max

I/O Operating Voltage

VDD

3.0

3.3

3.6

V

Power supply current (unconfigured)

IDD

-

10.0

-

mA

Power supply current (normal)

IDD

-

18.0

-

mA µA

Power supply current (suspend)

IDD

-

-

5.0

Input High Level

VIH

0.7VDD

-

VDD+10%

V

Input Low Level

VIL

-0.3

-

0.3VDD

V

Output High I

IOH

-

-4

-

mA

Output Sink I

IOL

-

4

-

mA

Schmitt trigger positive-going threshold

VT+

1.9

2.0

-

V

Schmitt trigger negative-going threshold

VT-

-

1.1

1.2

V

Input leakage current

IIL

-

-

1

µA

Core Logic: Vdd-Vss =2.5VΔTA = 25 к Characteristics

Limit

Symbol

Unit

Min

Typ

Max

Core Operating Voltage

VDD

2.25

2.5

2.75

V

Power supply current (unconfigured)

IDD

-

36

-

mA

Power supply current (normal)

IDD

-

56

-

mA

30

µA

Max.

unit

Power supply current (suspend)

IDD

-

5.3. USB DC Characteristics (for pin: DP, DM) Symbol

Parameter

Min.

VOCRS

Output Signal Crossover voltage

1.3

2.0

V

VICRS

Input Signal Crossover voltage

0.8

2.5

V

VIL

Input low voltage

-

0.8

V

VIH

Input high voltage

2.0

-

V

VDI

Differential Input Sensitivity

0.2

-

V

© Sunplus Technology Co., Ltd. Proprietary & Confidential

25

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.4. SDRAM Timing Characteristics 5.4.1. SDRAM initialization timing

SDCLK

CKE tRFC

tRFC

tRP

RASNN

CASNN

MWENN

DQM

MA[13:0]

0

Precharge (All BAnks)

Auto Refresh

Auto Refresh

Time tRP tRFC

0

27

400

Description

Mode Register Set

Min

Typ

Max

Units

Row precharge time

40

-

-

ns

Auto refresh cycle time

160

-

-

ns

5.4.2. SDRAM single read timing

S D C L K

C K E

tR C D

tR C V

R A S N N C A S N N

M W E N N D Q M M A [1 3 :0 ]

R A 0

C A 0

R A 0

M D [1 5 :0 ]

M D 0

R o w

© Sunplus Technology Co., Ltd. Proprietary & Confidential

R A 1

A c t iv e

R e a dP re c h a rg e

26

R o w

C A 1

R A 1

M D 1

A c tiv e

R e a Pd r e c h a r g e

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Min

Typ

Max

Units

tRCD

Time RAS to CAS delay

Description

40

-

-

ns

tRCV

Recovery time

20

-

-

ns

5.4.3. SDRAM page mode read timing

S D C L K

C K E

tR C D

tR P

tR C V

R A S N N

C A S N N

M W E N N

D Q M

M A [1 3 :0 ]

R A 0

R A 0

C A 0

M D [1 5 :0 ]

M D 0

R o w

A c t iv e

Time

M D 1

R e a d

M D 3

M D 2

P re c h a rg e

Description

Min

R A 1

R o w

A c tiv e

Typ

Max

Units

tRCD

RAS to CAS delay

40

-

-

ns

tRCV

Recovery time

20

-

-

ns

Row precharge time

40

-

-

ns

tRP

5.4.4. SDRAM single write timing

S D C L K

C K E

tR C D

tR C V

R A S N N

C A S N N

M W E N N

D Q M

M A [1 3 :0 ]

R A 0

M D [1 5 :0 ]

Proprietary & Confidential

R A 0

R A 1

M D 0

R o w

© Sunplus Technology Co., Ltd.

C A 0

A c tiv e

C A 1

R A 1

M D 1

w r i t eP r e c h a r g e

27

R o w

A c tiv e

w r i t eP r e c h a r g e

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Min

Typ

Max

Units

tRCD

Time RAS to CAS delay

Description

40

-

-

ns

tRCV

Recovery time

20

-

-

ns

5.4.5. SDRAM page mode read timing

S D C L K

C K E

tR C D

tR C V

tR P

R A S N N

C A S N N

M W E N N

D Q M

M A [1 3 :0 ]

R A 0

M D [1 5 :0 ]

M D 0

R o w A c tiv e

Time tRCD tRCV tRP

R A 0

C A 0

w r ite

M D 1 M D 2

w r it e

w r it e

Description

R A 1

M D 3

w r it e

P re c h a rg e

R o w A c t iv e

Min

Typ

Max

Units

RAS to CAS delay

40

-

-

ns

Recovery time

20

-

-

ns

Row precharge time

40

-

-

ns

5.4.6. SDRAM auto refresh timing

SDCLK

h ig h

CKE

tR F C

RASNN

CASNN

MW ENN

h ig h

DQM

A u to R e fre s h

© Sunplus Technology Co., Ltd. Proprietary & Confidential

A u to R e fre s h

28

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Time

Description

Min

Typ

Max

Units

tRFC

Auto refresh cycle time

160

-

-

ns

5.5. Synchronous Serial Interface Timing tHIGH

tLOW

SCLK tHD;START

tHD;DAT

tSU;STOP

tSU;DAT

SDA

Time

Description

Min

Typ

Max

Units

tHIGH

High period of SCLK

5.2

-

-

µs

tLOW

Low period of SCLK

5.2

-

-

µs

tHD;DAT

Data hold time

2.5

-

-

µs

tSU;DAT

Data set-up time

2.5

-

-

µs

tHD;START

Hold time for start condition

2.5

-

-

µs

tSU;STOP

Set-up time for stop condition

2.5

-

-

µs

Min

Typ

Max

Units

5.6. AC-97 Interface Timing 5.6.1. Cold Reset

tRSTL

AURSTNN

Time tRSTL

Description Active low pulse width

-

10

-

µs

* Programmable

5.6.2. Warm Reset

tSYNCH

AUSYNC

© Sunplus Technology Co., Ltd. Proprietary & Confidential

29

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Time

Description

Min

Typ

Max

Units

tSYNCH

Active high pulse width

-

1.3

-

µs

Min

Typ

Max

Units

-

40.7

-

ns

* Programmable

5.6.3. Clock Timing

tCLKP tCLKL

AUBCLK tCLKH

Time

Description

tCLKH

Clock high pulse width

tCLKL

Clock low pulse width

-

40.7

-

ns

tCLKP

Clock cycle time

-

-

-

ns

5.6.4. Sync Timing

tSYNCP tSYNCL

AUSYNC tSYNCH

AUBCLK tSYNCV

AUSYNC

Time

Min

Typ

Max

Units

SYNC high pulse width

-

16

-

aubclk

tSYNCL

SYNC low pulse width

-

240

-

aubclk

tSYNCP

SYNC period

-

256

-

aubclk

tSYNCV

SYNC valid delay

-

-

25

ns

tSYNCH

Description

© Sunplus Technology Co., Ltd. Proprietary & Confidential

30

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.6.5. Audio data output timing

AUBCLK tADOV

AUDOUT

Time

Description

Min

Typ

Max

Units

tADOV

AUDOUT valid delay

-

-

15

ns

5.6.6. Audio Data Input Timing

˔˨˕˖˟˞ ̇˔˗˜˛

̇˔˗˜˦

˔˨˗˜ˡ

Time

Description

Min

Typ

Max

Units

tADIS

AUDIN setup time

10

-

-

ns

tADIH

AUDIN hold time

5

-

-

ns

© Sunplus Technology Co., Ltd. Proprietary & Confidential

31

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.7. CMOS Image Sensor Timing 5.7.1. Original CMOS timing

RGB DATA

External HD

LineValid

hoffsetearly_cycle

early_cycle + imgheight + late_cycle

voffset

imgwidth

External VD

VValid

© Sunplus Technology Co., Ltd. Proprietary & Confidential

32

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.7.2. CMOS Image Sensor Reshapnig Timing RGB DATA

External HD

Inernal HD

h_fall

h_rise LineValid

hoffset-early_cycle

early_cycle + imgheight + late_cycle

voffset

imgwidth

External VD

Inernal VD

v_fall

v_rise VValid

© Sunplus Technology Co., Ltd. Proprietary & Confidential

33

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.7.3. CMOS Image sensor programmable valid timing RGB DATA

External HD

line_blan k line_total LineValid

hoffsetearly_cycle

early_cycle + imgheight + late_cycle

External VD

Frame_blan k Frame_total

VValid

voffset

imgwidth

5.8. CPU Timing

tLHLL

tLHLL

ALE tLLPL tPLPH

PSEN tLLWL tWLWH

ROMWRNN

tAVLL

tPXIX

tLLAX

tAVLL

tWHQX

tLLAX tQVWH

P0

INSTR IN

A0-A7

A0-A7

DATA OUT

tAVIV tAVWL

P2

A8-A15

A8-A15

tAPLV

GPIO[9:8]

© Sunplus Technology Co., Ltd. Proprietary & Confidential

A16-A17

34

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B Time

Description

Min

Typ

Max

Units

50

-

-

ns

tLHLL

ALE pulse width

tLLPL

ALE low to PSEN low

20

-

-

ns

tPLPH

PSEN pulse width

80

-

-

ns

tLLWL

ALE low to ROMWRNN low

20

-

-

ns

tWLWH

ROMWRNN pulse width

80

-

-

ns

tAVLL

Address valid to ALE low

14

-

-

ns

tLLAX

Address hold after ALE low

20

-

-

ns

tPXIX

Input instrustion hold after PSEN

0

-

-

ns

tQVWH

Data valid to ROMWRNN high

75

-

-

ns

tWHQX

Data hold after ROMWRNN

40

-

-

ns

tAVIV

Address to valid in

-

-

70

ns

tAVWL

Address to ROMWRNN low

38

-

-

ns

tAPLV

Address to PSEN low

80

-

-

ns

5.9. USB Timing Driver Characteristics:

Parameter

Symbol

Condition

Min

Max

Unit

Rise Time

tR

D+ and D- connect Rs (12 Ө ) in

4

20

ns

Fall Time

tF

serialΔand 50pF to ground

4

20

ns

(tR÷ tF)

90

111.11

%

Differential Rise and Fall Time Matching

tRFM

Clock Timings: Parameter

Symbol

Min

Max

Unit

Full-speed Data Rate

TFDRATE

11.9700

12.0300

Mb/s

Frame Interval

TFRAME

0.9995

1.0005

ms

© Sunplus Technology Co., Ltd. Proprietary & Confidential

35

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.10. Power-On Reset Timing Power s t a b le

X t a lin , io t r a p [ 7 : 0 ] s t a b le

Power

X t a lin

Io tra p [7 :0 ] tS E T U P

V IH

P rs tn n R eset H ig h

R1Ј10KΕC1Ј2.2uF Symbol

Limit

Parameter

tSETUP

Unit

Min.

Typ.

Max.

6

-

-

I/O Trap setup time

ms

5.10.1. Power-on Sequence The following diagram shows the external power supply sequence

glitches on the I/O pads when the correct power-on sequence is

for the SPCA504B.

applied, then adding suitable pull-down resistance on the

The power for the SPCA504B I/O pad will

have a 0.8V voltage drop below core power if I/O power is not

corresponding I/O pads will suppress the glitches.

supplied.

no glitches over 0.8V on I/O pads if the power-on sequence is

Note that there will be glitches on the I/O pads if I/O

power is supplied before core power.

If there are still small

There will be

followed and suitable pull-down resistors are added.

Voltage 3.3V

I/O Power

2.5V

Core Power

0.8V Time

The power-on sequence diagram

Hence, the 2.5V core power must be supplied before the 3.3V I/O power is supplied.

The power-on sequence is as follow.

1.) Turn on the 2.5V core power. 2.) Turn on the 3.3V I/O power after the 2.5V core power reaches 0.8V. 3.) If necessary, I/O pads shall be pull-low with a 10K resistor to prevent any glitches.

© Sunplus Technology Co., Ltd. Proprietary & Confidential

36

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.11. Flash Memory Interface Timing 5.11.1. Command Latch Cycle

CLE tC L S

tC L H

tC S

tC H

CENN

tW P

W ENN

tA L S

tA L H

ALE tD S

tD H

C om m and

D [7 :0 ]

Time

Description

Min

Typ

Max

Units ns

tCLS

CLE setup time

1120

-

-

tCLH

CLE hold time

1120

-

-

ns

tCS

CENN setup time

1120

-

-

ns

1120

-

-

ns

80

-

-

ns

tCH

CENN hold time

tWP

WENN pulse width

tALS

ALE setup time

1120

-

-

ns

tALH

ALE hold time

1120

-

-

ns

tDS

D[7:0] setup time

80

-

-

ns

tDH

D[7:0] hold time

20

-

-

ns

© Sunplus Technology Co., Ltd. Proprietary & Confidential

37

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.11.2. Address Latch Cycle tCLS

CLE

tCS

tWC

tWC

CENN

tWP

tWP

tWP

WENN tWH

tWH

tALS

tALH

ALE tDS

tDS

tDH

Time

tDH

A16~A23

Min

Typ

Max

Units

CLE setup time

1120

-

-

ns

tCS

CENN setup time

1120

-

-

ns

tWC

Write cycle time

320

-

-

ns

tCLS

Description

tDS

A8~A15

A0~A7

D[7:0]

tDH

tWP

WENN pulse width

80

-

-

ns

tWH

WENN high hold time

240

-

-

ns

tALS

ALE setup time

1120

-

-

ns

tALH

ALE hold time

1120

-

-

ns

tDS

D[7:0] setup time

80

-

-

ns

tDH

D[7:0] hold time

20

-

-

ns

© Sunplus Technology Co., Ltd. Proprietary & Confidential

38

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.11.3. Sequential Out Cycle after Read tRC

CENN tCHZ

tREH tREA

tREA

tREA

RENN tRHZ

tRHZ

Dout

Dout

D[7:0]

Dout

tRR

RDY

Time tRC

Description Read cycle time

Min

Typ

Max

Units

100

-

-

ns

tCHZ

CENN high to output Hi-Z

0

-

-

ns

tREA

RENN access time

-

-

50

ns

tREH

RENN high hold time

60

-

-

ns

tRHZ

RENN to D[7:0] output Hi-Z

0

-

-

ns

tRR

RDY to RENN low

1120

-

-

ns

© Sunplus Technology Co., Ltd. Proprietary & Confidential

39

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.11.4. Input Data Latch Cycle tCLH

CLE

tALS

tWC

tCH

CENN

tWP

tWP

tWP

WENN tWH

ALE tDS

tDH

tDS

DIN 1

DIN 0

D[7:0]

Time

tDH

tDH

DIN 255

Min

Typ

Max

Units

CLE hold time

1120

-

-

ns

tALS

ALE setup time

1120

-

-

ns

tWC

Write cycle time

100

-

-

ns

tCH

CENN hold time

1120

-

-

ns

tWP

WENN pulse width

40

-

-

ns

tCLH

Description

tDS

tWH

WENN high hold time

60

-

-

ns

tDS

D[7:0] setup time

40

-

-

ns

tDH

D[7:0] hold time

40

-

-

ns

© Sunplus Technology Co., Ltd. Proprietary & Confidential

40

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 5.11.5. Status Read Cycle tCLS

CLE tCLS

tCLH

tCS

tCH

CENN tCHZ tWP

WENN tCSTO

tWHR

RENN tDS

tIR

tRHZ

tRSTO

Command

Command

D[7:0]

Time tCLS

tDH

Description CLE setup time

Min

Typ

Max

Units

1120

-

-

ns

tCLH

CLE hold time

1120

-

-

ns

tCS

CENN setup time

1120

-

-

ns

tCH

CENN hold time

1120

-

-

ns

tWP

WENN pulse width

80

-

-

ns

tCHZ

CENN high to output Hi-Z

0

-

-

ns

tCSTO

CENN low to status output

-

-

1170

ns

tWHR

WENN high to RENN low

2240

-

-

ns

tDS

D[7:0] setup time

80

-

-

ns

tDH

D[7:0] hold time

20

-

-

ns

tIR

D[7:0] output Hi-Z to RENN low

0

-

-

ns

tRSTO

RENN to status output

-

-

50

ns

tRHZ

RENN to D[7:0] output Hi-Z

0

-

-

ns

© Sunplus Technology Co., Ltd. Proprietary & Confidential

41

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 6. PACKAGE 6.1. LQFP 160-pin

D D1

e

SUNPLUS SPCA504B-P1

E E1

b

YYWW

A2 A

c L1

A1

Symbol

Min.

Nom.

Max.

A

-

-

1.6

A1

0.05

-

0.15

A2

1.35

1.40

1.45

D

-

22.00

-

D1

-

20.00

-

E

-

22.00

-

E1

-

20.00

-

L1

-

1.00

-

b

0.13

0.18

0.23

c

0.09

-

0.20

e

-

0.40

-

Unit: millimeter

© Sunplus Technology Co., Ltd. Proprietary & Confidential

42

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 6.2. LQFP 128-Pin

D D1

e

b

SUNPLUS

E E1

SPCA504B-P3/P4 YYWW

A2 A

c L1

Symbol

A1

Min.

Nom.

Max.

A

-

-

1.6

A1

0.05

-

-

A2

1.35

1.40

1.45

D

15.85

16.00

16.15

D1

13.90

14.00

14.10

E

15.85

16.00

16.15

E1

13.90

14.00

14.10

L1

-

1.00

-

b

0.13

0.18

0.23

c

0.09

-

0.20

e

-

0.40

-

Unit: millimeter

© Sunplus Technology Co., Ltd. Proprietary & Confidential

43

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 7.DISCLAIMER The information appearing in this publication is believed to be accurate. Integrated circuits sold by Sunplus Technology are covered by the warranty and patent indemnification provisions stipulated in the terms of sale only. SUNPLUS makes no warranty, express, statutory implied or by description regarding the information in this publication or regarding the freedom of the described chip(s) from patent infringement.

FURTHERMORE, SUNPLUS MAKES NO WARRANTY OF

MERCHANTABILITY OR FITNESS FOR ANY PURPOSE. SUNPLUS reserves the right to halt production or alter the specifications and prices at any time without notice. Accordingly, the reader is cautioned to verify that the data sheets and other information in this publication are current before placing orders. Products described herein are intended for use in normal commercial applications. Applications involving unusual environmental or reliability requirements, e.g. military equipment or medical life support equipment, are specifically not recommended without additional processing by SUNPLUS for such applications. Please note that application circuits illustrated in this document are for reference purposes only.

© Sunplus Technology Co., Ltd. Proprietary & Confidential

44

JUL. 16, 2003 Preliminary Version: 0.1

Preliminary

SPCA504B 8.REVISION HISTORY Date

Revision #

JUL. 16, 2003

0.1

© Sunplus Technology Co., Ltd. Proprietary & Confidential

Description Original

Page 45

45

JUL. 16, 2003 Preliminary Version: 0.1