W inbond I ntegrated Media Reader W 83L518D D atasheet
-i-
Publication Release Date: May 17, 2005 Revision 1.0
W83L518D
Table of Contents1. 2. GENERAL DESCRIPTION ......................................................................................................... 1 FUNCTIONS ............................................................................................................................... 1 2.1 2.2 2.3 2.4 2.5 3. 4. General............................................................................................................................. 1 Smart Card Interface ........................................................................................................ 1 Memory Stick Interface..................................................................................................... 2 SD Memory Card Interface .............................................................................................. 2 Package ........................................................................................................................... 2
PIN CONFIGURATION FOR W83L518D ................................................................................... 3 PIN DESCRIPTION..................................................................................................................... 4 4.1 4.2 4.3 4.4 4.5 Bus Interface .................................................................................................................... 4 Smart Card Interface Pins ................................................................................................ 5 Memory Stick Interface/SD Memory Interface Pins ......................................................... 6 General-Purpose I/O Pins ................................................................................................ 7 Crystal and Power Pins .................................................................................................... 7
5. 6.
GENERAL-PURPOSE I/O PORTS (GPIO) ................................................................................ 8 CONFIGURATION REGISTER .................................................................................................. 9 6.1 6.2 Plug and Play Configuration............................................................................................. 9 Compatible PnP ............................................................................................................. 10
6.2.1 6.2.2 6.2.3 Extended Function Register ........................................................................................... 10 Extended Functions Enable Register (EFER)................................................................. 10 Extended Function Index Register (EFIR), Extended Function Data Register (EFDR)... 11 Software programming example ..................................................................................... 11
6.3 6.4 6.5 6.6 6.7 6.8 7. 8. 9. 10. 11.
Configuration Sequence................................................................................................. 11
6.3.1
Global Registers............................................................................................................. 12 Logical Device 0 (Smart Card Interface) ........................................................................ 14 Logical Device 1 (Memory Stick Interface) .................................................................... 15 Logical Device 2 (GPIO) ................................................................................................ 16 Logical Device 3 (SD Memory Interface) ....................................................................... 17
ORDERING INSTRUCTION ..................................................................................................... 18 HOW TO READ THE TOP MARKING...................................................................................... 19 PACKAGE DRAWING AND DIMENSIONS.............................................................................. 20 THE W83L518D SCHEMATIC.................................................................................................. 21 REVISION HISTORY ................................................................................................................ 23
- ii -
W83L518D
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 Publication Release Date: May 17, 2005 Revision 1.0
• •
• •
-1-
W83L518D
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
-2-
W83L518D
3. PIN CONFIGURATION FOR W83L518D
SDPWR#/GP21
SDLED/GP20
MSPWR#
MSCLK
MSLED
SCC4
SCC8
MS1
MS2
MS3 26
36
35
34
33
32
31
30
29
28
27
S D C L K /G P 2 2 S D 1 /G P 2 3 S D 2 /G P 2 4 VD D 3V S D 3 /G P 2 5 S D 4 /G P 2 6 S D 5 /G P 2 7 LAD3 LAD2 LAD1 LAD0 S E R IR Q
37 38 39 40 41 42 43 44 45 46 47 48 1
25
MS4
VSS
W 83L518D
24 23 22 21 20 19 18 17 16 15 14 13 12
MS5 X IN XOUT SCRST# S C IO SC C LK SCPSNT SCPW R# SCLED VDD G P10 G P11
10 GP14
PCICLK
LDRQ#
LFRAME#
RESET#
PME#
VSS
GP17
GP16
GP15
GP13
11
2
3
4
5
6
7
8
9
-3-
Publication Release Date: May 11, 2005 Revision 1.0
GP12
W83L518D
4. PIN DESCRIPTION
Note: INt INtp3 INts - 5V TTL level input pin - 3.3V TTL level input pin - 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 O2 O12 - 3.3V TTL level bi-directional pin with 16 mA drive-sink capability - 5V output pin with 2 mA drive-sink capability - 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
PIN I/O FUNCTION
SYMBOL
PME# RESET# LFRAME# LDRQ# PCICLK SERIRQ LAD0
5 4 3 2 1 48 47
OD12p3 INtsp3 INtsp3 O16p3 Intsp3 I/O16tp3 I/O16tp3
Active-low PME event. Active-low system reset signal. Active-low signal indicates start of a new LPC frame or termination of a premature frame. Encoded DMA Request signal. PCI clock input of 33 MHz. Serial IRQ input/output. This signal combining with other LADx signals communicate address, control, and data information over the LPC bus between a host and a peripheral. This signal combining with other LADx signals communicate address, control, and data information over the LPC bus between a host and a peripheral. This signal combining with other LADx signals communicate address, control, and data information over the LPC bus between a host and a peripheral. This signal combining with other LADx signals communicate address, control, and data information over the LPC bus between a host and peripherals.
LAD1
46
I/O16tp3
LAD2
45
I/O16tp3
LAD3
44
I/O16tp3
-4-
W83L518D
4.2 Smart Card Interface Pins
PIN I/O FUNCTION
SYMBOL
SCC4 SCC8
34 33
I/O16tp3 I/O16tp3
Smart Card interface general purpose I/O channel for connector pin C4 on a card. Smart Card interface general purpose I/O channel for connector pin C8 on a card. This pin outputs an oscillating clock signal of various frequencies depending on traffic of primary Smart Card interface. Smart Card interface power control signal. Smart Card interface card present detection Schmitt-trigger input. Smart Card interface clock output. Smart Card interface data I/O channel. Smart Card interface reset output.
SCLED SCPWR# SCPSNT SCCLK SCIO SCRST#
16 17 18 19 20 21
O24 O24 INts O2 I/O12t O12
-5-
Publication Release Date: May 11, 2005 Revision 1.0
W83L518D
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. Memory Stick function - This pin is power control signal for the Memory Stick interface. Memory Stick function - This pin is SCLK for the Memory Stick interface. Memory Stick interface pin. Memory Stick interface pin. Memory Stick interface pin. Memory Stick interface pin. Memory Stick interface pin. SD interface pin. SD interface pin. SD interface pin. SD interface pin. SD interface pin. SD function - This pin is CLK for the SD memory card interface. SD function - This pin is power control signal for the SD memory card interface. SD function - This pin outputs an oscillating clock signal of various frequencies depending on traffic of the SD memory card interface. Function as an alternative card detection input for the SD memory interface.
MSPWR# MSCLK MS1 MS2 MS3 MS4 MS5 SD5 SD interface pin. SD interface pin. SD interface pin. SD interface pin. SDCLK SDPWR#
31 29 28 27 26 25 24 43 42 41 39 38 37 36
O16p3 O16p3 O16p3 I/O16tp3 --INtsp3 --I/O16tp3 I/O16tp3 I/O16tp3 I/O16tp3 I/O16tp3 O16p3 O16p3
SDLED
35
O16p3
CARD_DETECT
13
IN t
-6-
W83L518D
4.4 General-Purpose I/O Pins
PIN I/O FUNCTION
SYMBOL
GP17 GP16 GP15 GP14 GP13 GP12 GP11 EX_CD
7 8 9 10 11 12 13
I/O12t I/O12t I/O12t I/O12t I/O12t I/O12t I/O12t
General-purpose I/O port 17. General-purpose I/O port 16. General-purpose I/O port 15. General-purpose I/O port 14. General-purpose I/O port 13. General-purpose I/O port 12. 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. 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).
GP10 PHEFRAS
14
I/O12t Int
4.5
Crystal and Power Pins
PIN FUNCTION
SYMBOL
XOUT, XIN VDD3V VDD VSS
22, 23 40 15 6, 30
Connected to a 48 MHz crystal and function as the working clock for all the media reader interfaces. +3.3V power supply for host interface, Memory Stick/SD Memory interfaces, and internal core. +5V power supply for Smart Card interface I/O pins. Ground.
-7-
Publication Release Date: May 11, 2005 Revision 1.0
W83L518D
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 respective 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 1 1
0 1 0 1
Basic non-inverting output Basic inverting output Basic non-inverting input Basic inverting input
-8-
W83L518D
Table 5.2
GPIO PORT DATA REGISTER
REGISTER BIT ASSIGNMENT
GP I/O PORT
BIT 0 BIT 1 BIT 2 GP1 BIT 3 BIT 4 BIT 5 BIT 6 BIT 7 BIT 0 BIT 1 BIT 2 GP2 BIT 3 BIT 4 BIT 5 BIT 6 BIT 7
GP10 GP11 GP12 GP13 GP14 GP15 GP16 GP17 GP20 GP21 GP22 GP23 GP24 GP25 GP26 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.
-9-
Publication Release Date: May 11, 2005 Revision 1.0
W83L518D
07h logical device select 30h logical device control 3Fh 40h logical device configuration
global registers
One set per logical device
FEh
6.2
6.2.1
Compatible PnP
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 1
write 83h to I/O address 2Eh twice 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).
- 10 -
W83L518D
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 MOV OUT OUT DX, 2Eh AL, 83h DX, AL DX, AL | ;-----------------------------------------------------------------------------------
;----------------------------------------------------------------------------; Configure logical device 1, configuration register CRF0 | ;----------------------------------------------------------------------------MOV MOV OUT MOV MOV OUT DX, 2Eh AL, 07h DX, AL DX, 2Fh AL, 01h DX, AL ; select logical device 1 ; point to Logical Device Number Reg.
- 11 -
Publication Release Date: May 11, 2005 Revision 1.0
W83L518D
; MOV DX, 2Eh MOV OUT MOV MOV OUT AL, F0H DX, AL DX, 2Fh AL, 3Ch DX, AL ; update CRF0 with value 3CH | ; select CRF0
;-----------------------------------------; Exit extended function mode ;-----------------------------------------MOV MOV OUT DX, 2Eh AL, AAh DX, AL
6.4
Global Registers
Bit [7:1]: Reserved. Bit 0: SWRST =0 =1 Normal operation. Software reset.
CR02 (Default 00h, write only)
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.
- 12 -
W83L518D
Bit 6: MSPWD =0 =1 Bit 5: SDPWD =0 =1 CR23 (Default 00h) Bit 7: PME_EN. Power management event enable bit. =0 =1 PME_L function is disabled. Enable to issue a low pulse on PME_L when a power management event occurs. Memory Stick interface power management event is disabled. Enable Memory Stick interface power management event to issue a low pulse on PME_L when PME_EN is also enabled. SD memory card interface power management event is disabled. Enable SD memory card interface power management event to issue a low pulse on PME_L when PME_EN is also enabled. Smart Card interface power management event is disabled. Enable Smart Card interface power management event to issue a low pulse on PME_L when PME_EN is also enabled. Power down SD memory card interface. No Power down. Power down Memory Stick interface. No Power down.
Bit [4:0]: Reserved.
Bit 6: MSPME_EN. Memory Stick interface power management event enable bit. =0 =1
Bit 5: SDPME_EN. SD memory card interface power management event enable bit. =0 =1
Bit 4: SCPME_EN. Smart Card interface power management event enable bit. =0 =1
Bit [3:0]: Reserved. CR24 (Default 00h) Bit 7: Reserved. Bit 6: MSPME_STS. Memory Stick interface power management event status bit. =0 =1 =0 =1 =0 =1 No Memory Stick interface power management event occurs. Memory Stick interface power management event occurs. No SD memory card interface power management event occurs. SD memory card interface power management event occurs. No Smart Card interface power management event occurs. No Smart Card interface power management event occurs.
Bit 5: SDPME_STS. SD memory card interface power management event status bit.
Bit 4: SCPME_STS. Smart Card interface power management event status bit.
Bit [3:0]: Reserved. Publication Release Date: May 11, 2005 Revision 1.0
- 13 -
W83L518D
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 =1 =0 =1 Extended Function Registers are at 2Eh/2Fh. Extended Function Registers are at 4Eh/4Fh. Enable accesses of Configuration Registers. Disable accesses of Configuration Registers.
Bit 5: LOCKREG
Bit [4:0]: Reserved CR29 (Default 00h, only valid in W83L518D) Bit 7: Multi-function selection bit for pin 7 ~ 14 =0 =1 =0 =1 =0 =1 =0 =1 Pin 7 ~ 14 function as Smart Card interface socket B. Pin 7 ~ 14 function as GPIO1. Pin 35 ~ 43 function as MSI/SDI socket B. Pin 35 ~ 43 function as GPIO2. Pin 32 ~ 31 and pin 29 ~ 24 function as MSA (MS interface card A). Pin 32 ~ 31 and pin 29 ~ 24 function as SDA (SD interface card A). Pin 43 ~ 41 & pin 39 ~ 35 function as MSB (MS interface card B). Pin 43 ~ 41 & pin 39 ~ 35 function as SDB (MS interface card B).
Bit 6: Multi-function selection bit for pin 35 ~ 43
Bit 5: Multi-function selection bit for pin 32 ~ 31 & pin 29 ~ 24.
Bit 4: Multi-function selection bit for pin 43 ~ 41 & pin 39 ~ 35.
Bit [3:0]: Reserved.
6.5
Logical Device 0 (Smart Card Interface)
Bit [7:1]: Reserved. Bit 0: Logical device active bit. =0 =1 Logical device is inactive. Activates the logical device.
CR30 (Default 0x00)
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. - 14 -
W83L518D
CRF0 (Default 0x00) Bit 7: IRQ sharing control bit. =0 =1 =0 =1 No IRQ sharing. IRQ sharing. SCPSNT is active high. SCPSNT is active low.
Bit 0: SCPSNT_POL (Smart Card PreSeNT POLarity). SCPSNT polarity bit.
6.6
Logical Device 1 (Memory Stick Interface)
Bit [7:1]: Reserved. Bit 0: Logical device active bit. = 0: Logical device is inactive. = 1: Activates the logical device.
CR30 (Default 0x00)
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.
- 15 -
Publication Release Date: May 11, 2005 Revision 1.0
W83L518D
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)
Bit [7:3]: Reserved. Bit 2: Individual disable/enable bit for GPIO2. =0 =1 =0 =1 =0 =1 GPIO2 is disabled if bit 0 is also "0". GPIO2 is enabled. GPIO1 is disabled if bit 0 is also "0". GPIO1 is enabled. GPIO1 and GPIO2 are disabled/enabled dependent on bit 1 and 2 respectively. Activates GPIO1 and GPIO2.
CR30 (Default 00h)
Bit 1: Individual disable/enable bit for GPIO1.
Bit 0: Logical device disable/enable bit.
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.
- 16 -
W83L518D
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)
Bit [7:1]: Reserved. Bit 0: Logical device active bit. =0 =1 Logical device is inactive. Activates the logical device.
CR30 (Default 0x00)
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 =1 =0 =1 Bit 3: Reserved. Bit 2: Select the pole of the GP11 card-detect pin. =0 =1 When detecting the low signal indicate the card is inserted and high signal indicate the card is extracted. When detecting the high signal incicate the card is inserted and low signal indicate the card is extracted. The DATA3 pin will output low. The DATA3 pin will output high. Set the DATA3 pin to bi-direction pin. Set the DATA3 pin to output pin.
Bit 4: Set the DATA3 (MS1 or MSB1) pin to output pin.
- 17 -
Publication Release Date: May 11, 2005 Revision 1.0
W83L518D
Bit 1: Select GP11 pin to detect card. =0 =1 =0 =1 CRF1 (Default 0x01) Bit [7:4]: Reserved. Bit 3: Set the IRQ pole for level mode. =0 =1 =0 =1 =0 =1 =0 =1 The IRQ is active high. The IRQ is active low. The IRQ is active low. The IRQ is active high. The IRQ is level mode. The IRQ is pulse mode. No debouunce. Use debounce function. Don’t use the GP11 pin to detect card. Use the GP11 (SCBPWR_L) pin to detect card. Don’t use the DATA3 (MS1 or MSB1) to detect card. Use the DATA3 (MS1 or MSB1) pin to detect card.
Bit 0: Select DATA3 pin to detect card.
Bit 2: Set the IRQ pole for pulse mode.
Bit 1: Set the IRQ to level mode or pulse mode.
Bit 0: Use debounce function for card-detect circuit.
7. ORDERING INSTRUCTION
PART NO. PACKAGE REMARKS
W83L518D
48-pin LQFP
- 18 -
W83L518D
8. HOW TO READ THE TOP MARKING
SMART@IO
W83L518D 201GBSB
1st line: Winbond logo and the SMART@IO Trademark 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
- 19 -
Publication Release Date: May 11, 2005 Revision 1.0
W83L518D
9. PACKAGE DRAWING AND DIMENSIONS
Package- 48-pin LQFP
HD
D A A2
36
25 24
A1
37
HE E
48
13
1
e
b
12
c
SEATING PLANE Y
L1 Controlling dimension : Millimeters L
θ
Symbol
Dimension in inch
Dimension in mm
Min
0.002 0.053 0.006 0.004 0.272 0.272 0.014 0.350 0.350 0.018
Nom
0.004 0.055 0.008 0.006 0.276 0.276 0.020 0.354 0.354 0.024 0.039
Max
0.006 0.057 0.010 0.008 0.280 0.280 0.026 0.358 0.358 0.030
Min
0.05 1.35 0.15 0.10 6.90 6.90 0.35 8.90 8.90 0.45
Nom
0.10 1.40 0.20 0.15 7.00 7.00 0.50 9.00 9.00 0.60 1.00
Max
0.15 1.45 0.25 0.20 7.10 7.10 0.65 9.10 9.10 0.75
A A1 A2 b c D E e HD HE L L1 Y 0
0.004 0 7 0
0.10 7
- 20 -
W83L518D
10. THE W83L518D SCHEMATIC
XOUT R12 10 1 SCC8 SCC4 1 R14 10 SDCLK 1 2 3VCC 36 35 34 33 32 31 30 29 28 27 26 25 2 MSCLK Y1 48MHz R13 1M 2 1
L1 2.2UH
The LC resonance circuit is used to filter base frequency of 3rd overtone crystal.
SDPWCTL# SDLED SCC4 SCC8 MSLED MSPWCTL# VSS MSCLK MS1 MS2 MS3 MS4
MSLED MSPWCTL# MS1 MS2 MS3 MS4 MS5 XIN XOUT XIN 2
S1 1 3 SW SPDT 3VCC
12 C6 4.7U 2 SD_3VCC 3VCC 2 4 6 8 1 RP1 8P4R-4.7K R19 4.7K 1 D3 2 LED J2 2 EX_CD# 10 EX_CD Rev 0.6 Sheet 1 of 2 11 SD_3VCC R20 330 2 3VCC 1 R21 10K 1 3 5 7
C4 10P
C5 10P
SDLED SDPWCTL# SD1 SD2 SD3 SD4 SD5 LAD3 LAD2 LAD1 LAD0 SERIRQ LFRAME# PCIRST# PCICLK LDRQ# LFRAME# LRESET# PME# VSS GP17 GP16 GP15 GP14 GP13 GP12 37 38 39 40 41 42 43 44 45 46 47 48 SDCLK SD1 SD2 VDD3V SD3 SD4 SD5 LAD3 LAD2 LAD1 LAD0 SERIRQ MS5 XIN XOUT SCRST# SCIO SCCLK SCPSNT SCPWCTL# SCLED VDD GP10/HEFRAS GP11/EX_CD 24 23 22 21 20 19 18 17 16 15 14 13
MS[5:1] SCRST# SCIO SCPSNT SCPWCTL# SCLED 14 VCC 3VCC 2 MOSFET P Q3 SD_3VCC C7 0.1U 2 + C8 1U D5 330 LED SD4 SD3 SDCLK SD2 SD1 SD5 Q6 NPN R29 1M SCIO SCC8 R30 SDLED 1K U2 48MHZ
W83L518D_SB (LPC)
LAD[3:0]
1
2
SCCLK
5VCC R16 4.7K 2
1 2 3 4 5 6 7 8 9 10 11 12
HEFRAS
1
Power-on strapping for 2E/2F (Config. Port)
PME# PCICLK 1
R17 10 2
SD Socket (1) Circuit.
R18 33 1 SDPWCTL# 1
SC Socket (1) Circuit.
5VCC MOSFET P Q4 1 SC_VCC C9 0.1U R26 4.7K SCRST# SCCLK SCC4 + C10 J3 1U 1 2 3 4 9 R31 1 4.7K 2 C1 C2 C3 C4 S1 C5 C6 C7 C8 S2 5 6 7 8 10 5VCC SC_VCC SC_SOCKET 1 D6 LED SDLED 1 4.7K 2 R32 330 2 2 SC_VCC SCLED 1 SC_VCC R22 330 LED R25 1K 2 Q5 NPN D4
R23 33 SCPWCTL# 1 2
SC read/write LED
SC_VCC 1
Soft start to protect MOSFET(Optional)
SD_3VCC R24
7
GND
HEFRAS EX_CD
R15 10
OUT
SD[5:1]
U1
5VCC
8
Wr_Pt SD4 SD3 Vss2 SDCLK Vdd Vss1 SD2 SD1 SD5
R27 20K R28 10K
8 7 6 5 4 3 2 1 9
Soft start to protect MOSFET(Optional)
SCPSNT
SD_SOCKET
Without SD LED function
R35 2
3VCC 1 R34 1K
inbond
Title
Wr_Pt
Size B Date: 2
WINBOND ELECTRONICS CORP. Document Number W83L518D Recommend Circuit Wednesday, October 02, 2002
TheW83L518Dschematic
- 21 -
Publication Release Date: May 17, 2005 Revision 1.0
W83L518D
MS_3VCC
Memory Stick Socket (1) Circuit.
R2 33 MSPWCTL# 1 2 1 Q1 C1 0.1U 2 MOSFET P R3 + C2 4.7K 3VCC MS_3VCC 3VCC 1
R1 330 2 D1 LED J1 1 2 3 4 5 6 7 8 9 10 MS_SOCKET
Winbond Recommended Reader Board
R_JP1,2: 1x10 ; 2.0 mm(pitch) R_J1 : 2x5 ; 2.54 mm(pitch)
Soft start to protect MOSFET(Optional)
1U MS1 MS2 MS3 MS4 MS5 MSCLK D2 1
PIN 1
(R_JP2)
PIN 10
PIN 1
(R_JP1)
PIN 10
MS_3VCC R4
330 LED R6 1K
(OPTION:reserved for power-down)
Q2 NPN 2
R5 C3 200K 0.1U
MSLED
1
2
10 PIN 6 PIN 1 2 (R_J1) 5
MS read/write LED
Note 1:The RESET# should be connected Extension Connectors
3VCC JP1 SD1 SD2 SD3 SD4 SD5 SDCLK SDPWCTL# SDLED SD1 SD2 SD3 SD4 SD5 SDCLK SDPWCTL# SDLED 1 2 3 4 5 6 7 8 9 10 3VCC 1 R7 1M SD4 2 2 1 SD1 R8 1M
Note 2:There is either Note
with a low asserted signal like PCIRST# on PCI bus or LREST#on LPC bus(active low) function of SD and MS can be used on versio A but two sockets interface can be implemented on version B. 3: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 )
trade marks and intellectual property rights of Memory Stick belong to SONY Corporation.Information check: http://www.memorystick.org JP1,2,3,4 are designed for Winbond recommended reader please meet following connector spec.
Note 4:The Note 5:If
3VCC 1 R9 1M 1 MS1 R10 1M
JP1,2: 1X10;pitch(2.0mm) JP3: 2X5 ;pitch(2.54mm)
Note 6:For Note
3VCC MS1 MS2 MS3 MS4 MS5 MSCLK MSPWCTL# MSLED MS1 MS2 MS3 MS4 MS5 MSCLK MSPWCTL# MSLED
JP2 1 2 3 4 5 6 7 8 9 10
MS4 2 2
1
SCPSNT R11 1M
5VCC JP3 SCPWCTL# SCC4 SCIO SCCLK SCPWCTL# SCC4 SCIO SCCLK 1 2 3 4 5 6 7 8 9 10 SCRST# SCLED SCC8 SCPSNT SCRST# SCLED SCC8 SCPSNT 2
the recommended reader, please contact to Taiwan Zetatronic Industrial CO.,LTD(http://www.tzt.com.tw) difference as following from previous version: 7:There are some 0.2) (Ver 0.1 --> Ver (1)Added circuit(GP10/EX-CD)to implement to sockets with external card detection pin. (2)Modified pulled-high resistor for write_protect detection from 500 ohm to 4.7K ohm. (3)Added configuration port selection pin(GP10/HEFRAS) by power-on strapping. (Ver 0.2 --> Ver 0.3) (1)Added power-on strapping circuit of different configuration port.(2E/2F) (2)Modified pull-down resistor tied to SD1 from 200K ohm to 1M ohm. (Ver 0.3 --> Ver 0.4) (1)Modified some erroneous netname like SCPWR#,MSPWR# and SDPWR#. (2)DMA transaction cannot be supported in this version. (Ver 0.4 --> Ver 0.5) (1)Modified SD2,3,4,5 pull up to SD_3VCC. (2)Add without SD LED recommend circuit. (Ver 0.5 --> Ver 0.6) (1)Modified Note 3 .
inbond
WINBOND ELECTRONICS CORP. Title Size B Date: Document Number W83L518D Recommend Circuit Wednesday, October 02, 2002 Sheet 2 of 2 Rev 0.6
HEADER 5X2
- 22 -
W83L518D
11. REVISION HISTORY
VERSION DATE PAGE DESCRIPTION
1.0 1.1 1.11 1.12 A1
02/Jul. 02/Sep. 02/Oct. 03/Nov. May 17, 2005 23
1 Release Recommend circuit modification. Recommend circuit modification. The Functions modification. (Page 2) ADD Important Notice
st
Important Notice
Winbond products are not designed, intended, authorized or warranted 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 wherein 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 own risk and agree to fully indemnify Winbond for any damages resulting from such improper use or sales.
- 23 -
Publication Release Date: May 17, 2005 Revision 1.0