Publication Release Date: May 17, 2005
- i - Revision 1.0
Winbond
Integrated Media Reader
W83L518D
Datasheet
W83L518D
- ii -
Table of Contents-
1. GENERAL DESCRIPTION......................................................................................................... 1
2. FUNCTIONS............................................................................................................................... 1
2.1 General............................................................................................................................. 1
2.2 Smart Card Interface........................................................................................................ 1
2.3 Memory Stick Interface..................................................................................................... 2
2.4 SD Memory Card Interface .............................................................................................. 2
2.5 Package ........................................................................................................................... 2
3. PIN CONFIGURATION FOR W83L518D................................................................................... 3
4. PIN DESCRIPTION..................................................................................................................... 4
4.1 Bus Interface .................................................................................................................... 4
4.2 Smart Card Interface Pins................................................................................................ 5
4.3 Memory Stick Interface/SD Memory Interface Pins......................................................... 6
4.4 General-Purpose I/O Pins................................................................................................ 7
4.5 Crystal and Power Pins.................................................................................................... 7
5. GENERAL-PURPOSE I/O PORTS (GPIO) ................................................................................ 8
6. CONFIGURATION REGISTER .................................................................................................. 9
6.1 Plug and Play Configuration............................................................................................. 9
6.2 Compatible PnP ............................................................................................................. 10
6.2.1 Extended Function Register ...........................................................................................10
6.2.2 Extended Functions Enable Register (EFER).................................................................10
6.2.3 Extended Function Index Register (EFIR), Extended Function Data Register (EFDR)...11
6.3 Configuration Sequence................................................................................................. 11
6.3.1 Software programming example.....................................................................................11
6.4 Global Registers............................................................................................................. 12
6.5 Logical Device 0 (Smart Card Interface)........................................................................ 14
6.6 Logical Device 1 (Memory Stick Interface) .................................................................... 15
6.7 Logical Device 2 (GPIO) ................................................................................................ 16
6.8 Logical Device 3 (SD Memory Interface) ....................................................................... 17
7. ORDERING INSTRUCTION..................................................................................................... 18
8. HOW TO READ THE TOP MARKING...................................................................................... 19
9. PACKAGE DRAWING AND DIMENSIONS.............................................................................. 20
10. THE W83L518D SCHEMATIC.................................................................................................. 21
11. REVISION HISTORY................................................................................................................ 23
W83L518D
Publication Release Date: May 17, 2005
- 1 - Revision 1.0
1. GENERAL DESCRIPTION
W83L518D is Winbond's innovative solution to a new class of storage devices for IA Noetebook,
Desktop PC and PC system-related products. It incorporates a security Application: Smart Card
Interface and two most promising compact storage interfaces: Memory Stick interface, and SD
Memory Card/Multimedia Card interface in IT era.
To cater boundless IT implementation possibilities, W83L518D can be configured to interface with
host through LPC bus. Base on the LPC interface, one Smart Card Interface port and two flash
memory interfaces - Memory Stick and SD Memory ports are provided. The kind of versatility allows
user to design very cost-effective products in a very flexible way.
The whole chip of W83L518D operates at voltage level of 3.3 V except Smart Card Interface port's I/O
pins that are at 5 V to be compatible with mainstream Smart Card implementations. Advanced power
management feature further optimizes power consumption whether in operation or in power down
mode.
W83L518D comes as a 48-pin LQFP streamline package. Combining with powerful functions,
effective power management, and versatile configurability, this integrated media reader offers a
perfect approach for design of storage device of IT products.
The trademarks and intellectual property rights of Memory Stick belong to SONY Corporation.
Information check: http://www.memorystick.org/
The trademarks and intellectual property rights of Secure Digital belong to SD Group. Information
check: http://www.sdcard.org/
2. FUNCTIONS
2.1 General
• LPC bus is compliant with LPC Spec. 1.01
• LPC bus supports LDRQ# (LPC DMA), SERIRQ (serial IRQ)
• Programmable configuration settings
• 48 MHz crystal inputs
• PCICLK of 33 MHz is needed for LPC bus configuration
2.2 Smart Card Interface
• ISO-7816 compliant
• PC/SC T=0, T=1 compliant
• 16-byte transmitter FIFO and 16-byte receiver FIFO
• FIFO threshold interrupt to optimize system performance
• Programmable transmission clock frequency
• Versatile baud rate configuration
• UART-like register file structure
• General-purpose C4, C8 channels
W83L518D
- 2 -
2.3 Memory Stick Interface
• Memory Stick Standard Format Specifications ver. 1.3 compliant
• Support MemoryStick PRO (serial mode)
• Support interrupt polling transmission
• Support FIFO threshold interrupt to optimize system performance
• Automatic clock halt to prevent underrun/overrun
• 16 MHz interface clock
2.4 SD Memory Card Interface
• SD Memory Card Specifications: Part 1 PHYSICAL LAYER SPECIFICATION Version 1.0
Compliant
• Support MultiMedia Card
• Support interrupt polling transmission
• Support FIFO threshold interrupt to leverage system performance
• 24 MHz interface clock
2.5 Package
• 48-pin LQFP
W83L518D
Publication Release Date: May 11, 2005
- 3 - Revision 1.0
3. PIN CONFIGURATION FOR W83L518D
W83L518D
PCICL
K
LDRQ
#
LFRAME
#
RESET
#
PME
#
VSS
GP17
GP16
GP15
GP14
GP13
GP12
1
2
3
4
5
6
7
8
9
10
11
12
36
35
34
33
32
31
30
29
28
27
26
25
SDPWR#/GP21
SDLED/GP20
SCC4
SCC8
MSLED
MSPWR#
VSS
MSCLK
MS1
MS2
MS3
MS4
SDC LK /G P22
SD1 /G P23
SD2 /G P24
VDD3V
SD3 /G P25
SD4 /G P26
SD5 /G P27
LAD3
LAD2
LAD1
LAD0
SERIRQ
MS5
XIN
XOUT
SCRST#
SCIO
SCCLK
SCPSNT
SCPWR#
SCLED
VDD
GP10
GP11
24
23
22
21
20
19
18
17
16
15
14
13
37
38
39
40
41
42
43
44
45
46
47
48
W83L518D
- 4 -
4. PIN DESCRIPTION
Note:
INt - 5V TTL level input pin
INtp3 - 3.3V TTL level input pin
INts - 5V TTL level Schmitt-trigger input pin
INtsp3 - 3.3V TTL level Schmitt-trigger input pin
I/O12t - 5V TTL level bi-directional pin with 12 mA drive-sink capability
I/O24t - 5V TTL level bi-directional pin with 24 mA drive-sink capability
I/O16tp3 - 3.3V TTL level bi-directional pin with 16 mA drive-sink capability
O2 - 5V output pin with 2 mA drive-sink capability
O12 - 5V output pin with 12 mA drive-sink capability
O16p3 - 3.3V output pin with 16 mA drive-sink capability
OD12p3 - 3.3V Open-drain output pin with 12 mA sink capability.
4.1 Bus Interface
SYMBOL PIN I/O FUNCTION
PME# 5 OD12p3 Active-low PME event.
RESET# 4 INtsp3 Active-low system reset signal.
LFRAME# 3 INtsp3 Active-low signal indicates start of a new LPC frame or
termination of a premature frame.
LDRQ# 2 O16p3 Encoded DMA Request signal.
PCICLK 1 Intsp3 PCI clock input of 33 MHz.
SERIRQ 48 I/O16tp3 Serial IRQ input/output.
LAD0 47 I/O16tp3 This signal combining with other LADx signals communicate
address, control, and data information over the LPC bus between
a host and a peripheral.
LAD1 46 I/O16tp3 This signal combining with other LADx signals communicate
address, control, and data information over the LPC bus between
a host and a peripheral.
LAD2 45 I/O16tp3 This signal combining with other LADx signals communicate
address, control, and data information over the LPC bus between
a host and a peripheral.
LAD3 44 I/O16tp3 This signal combining with other LADx signals communicate
address, control, and data information over the LPC bus between
a host and peripherals.
W83L518D
Publication Release Date: May 11, 2005
- 5 - Revision 1.0
4.2 Smart Card Interface Pins
SYMBOL PIN I/O FUNCTION
SCC4 34 I/O16tp3 Smart Card interface general purpose I/O channel for
connector pin C4 on a card.
SCC8 33 I/O16tp3 Smart Card interface general purpose I/O channel for
connector pin C8 on a card.
SCLED 16 O24 This pin outputs an oscillating clock signal of various
frequencies depending on traffic of primary Smart Card
interface.
SCPWR# 17 O24 Smart Card interface power control signal.
SCPSNT 18 INts Smart Card interface card present detection Schmitt-trigger
input.
SCCLK 19 O2 Smart Card interface clock output.
SCIO 20 I/O12t Smart Card interface data I/O channel.
SCRST# 21 O12 Smart Card interface reset output.
W83L518D
- 6 -
4.3 Memory Stick Interface/SD Memory Interface Pins
SYMBOL PIN I/O FUNCTION
MSLED 32 O16p3 Memory Stick function - This pin outputs an oscillating clock
signal of various frequencies depending on traffic of the
Memory Stick interface.
MSPWR# 31 O16p3 Memory Stick function - This pin is power control signal for the
Memory Stick interface.
MSCLK 29 O16p3 Memory Stick function - This pin is SCLK for the Memory Stick
interface.
MS1 28 O16p3 Memory Stick interface pin.
MS2 27 I/O16tp3 Memory Stick interface pin.
MS3 26 --- Memory Stick interface pin.
MS4 25 INtsp3 Memory Stick interface pin.
MS5 24 --- Memory Stick interface pin.
SD5 43 I/O16tp3 SD interface pin.
SD interface pin. 42 I/O16tp3 SD interface pin.
SD interface pin. 41 I/O16tp3 SD interface pin.
SD interface pin. 39 I/O16tp3 SD interface pin.
SD interface pin. 38 I/O16tp3 SD interface pin.
SDCLK 37 O16p3 SD function - This pin is CLK for the SD memory card
interface.
SDPWR# 36 O16p3 SD function - This pin is power control signal for the SD
memory card interface.
SDLED 35 O16p3 SD function - This pin outputs an oscillating clock signal of
various frequencies depending on traffic of the SD memory
card interface.
CARD_DETECT 13 INt Function as an alternative card detection input for the SD
memory interface.
W83L518D
Publication Release Date: May 11, 2005
- 7 - Revision 1.0
4.4 General-Purpose I/O Pins
SYMBOL PIN I/O FUNCTION
GP17 7 I/O12t General-purpose I/O port 17.
GP16 8 I/O12t General-purpose I/O port 16.
GP15 9 I/O12t General-purpose I/O port 15.
GP14 10 I/O12t General-purpose I/O port 14.
GP13 11 I/O12t General-purpose I/O port 13.
GP12 12 I/O12t General-purpose I/O port 12.
GP11
EX_CD 13 I/O12t General-purpose I/O port 11.
External card detedtion pin. The detectable level can be set on bit 2
of CR F0 on Logical device 3.
GP10
PHEFRAS 14 I/O12t
Int
General-purpose I/O port 10.
This pin also functions as a power-on setting pin whose value is
latched on the rising edge of RESET# (pin 4) to select configuration
ports as 2Eh/2Fh (PHEFRAS = 1) or 4Eh/4Fh (PHEFRAS = 0). It
determines the default value of CR26 bit 6 (HEFRAS).
4.5 Crystal and Power Pins
SYMBOL PIN FUNCTION
XOUT, XIN 22, 23 Connected to a 48 MHz crystal and function as the working clock
for all the media reader interfaces.
VDD3V 40
+3.3V power supply for host interface, Memory Stick/SD Memory
interfaces, and internal core.
VDD 15 +5V power supply for Smart Card interface I/O pins.
VSS 6, 30 Ground.
W83L518D
- 8 -
5. GENERAL-PURPOSE I/O PORTS (GPIO)
W83L518D supports one group of dedicated general-purpose I/O ports and a multi-functional GPIO
group, which share the same pines with the SD interface sockets. There are cases when only one
socket is needed in a system and pins for the other unused socket are wasted. To provide the most
cost-effective solution, W83L518D could be configured to transform these pins into general-purpose
I/O ports.
The first group (GP10 ~ 17) is configured through the configuration registers CRF0 ~ CRF2 in logical
device 2 and the other group (GP20 ~27) through CRF3 ~ F5. Users can configure each individual
port to be an input or output port by programming respec tive bit in direction register (CRF0/CRF3: 0 =
output, 1 = input). Invert port value by setting inversion register (CRF2/CRF5: 0 = non-inverse, 1 =
inverse). Port value is read/written through data register (CRF1/CRF4). Table 5.1 and 5.2 illustrate
GPIO's assignment. To further facilitate system design, W83L518D allows direct accesses to data
register and direction register through I/O ports, whose base address is programmable at CR 60, 61 in
logical device 2. Detailed configuration is described in logical device 2 of section 6:
CONFIGURATION REGISTER.
GP10 (pin 14) also functions as a power-on setting pin whose value is latched on the rising edge of
RESET# (pin 4) to select configuation port addresses. Therefore, GP10 is a push-pull I/O port unlike
the other GPIO ports, which are open-drained I/Os to support this power-on setting feature.
GP11 (pin 13) could function as a card detection input if selected by SDI to support some MMC cards,
which don't offer card detection feature through DATA3 pin.
Table 5.1
DIRECTION BIT
0 = OUTPUT
1 = INPUT
INVERSION BIT
0 = NON INVERSE
1 = INVERSE
I/O OPERATION
0 0 Basic non-inverting output
0 1 Basic inverting output
1 0 Basic non-inverting input
1 1 Basic inverting input
W83L518D
Publication Release Date: May 11, 2005
- 9 - Revision 1.0
Table 5.2
GPIO PORT DATA
REGISTER REGISTER BIT ASSIGNMENT GP I/O PORT
BIT 0 GP10
BIT 1 GP11
BIT 2 GP12
BIT 3 GP13
BIT 4 GP14
BIT 5 GP15
BIT 6 GP16
GP1
BIT 7 GP17
BIT 0 GP20
BIT 1 GP21
BIT 2 GP22
BIT 3 GP23
BIT 4 GP24
BIT 5 GP25
BIT 6 GP26
GP2
BIT 7 GP27
6. CONFIGURATION REGISTER
6.1 Plug and Play Configuration
W83L518D/W83L519D implement compatible PNP protocol to access configuration registers for
setting up different types of configurations. There are four Logical Devices (Logical Device 0 to
Logical Device 3) in W83L518D/W83L519D which correspond to four major functions: Smart Card
Interface (logical device 0), Memory Stick Interface (logical device 1), GPIO (logical device 2) and SD
Memory Interface (logical device 3). Each Logical Device has its own configuration registers (CR30
and above). Host can access those registers by writing an appropriate logical device number into
logical device select register at CR07 first.
W83L518D
- 10 -
One set per
logical device
logical device select07
h
30
h
40
h
FEh
3F
h
logical device control
glob al regist ers
logical device
configuration
6.2 Compatible PnP
6.2.1 Extended Function Register
W83L518D/W83L519D provide two methods to enter Extended Function mode (compatible PnP) and
access configuration registers dependent on value of HEFRAS (bit 6 of CR26. The corresponding
power-on setting pin is pin 14) as follows:
HEFRAS ADDRESS AND VALUE
0 write 83h to I/O address 2Eh twice
1 write 83h to I/O address 4Eh twice
In Compatible PnP, a specific value (83h) must be written twice to the Extended Function Enable
Register (EFER at I/O address 2Eh or 4Eh). Secondly, an index value (02h, 07h-FFh) must be written
to the Extended Function Index Register (EFIR, I/O address at 2Eh or 4Eh which is the same as
EFER) to identify which configuration register is to be accessed. User can then access the addressed
configuration register through the Extended Function Data Register (EFDR, I/O address at 2Fh or
4Fh).
After programming of the configuration register is completed, another specific value (0AAh) should be
written to EFER to leave Extended Function mode to prevent inadvertent accesses to those
configuration registers. User may write a "1" to bit 5 of CR26 (LOCKREG) to prevent configuration
registers from accidental accesses.
6.2.2 Extended Functions Enable Register (EFER)
After a power-on reset, W83L518D/W83L519D enters the default operation mode. A specific value
must be programmed into the Extended Function Enable Register (EFER) so that configuration
registers can be accessed. On a PC/AT system, its I/O address is 2Eh or 4Eh (as described in
previous section).
W83L518D
Publication Release Date: May 11, 2005
- 11 - Revision 1.0
6.2.3 Extended Function Index Register (EFIR), Extended Function Data Register (EFDR)
After entering Extended Function mode, Extended Function Index Register (EFIR) must be written
with an index value (02h, 07h-FEh) to specify which configuration register is to be accessed through
Extended Function Data Register (EFDR). EFIR is a write-only register at I/O address 2Eh or 4Eh (as
described in section 6.2.1) on a PC/AT system and EFDR is a read/write register at I/O address 2Fh
or 4Fh.
6.3 Configuration Sequence
To program configuration registers, specific configuration sequence must be followed:
(1) Write 83h to EFER twice to enter Extended Function mode.
(2) Select logical device select register by writing 07h to EFIR.
(3) Select logical device by writing a value to EFDR.
(4) Select control/configuration register by writing its index to EFIR.
(5) Access selected control/configuration register through EFDR.
(6) Repeat step 4 ~ 5 as needed.
(7) Leave Extended Function mode by writing AAh to EFER.
Step 2 and step 3 are not necessary for accessing global register (index 00h to 2Fh).
6.3.1 Software programming example
The following example is written in Intel 8086 assembly language. EFER and EFIR are assumed to
be at 2Eh, and EFDR is at 2Fh. Use 4Eh/4Fh instead of 2Eh/2Fh if HEFRAS (bit 6 of CR26) is set.
;-----------------------------------------------------------------------------------
; Enter Extended Function mode, interruptible double-write |
;-----------------------------------------------------------------------------------
MOV DX, 2Eh
MOV AL, 83h
OUT DX, AL
OUT DX, AL
;-----------------------------------------------------------------------------
; Configure logical device 1, configuration register CRF0 |
;-----------------------------------------------------------------------------
MOV DX, 2Eh
MOV AL, 07h
OUT DX, AL ; point to Logical Device Number Reg.
MOV DX, 2Fh
MOV AL, 01h
OUT DX, AL ; select logical device 1
W83L518D
- 12 -
;
MOV DX, 2Eh
MOV AL, F0H
OUT DX, AL ; select CRF0
MOV DX, 2Fh
MOV AL, 3Ch
OUT DX, AL ; update CRF0 with value 3CH
;------------------------------------------
; Exit extended function mode |
;------------------------------------------
MOV DX, 2Eh
MOV AL, AAh
OUT DX, AL
6.4 Global Registers
CR02 (Default 00h, write only)
Bit [7:1]: Reserved.
Bit 0: SWRST
= 0 Normal operation.
= 1 Software reset.
CR07 (Default 00h)
Bit [7:0]: Logical Device Number.
CR20 (read only)
Bit [7:0]: Device ID number (higher byte).
= 71h
CR21 (read only)
Bit [7:0]: Device ID number (lower byte)
= 1Xh (for W83L518D)
= 2Xh (for W83L519D)
X: Revision number
CR22 (Default 80h)
Bit 7: SCPWD
= 0 Power down Smart Card interface.
= 1 No Power down.
W83L518D
Publication Release Date: May 11, 2005
- 13 - Revision 1.0
Bit 6: MSPWD
= 0 Power down Memory Stick interface.
= 1 No Power down.
Bit 5: SDPWD
= 0 Power down SD memory card interface.
= 1 No Power down.
Bit [4:0]: Reserved.
CR23 (Default 00h)
Bit 7: PME_EN. Power management event enable bit.
= 0 PME_L function is disabled.
= 1 Enable to issue a low pulse on PME_L when a power management event
occurs.
Bit 6: MSPME_EN. Memory Stick interface power management event enable bit.
= 0 Memory Stick interface power management event is disabled.
= 1 Enable Memory Stick interface power management event to issue a low pulse
on PME_L when PME_EN is also enabled.
Bit 5: SDPME_EN. SD memory card interface power management event enable bit.
= 0 SD memory card interface power management event is disabled.
= 1 Enable SD memory card interface power management event to issue a low
pulse on PME_L when PME_EN is also enabled.
Bit 4: SCPME_EN. Smart Card interface power management event enable bit.
= 0 Smart Card interface power management event is disabled.
= 1 Enable Smart Card interface power management event to issue a low pulse
on PME_L when PME_EN is also enabled.
Bit [3:0]: Reserved.
CR24 (Default 00h)
Bit 7: Reserved.
Bit 6: MSPME_STS. Memory Stick interface power management event status bit.
= 0 No Memory Stick interface power management event occurs.
= 1 Memory Stick interface power management event occurs.
Bit 5: SDPME_STS. SD memory card interface power management event status bit.
= 0 No SD memory card interface power management event occurs.
= 1 SD memory card interface power management event occurs.
Bit 4: SCPME_STS. Smart Card interface power management event status bit.
= 0 No Smart Card interface power management event occurs.
= 1 No Smart Card interface power management event occurs.
Bit [3:0]: Reserved.
W83L518D
- 14 -
CR26 (Default 40h)
Bit 7: Reserved
Bit 6: HEFRAS, Extended Function Register Address Select. The corresponding power-on
setting pin is GP10 (PHEFRAS, pin 14). The HEFRAS is defaulted to "1" if PHEFRAS
is "0" and is defaulted to "0" if PHEFRAS is "1".
= 0 Extended Function Registers are at 2Eh/2Fh.
= 1 Extended Function Registers are at 4Eh/4Fh.
Bit 5: LOCKREG
= 0 Enable accesses of Configuration Registers.
= 1 Disable accesses of Configuration Registers.
Bit [4:0]: Reserved
CR29 (Default 00h, only valid in W83L518D)
Bit 7: Multi-function selection bit for pin 7 ~ 14
= 0 Pin 7 ~ 14 function as Smart Card interface socket B.
= 1 Pin 7 ~ 14 function as GPIO1.
Bit 6: Multi-function selection bit for pin 35 ~ 43
= 0 Pin 35 ~ 43 function as MSI/SDI socket B.
= 1 Pin 35 ~ 43 function as GPIO2.
Bit 5: Multi-function selection bit for pin 32 ~ 31 & pin 29 ~ 24.
= 0 Pin 32 ~ 31 and pin 29 ~ 24 function as MSA (MS interface card A).
= 1 Pin 32 ~ 31 and pin 29 ~ 24 function as SDA (SD interface card A).
Bit 4: Multi-function selection bit for pin 43 ~ 41 & pin 39 ~ 35.
= 0 Pin 43 ~ 41 & pin 39 ~ 35 function as MSB (MS interface card B).
= 1 Pin 43 ~ 41 & pin 39 ~ 35 function as SDB (MS interface card B).
Bit [3:0]: Reserved.
6.5 Logical Device 0 (Smart Card Interface)
CR30 (Default 0x00)
Bit [7:1]: Reserved.
Bit 0: Logical device active bit.
= 0 Logical device is inactive.
= 1 Activates the logical device.
CR60, CR61 (Default 0x00, 0x00)
These two registers select Smart Card base address [0x100:0xFFF] on 8-byte boundary.
CR70 (Default 0x00)
Bit [7:4]: Reserved.
Bit [3:0]: These bits select IRQ resource for Smart Card interface.
W83L518D
Publication Release Date: May 11, 2005
- 15 - Revision 1.0
CRF0 (Default 0x00)
Bit 7: IRQ sharing control bit.
= 0 No IRQ sharing.
= 1 IRQ sharing.
Bit 0: SCPSNT_POL (Smart Card PreSeNT POLarity). SCPSNT polarity bit.
= 0 SCPSNT is active high.
= 1 SCPSNT is active low.
6.6 Logical Device 1 (Memory Stick Interface)
CR30 (Default 0x00)
Bit [7:1]: Reserved.
Bit 0: Logical device active bit.
= 0: Logical device is inactive.
= 1: Activates the logical device.
CR60, CR61 (Default 0x00, 0x00)
These two registers select MSI base address [0x100:0xFFF] on 8-byte boundary.
CR70 (Default 0x00)
Bit [7:4]: Reserved.
Bit [3:0]: These bits select IRQ resource for MSI.
CR74 (Default 0x04)
Bit [7:4]: Reserved.
Bit [3:0]: These bits select DRQ resource for MSI.
CRF0 (Default 0x00)
Bit [7:5]: Reserved.
Bit 4: IRQ polarity control bit by level mode.
= 0: IRQ is active high.
= 1: IRQ is active low.
Bit 3: IRQ polarity control bit by pulse mode.
= 0: IRQ is active low.
= 1: IRQ is active high.
Bit 2: IRQ sharing control bit.
= 0: No IRQ sharing.
= 1: IRQ sharing.
W83L518D
- 16 -
Bit 1: MS4 output polarity control bit.
0: MS4 output low.
1: MS4 output high.
Bit 0: MS4 output enable bit.
0: MS4 output disable.
1: MS4 output enable.
6.7 Logical Device 2 (GPIO)
CR30 (Default 00h)
Bit [7:3]: Reserved.
Bit 2: Individual disable/enable bit for GPIO2.
= 0 GPIO2 is disabled if bit 0 is also "0".
= 1 GPIO2 is enabled.
Bit 1: Individual disable/enable bit for GPIO1.
= 0 GPIO1 is disabled if bit 0 is also "0".
= 1 GPIO1 is enabled.
Bit 0: Logical device disable/enable bit.
= 0 GPIO1 and GPIO2 are disabled/enabled dependent on bit 1 and 2
respectively.
= 1 Activates GPIO1 and GPIO2.
CR60, CR61 (Both default 00h)
Base address configuration registers: programmable at addresses from 0100h to 0FF8h on 4-byte
boundary. Base address + 0 and base address + 1 are for GPIO1 as direction register and data
register respectively while base address + 2 and base address + 3 are for GPIO2 as direction register
and data register respectively.
CRF0 (GP10 ~ GP17 direction register. Default FFh)
When set to "1", respective GPIO port is programmed as an input port. When set to a "0", respective
GPIO port is programmed as an output port.
CRF1 (GP10 ~ GP17 data register. Default 00h)
If a port is programmed to be an output port, its respective bit can be read/written and output to
respective pin. If a port is programmed to be an input port, its respective bit reflects what is on
respective pin.
CRF2 (GP10 ~ GP17 inversion register. Default 00h)
When set to "1", respective incoming/outgoing port value is inverted. When set to "0", respective
incoming/outgoing port value is the same as in data register.
CRF3 (GP20 ~ GP27 direction register. Default FFh)
When set to "1", respective GPIO port is programmed as an input port. When set to a "0", respective
GPIO port is programmed as an output port.
W83L518D
Publication Release Date: May 11, 2005
- 17 - Revision 1.0
CRF4 (GP20 ~ GP27 data register. Default 00h)
If a port is programmed to be an output port, its respective bit can be read/written and output to
respective pin. If a port is programmed to be an input port, its respective bit reflects what is on
respective pin.
CRF5 (GP20 ~ GP27 inversion register. Default 00h)
When set to "1", respective incoming/outgoing port value is inverted. When set to "0", respective
incoming/outgoing port value is the same as in data register.
6.8 Logical Device 3 (SD Memory Interface)
CR30 (Default 0x00)
Bit [7:1]: Reserved.
Bit 0: Logical device active bit.
= 0 Logical device is inactive.
= 1 Activates the logical device.
CR60, CR61 (Default 0x00, 0x00)
These two registers select SD Card interface base address [0x100:0xFFF] on 8-byte boundary.
CR70 (Default 0x00)
Bit [7:4]: Reserved.
Bit [3:0]: These bits select IRQ resource for SD interface.
CR74 (Default 0x00)
Bit [7:4]: Reserved.
Bit [3:0]: These bits select DRQ resource for SD interface.
CRF0 (Default 0x01)
Bit [7:6]: Reserved.
Bit 5: Set the output value of the DATA3 pin when bit4 is setted 1.
= 0 The DATA3 pin will output low.
= 1 The DATA3 pin will output high.
Bit 4: Set the DATA3 (MS1 or MSB1) pin to output pin.
= 0 Set the DATA3 pin to bi-direction pin.
= 1 Set the DATA3 pin to output pin.
Bit 3: Reserved.
Bit 2: Select the pole of the GP11 card-detect pin.
= 0 When detecting the low signal indicate the card is inserted and high signal
indicate the card is extracted.
= 1 When detecting the high signal incicate the card is inserted and low signal
indicate the card is extracted.
W83L518D
- 18 -
Bit 1: Select GP11 pin to detect card.
= 0 Don’t use the GP11 pin to detect card.
= 1 Use the GP11 (SCBPWR_L) pin to detect card.
Bit 0: Select DATA3 pin to detect card.
= 0 Don’t use the DATA3 (MS1 or MSB1) to detect card.
= 1 Use the DATA3 (MS1 or MSB1) pin to detect card.
CRF1 (Default 0x01)
Bit [7:4]: Reserved.
Bit 3: Set the IRQ pole for level mode.
= 0 The IRQ is active high.
= 1 The IRQ is active low.
Bit 2: Set the IRQ pole for pulse mode.
= 0 The IRQ is active low.
= 1 The IRQ is active high.
Bit 1: Set the IRQ to level mode or pulse mode.
= 0 The IRQ is level mode.
= 1 The IRQ is pulse mode.
Bit 0: Use debounce function for card-detect circuit.
= 0 No debouunce.
= 1 Use debounce function.
7. ORDERING INSTRUCTION
PART NO. PACKAGE REMARKS
W83L518D 48-pin LQFP
W83L518D
Publication Release Date: May 11, 2005
- 19 - Revision 1.0
8. HOW TO READ THE TOP MARKING
1st line: Winbond logo and the SMART@IO Trademark
SMART@IO
W83L518D
201GBSB
2nd line: The chip part number.
3rd line: Tracking code 201 G B SB
201: packages made in '02, week 01
G: assembly house ID; O means OSE, G means GR, …
BSB: IC revision
W83L518D
- 20 -
9. PACKAGE DRAWING AND DIMENSIONS
Package- 48-pin LQFP
Y
SEATING PLANE
D
E
eb
A2 A1
A
112
48
D
H
E
H
L1
L
c
θ
Controlling dimension : Millimeters
0.10
070
0.004
1.00
0.75
0.600.45
0.039
0.030
0.024
0.018
9.109.00
8.90
0.358
0.354
0.350
0.50
0.20
0.25
1.45
1.40
0.10
0.15
1.35
0.008
0.010
0.0570.055
0.026
7.10
7.00
6.90
0.280
0.276
0.272
0.004
0.006
0.053
Symbol Min Nom Max Max
Nom
Min
Dimension in inch Dimension in mm
A
b
c
D
e
HD
HE
L
Y
0
A
A
L1
1
2
E
0.008
0.006 0.15
0.20
7
0.020 0.35 0.65
0.100.050.002 0.004 0.006 0.15
9.109.00
8.90
0.358
0.354
0.350
7.10
7.00
6.90
0.280
0.276
0.272
0.014
37
36 25
24
13
W83L518D
Publication Release Date: May 17, 2005
- 21 - Revision 1.0
10. THE W83L518D SCHEMATIC
5VCC
SD3
MSPWCTL#
MSLED
SD[5:1]
SD4
LAD2
inbond
WINBOND ELECTRONICS CORP.
SD2
HEFRAS
RP1
8P4R-4.7K
1
3
5
7
2
4
6
8
SC_VCC
Y1
48MHz
R14 10
1 2
C9
0.1U
12
D3
LED
MSCLK
SD3
C6
4.7U
12
5VCC
PME#
LAD1
Power-on strapping for 2E/2F
(Config. Port)
SD_3VCC
SD_3VCC
3VCC
3VCC
SD_3VCC
XOUT
Q5
NPN
SC_VCC R24 330
R22 330
SDPWCTL#
D5
LED
The LC resonance circuit
is used to filter base
frequency of 3rd
overtone crystal.
SCC8
Q4
MOSFET P
SCLED
SCLED
XIN
R13 1M
1 2
SD2
R21
10K
12
SDPWCTL#
PCICLK
MS[5:1]
R15 10
1 2
MS4
C5
10P
R18 33
1 2
SCPSNT
SD4
R17 10
1 2
R25 1K
1 2
Wr_Pt
C4
10P
R16 4.7K
1 2
C7
0.1U
12
R30 1K
R28 10K
SCCLK
R23 33
1 2
SC_VCC
R31 4.7K
1 2
SERIRQ
MS1
R19
4.7K
12
Soft start to
protect
MOSFET(Optional)
W83L518D Recommend Circuit 0.6B
12Wednesday, October 02, 2002
Title
Size Document Number Rev
Date: Sheet of
EX_CD
R35
4.7K
1 2
Without SD LED
function
R32 330
1 2
Q3
MOSFET P
U1
W83L518D_SB (LPC)
11
10
9
6
8
7
5
4
45
3
2
12
40
42
1
48
47
46
44
43
39
41
13
14
15
16
17
18
19
20
22
23
24
21
25
30
26
27
28
29
34
36
31
32
33
35
38
37
GP13
GP14
GP15
VSS
GP16
GP17
PME#
LRESET#
LAD2
LFRAME#
LDRQ#
GP12
VDD3V
SD4
PCICLK
SERIRQ
LAD0
LAD1
LAD3
SD5
SD2
SD3
GP11/EX_CD
GP10/HEFRAS
VDD
SCLED
SCPWCTL#
SCPSNT
SCCLK
SCIO
XOUT
XIN
MS5
SCRST#
MS4
VSS
MS3
MS2
MS1
MSCLK
SCC4
SDPWCTL#
MSPWCTL#
MSLED
SCC8
SDLED
SD1
SDCLK
R34
1K
12
SCC4
XIN
D6
LED
SC_VCC
SD5
3VCC 3VCC
SDCLK
LAD3
5VCC
SCIO
SCRST#
R27
20K
12
SCIO
SD1
EX_CD
SD Socket (1) Circuit.
J2
SD_SOCKET
1
2
3
4
5
6
7
8
9
11 10
SD1
SD2
Vss1
Vdd
SDCLK
Vss2
SD3
SD4
SD5
Wr_Pt EX_CD#
SDLED
SC_VCC
5VCC
SDLED
3VCC
SCPSNT
SCPWCTL#
L1
2.2UH
12
SCCLK
SC
read/write LED
Soft start to
protect
MOSFET(Optional)
3VCC
SCC8
R26
4.7K
SDCLK
SD5
LAD0 HEFRAS
+
C8
1U
SC Socket (1) Circuit.
J3
SC_SOCKET
1
2
3
4
5
6
7
8
9 10
C1
C2
C3
C4
C5
C6
C7
C8
S1 S2
R29
1M
SD_3VCC
MS5
+
C10
1U
R20 330
1 2
MS3
U2
48MHZ
7 8
14
GND OUT
VCC
Q6
NPN
LFRAME#
PCIRST#
LAD[3:0]
SCRST#
D4
LED
SDLED
MS2
XOUT
SCPWCTL#
R12 10
1 2
SD1
SCC4
S1
SW SPDT
21
3
TheW83L518Dschematic
W83L518D
- 22 -
Extension Connectors
(R_JP1)
(Ver 0.5 --> Ver 0.6)
SCLED
(2)Modified pulled-high resistor for write_protect detection from 500 ohm to 4.7K ohm.
JP1,2: 1X10;pitch(2.0mm)
(1)Modified Note 3 .
SDCLK
MSPWCTL#
MS1
R_JP1,2: 1x10 ; 2.0 mm(pitch)
SD5
3VCC
MSCLK
SCPSNT
Note 2:
SD1
MS3
SD1
Note 3:
SCRST#
(3)Added configuration port selection pin(GP10/HEFRAS) by power-on strapping.
SDLED
SCPWCTL#
3VCC
MS2
R8
1M
12
PIN 6
10
R9
1M
12
JP3: 2X5 ;pitch(2.54mm)
SCRST#
R10
1M
12
(1)Added circuit(GP10/EX-CD)to implement to sockets with external card detection pin.
MS5
R1 330
1 2
MS_3VCC
R6 1K
1 2
Q1
MOSFET P
5VCC
inbond
WINBOND ELECTRONICS CORP.
SCC4
JP1
1
2
3
4
5
6
7
8
9
10
(R_J1)
SD5
If JP1,2,3,4 are designed for Winbond recommended reader please meet following
connector spec.
(Ver 0.2 --> Ver 0.3)
D1
LED
MSCLK
R4 330
5
SD1
MS4
(R_JP2)
Note 5:
MSCLK
R3
4.7K
The RESET# should be connected with a low asserted signal like PCIRST#
on PCI bus or LREST#on LPC bus(active low)
(Ver 0.1 --> Ver 0.2)
MS read/write LED
If any of SC or MS/SD function isn't intened to use, signals like
SCPSNT/SD1/MS1 should be tied to a pull-down resistor and SD4/MS4
should be tied to a pull-high resistors. (recommended: 1M Ohm )
R7
1M
12
JP3
HEADER 5X2
16
27
38
49
510
Winbond Recommended Reader Board
SD4
SCPWCTL#
MS5
SD4
SCIO
3VCC
MSPWCTL#
SCC8
Note 1:
MS2
SCCLK
SD3
(1)Added power-on strapping circuit of different configuration port.(2E/2F)
SDPWCTL#
R_J1 : 2x5 ; 2.54 mm(pitch)
3VCC
MSLED
MS1
MS1
Note 4:
(2)Modified pull-down resistor tied to SD1 from 200K ohm to 1M ohm.
SCPSNT
MS4
MS4
The trade marks and intellectual property rights of Memory Stick belong to SONY
Corporation.Information check: http://www.memorystick.org
Memory Stick Socket (1) Circuit.
(2)DMA transaction cannot be supported in this version.
PIN 1
There is either function of SD and MS can be used on versio A but two
sockets interface can be implemented on version B.
SCCLK
SDLED
SCPSNT
R2 33
1 2
(1)Modified some erroneous netname like SCPWR#,MSPWR# and SDPWR#.
Note 6:
W83L518D Recommend Circuit 0.6B
22Wednesday, October 02, 2002
Title
Size Document Number Rev
Date: Sheet of
R11
1M
12
D2
LED
2
JP2
1
2
3
4
5
6
7
8
9
10
(Ver 0.3 --> Ver 0.4)
For the recommended reader, please contact to Taiwan Zetatronic Industrial
CO.,LTD(http://www.tzt.com.tw)
SCIO
MSPWCTL#
SD2
MS_3VCC
SD2
SD3
R5
200K
12
<<Connector Side>>
MS4 MS5
C1
0.1U
12
SCLED
(Ver 0.4 --> Ver 0.5)
MSLED
MS1
MS3
PIN
10
SCC4 SCC8
Q2
NPN
SDCLK
J1
MS_SOCKET
1
2
3
4
5
6
7
8
9
10
Soft start to
protect
MOSFET(Optional)
PIN
10
MS_3VCC
3VCC
3VCC
(1)Modified SD2,3,4,5 pull up to SD_3VCC.
PIN 1
MSLED
Note 7:
+
C2
1U
MS3
SDPWCTL#
C3
0.1U
(OPTION:reserved
for power-down)
SD4
PIN 1
There are some difference as following from previous version:
MS2
(2)Add without SD LED recommend circuit.
W83L518D
Publication Release Date: May 17, 2005
- 23 - Revision 1.0
11. REVISION HISTORY
VERSION DATE PAGE DESCRIPTION
1.0 02/Jul. 1st Release
1.1 02/Sep. Recommend circuit modification.
1.11 02/Oct. Recommend circuit modification.
1.12 03/Nov. The Functions modification. (Page 2)
A1 May 17, 2005 23 ADD Important Notice
Important Notice
Winbond products are not designed, intended, authorized or w arranted for use as components
in systems or equipment intended for surgical implantation, atomic energy control
instruments, airplane or spaceship instruments, transportation instruments, traffic signal
instruments, combustion control instruments, or for other applications intended to support or
sustain life. Further more, Winbond products are not intended for applications w herein failure
of Winbond products could result or lead to a situation wherein personal injury, death or
severe property or environmental damage could occur.
Winbond customers using or selling these products for use in such applications do so at their
ow n risk and agree to fully indemnify Winbond for any damages resulting from such improper
use or sales.