TC6387XB Specification Rev. 1.0 02/02/06 SD Memory Card / SDIO Card Controller TC6387XB Outline Rev. 1.0 2002-02-06 TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.1 TC6387XB Specification Rev. 1.0 02/02/06 Revision History TITLE: TC6387XB Specifications REV NO. 0.90a DATE CONTENTS REVISED by S. Ueta APP’D by T. Takada 2001-08-17 Released 1st edition 0.90b 2001-11-12 *Modified SD Control Register Map again(page 16). *Regarding [4.7 SDLED signal], added the comments in detail(page 21). *Regarding [4.7 Clock supply to SD Card], added the comments in detail(page 21-22). *Added DC and AC specifications(page 26-40). S. Ueta T. Takada 0.90c 2001-11-21 *Regarding [4.1.2 Compact Flash (CF) Interface], defined that #STSCHG of CF interface is not connected to TC6380AF signal(page 13). *Added [Appendix](page42-46). S. Ueta T. Takada 0.90d 2001-11-27 Corrected the written(page14, red letters). S. Ueta T. Takada 0.90e 2001-12-05 Added each signal states in suspend mode(#SUSPEND=Low)(page24). S. Ueta T. Takada 0.90f 2001-12-20 Added an interrupt specification in detail(Page19-37). S. Ueta T. Takada 0.90g 2001-12-25 Regarding AC Characteristic, modified written max time to min time. Regarding Attribute Memory Interface AC Characteristic, added a specification of thoh8 (page 57). Regarding SD Card Interface AC Characteristic, modified a specification of Fpp (16MHzÆ25MHz) (Page 59). S. Ueta T. Takada 1.0 2002-02-06 Deleted the function of CompactFlash Interface. Then, defined again HISEL signal as RSV2 signal. Deleted the function of SDICK. Then, defined again SDICK signal as RSV0 signal and CKSEL signal as RSV1 signal. Modified [4.5 Interruption]. Modified the recommended external resistances of #SDCD and SDWP signals. Added [6. Caution in coding device driver]. Added [B Reference diagram]. S. Ueta T. Takada TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.2 TC6387XB Specification Rev. 1.0 02/02/06 Contents 1 Overview ____________________________________________________________________________________ 5 1.1 Chip Specifications_________________________________________________________________________ 5 1.2 Overview Specifications_____________________________________________________________________ 5 2 Block Diagram ______________________________________________________________________________ 6 3 Signals ____________________________________________________________________________________ 7 4 3.1 Pin Assignments________________________________________________________________________ 7 3.2 Pin Signals ______________________________________________________________________________ 8 3.3 Power Supply/GND (10 pins) ______________________________________________________________ 11 3.4 Summary: Interface Pins __________________________________________________________________ 11 Functionality Descriptions ____________________________________________________________________ 12 4.1 Host Interface __________________________________________________________________________ 12 4.2 Resource Area __________________________________________________________________________ 12 4.3 Register Map ___________________________________________________________________________ 14 4.3.1 SD Host Controller Configuration Register ________________________________________________ 14 4.3.2 SD Control Register __________________________________________________________________ 15 4.4 Clock/Reset ____________________________________________________________________________ 16 4.4.1 Clock _____________________________________________________________________________ 16 4.4.2 Reset-related items ____________________________________________________________________ 16 4.5 Interruption ____________________________________________________________________________ 4.5.1 SD card insertion interrupt by #SDCD _____________________________________________________ 4.5.2 SD card removal interrupt by #SDCD______________________________________________________ 4.5.3 Buffer write enable interrupt _____________________________________________________________ 4.5.4 Buffer read enable interrupt______________________________________________________________ 4.5.5 Response end interrupt _________________________________________________________________ 4.5.6 R/W end interrupt _____________________________________________________________________ 4.5.7 Illegal access error interrupt _____________________________________________________________ 4.5.8 Buffer underflow error interrupt __________________________________________________________ 4.5.9 Buffer overflow error interrupt ___________________________________________________________ 4.5.10 Time out error(command) interrupt_______________________________________________________ 4.5.11 Read data time out error interrupt ________________________________________________________ 4.5.12 Busy time out error interrupt ____________________________________________________________ 4.5.13 CRC status busy time out error interrupt___________________________________________________ 4.5.14 CRC status time out error interrupt _______________________________________________________ 4.5.15 End bit error interrupt _________________________________________________________________ 4.5.16 CRC error interrupt ___________________________________________________________________ 4.5.17 Command Index error interrupt__________________________________________________________ 4.5.18 Illegal function select interrupt __________________________________________________________ 4.5.19 SDIO Card interrupt __________________________________________________________________ 17 17 17 18 19 20 21 22 23 24 25 26 28 29 31 33 34 35 36 37 4.6 Card Slot Power Supply Control ____________________________________________________________ 38 4.6.1 SD Card Slot Power Supply Controller ___________________________________________________ 38 4.7 SDLED signal __________________________________________________________________________ 39 4.8 Clock supply to SD Card __________________________________________________________________ 39 4.9 Suspension_____________________________________________________________________________ 40 TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.3 TC6387XB Specification Rev. 1.0 02/02/06 4.10 Pull-up/down Resistance _________________________________________________________________ 4.10.1 Host Interface ______________________________________________________________________ 4.10.2 SD Card Interface ___________________________________________________________________ 4.10.3 System Interface ____________________________________________________________________ 4.11 5 7 Connection example of SD Card socket _____________________________________________________ 43 Electrical Characteristic ______________________________________________________________________ 44 5.1 6 42 42 42 42 Absolute Maximum Standard ______________________________________________________________ 44 5.2 DC Characteristic _______________________________________________________________________ 5.2.1 Recommended Conditions for proper performances _________________________________________ 5.2.2 Host Interface DC Characteristic ________________________________________________________ 5.2.3 SD Card Interface Pin DC Characteristic __________________________________________________ 5.2.4 SD Card Power Supply Control DC Characteristic __________________________________________ 5.2.5 System Interface Pin DC Characteristic ___________________________________________________ 5.2.6 TEST Pin DC Characteristic____________________________________________________________ 5.2.7 Power Consumption Characteristic ______________________________________________________ 44 44 45 46 46 47 47 48 5.3 AC Characteristic _______________________________________________________________________ 5.3.1 Host Interface Signal AC Characteristic___________________________________________________ 5.3.2 SD Card Interface Signal AC Characteristic _______________________________________________ 5.3.3 System Interface Signal AC Characteristic ________________________________________________ 49 49 53 54 Caution in coding device driver ________________________________________________________________ 55 6.1 Regarding a SD card insertion and removal ___________________________________________________ 55 6.2 Regarding controlling Stop Clock Control Register _____________________________________________ 55 Package outline_____________________________________________________________________________ 56 Appendix ____________________________________________________________________________________ 57 A B TC6387XB function confirmation with standard memory interface ____________________________________ 57 A.1 Sample soft for standard memory interface of TC6387XB _______________________________________ 57 A.2 Wait mode specification __________________________________________________________________ 58 A.3 The wiring image of 16bit internal wait mode _________________________________________________ 59 A.4 The wiring image of 16bit external wait mode _________________________________________________ 60 Reference diagram __________________________________________________________________________ 61 TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.4 TC6387XB Specification Rev. 1.0 02/02/06 1 Overview TC6387XB is a controller LSI for SD Memory Card/SDIO Card that comes in with interfaces for Standard Memory with 16 bits bus. Also, TC6387XB meets SD Memory Card Physical Layer Specification and SD I/O Card Specification. TC6387XB automatically detects card types and power supply just by inserting SD Memory Card or SDIO Card. By using buffer-off function of #SUSPEND signal and gated clock control, power consumption of the system can be kept to a minimum. 1.1 Chip Specifications - 0.35um CMOS Process - 0.8mm ball Pitch 64-pin FBGA Package (Body Size: 7mm×7mm) (Height : Max.1.2mm) 1.2 Overview Specifications - Host Bus Interface Standard Memory Interface 16 bit bus Interface - Interruption Support - Operating Frequency 33MHz - Compatible w/ Power Supply Control LSI MIC2563 - Supports SD Card 1 Slot - Meets SD Memory Card Physical Layer Specification Ver.1.0 Operating Frequency (Max. 25MHz) MultiMedia Card Read/Write Capability Compatible w/ 3.3V Compatible w/ Multi Block Write/Read Not compatible w/ SPI Mode Within 512Byte*2 Double Buffers - Meets SD I/O Card Specification Ver.1.0 Operating Frequency (Max. 25MHz) Compatible w/ 3.3V Compatible w/ Multi Block Write/Read FBGA Package Though Toshiba specified TC6387XB DC supply voltage range(3.0v < Vdd < 3.6v) as recommended commercial operating condition, SDIO card specification has different DC supply voltage range(3.1v < Vdd < 3.5v). Toshiba recommend DC supply voltage range(3.1v < Vdd < 3.5v) in case customer use a SDIO card with TC6387XB as recommended commercial operating condition. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.5 TC6387XB Specification 2 Rev. 1.0 02/02/06 Block Diagram System Bus TC6387XB Interrupt System Interface Control Control SD Memory Card /SDIO Card Power Control Control Register Power Control SD Memory Card / SDIO Card Control Power SD Memory Card / SDIO Card Switch TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.6 TC6387XB Specification 3 3.1 Rev. 1.0 02/02/06 Signals Pin Assignments Top View 1 2 3 4 5 6 7 8 A CLK32 RSV0 TST1 #SUSPEND #HCS HA1 HA5 HA6 B SDPWR VDD TST2 RSV1 HA2 HA3 VDD HA7 C VDD SDCD3 SDCD2 TST0 RSV2 HA4 HA8 HA9 D SDCLK SDCMD SDCD1 VSS VSS HA10 HA11 HD1 E SDCD0 #SDCD SDWP VSS VSS HD0 HD4 HD2 F SDLED HRDY #PCLR HD14 HD12 HD6 HD5 HD3 G #HINT VDD #HOE #HWE HD13 HD10 VDD HD7 H HCLK VSS #HBEH #HBEL HD15 HD11 HD9 HD8 TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.7 TC6387XB Specification 3.2 Rev. 1.0 02/02/06 Pin Signals Host Interface (33-pin) NAME HD15 HD14 HD13 HD12 HD11 HD10 HD9 HD8 HD7 HD6 HD5 HD4 HD3 HD2 HD1 HD0 HA11 HA10 HA9 HA8 HA7 HA6 HA5 HA4 HA3 HA2 HA1 #HCS #HOE #HWE #HBEL #HBEH HRDY *1 Pin H5 F4 G5 F5 H6 G6 H7 H8 G8 F6 F7 E7 F8 E8 D8 E6 D7 D6 C8 C7 B8 A8 A7 C6 B6 B5 A6 A5 G3 G4 H4 H3 F2 IO VCC (V) IO 3.3 I I I I I I I I I I I I I I I I O (OD) *1 FUNCTION/REMARKS System Data 15-0 System Address 11-1 3.3 Chip Selection Output Enabled Write Enabled Byte Enabled L Byte Enabled H Ready Levels cannot be converted. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.8 TC6387XB Specification Rev. 1.0 02/02/06 Pin Signals (cont'd) SD Card Interface (9-pin) NAME Pin SDCD3 SDCD2 SDCD1 SDCD0 SDCMD SDCLK #SDCD C2 C3 D3 E1 D2 D1 E2 SDWP E3 SDLED F1 IO VCC (V) SD Card /Data Bus IO O FUNCTION/REMARKS 3.3 I O SD Card /Command SD Card /Divided HCLK Clock for SD Card(Max.25MHz) SD Card /Detection SD Card /Write Protection Media is write-protected when this Pin indicates "High". SD Card /LED signal * Buffer with pull-up resistance SD Card Power Supply Control (1-pin) NAME Pin IO VCC (V) SDPWR B1 O 3.3 FUNCTION/REMARKS SD Card Power Supply Control. 3.3V Enable Signal TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.9 TC6387XB Specification Rev. 1.0 02/02/06 Pin Signals (cont'd) SYSTEM Interface (5-pin) *1 NAME Pin HCLK H1 CLK32 A1 #HINT #PCLR #SUSPEND G1 F3 A4 IO VCC (V) FUNCTION/REMARKS 3.3 System Clock (max.33MHz) Used for card detection and for interruption detection when HCLK is stopped. Interruption All registers are cleared when this signal is asserted Suspend I O (OD) *1 I Levels cannot be converted. TEST Pin (3-pin) NAME Pin IO VCC (V) TST2 TST1 TST0 B3 A3 C4 I 3.3 NAME Pin IO VCC (V) RSV0 RSV1 RSV2 A2 B4 C5 I 3.3 FUNCTION/REMARKS Test Mode Signal 2,1,0 Utilized for Test Mode Set "000" for TST[2-0] under normal circumstances. Other Pin (3-pin) FUNCTION/REMARKS Link to directly ground. Link to directly ground. Link to directly ground. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.10 TC6387XB Specification 3.3 Power Supply/GND (10 pins) NAME VSS VDD 3.4 Rev. 1.0 02/02/06 Pin H2, D4, E4, D5, E5 C1, B2, G2, B7, G7 FUNCTION/REMARKS GND 3.3V Summary: Interface Pins Interface Host SD Card SD Card Power Supply Control System Total Power Supply GND Grand Total # of Pins 33 9 Remarks 1 11 54 5 5 64 SYSTEM Interface, TEST Pins, Other Pins TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.11 TC6387XB Specification 4 Rev. 1.0 02/02/06 Functionality Descriptions 4.1 Host Interface TC6387XB supports standard memory interfaces and the following suggests examples of circuits for connecting to Standard Memory Interface: 4.2 Standard Memory TC6387XB A11-1 D15-0 -CS -OE -WE -BEH -BEL -RDY HA11-1 HD15-0 #HCS #HOE #HWE #HBEH #HBEL HRDY Resource Area TC6387XB holds the following Resource Area: 1) SD Host Controller Configuration Area 2) SD Control Register Area See below for mapping of SD Host Controller Configuration Area and SD Control Register Area. Further, SD Control Register Area are mapped to any memory resources(800-FFFh) by setting BASE Address Register in SD Host Controller Configuration Area. Offset A11-1 000 - 0FFh 100 - 1FFh 200 - 2FFh 300 - 3FFh 400 - 7FFh 800 - 8FFh 900 - 9FFh A00 – AFFh B00 - BFFh C00 - FFFh FUNCTION/REMARKS Reserved for Configuration Area Reserved for Configuration Area SD Host Controller Configuration Area Reserved for Configuration Area Reserved for Configuration Area SD Control Register (BASE Address Register of SD Host Controller Configuration Register —configurable in Offset10h--) TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.12 TC6387XB Specification Rev. 1.0 02/02/06 - SD Control Register Area As for accessing Resource in SD Control Register Area, use Configuration Register Base Address Reg.(Config.offset: 10h) in SD Host Controller for mapping the settings to access designated Memory Areas (800-FFFh). Host Memory Space SD Host Controller Configuration Registers Offset Base Address + 000 h Offset 10 h Base Address SD Control Register : : Base Address + 1FF h : FFh TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.13 TC6387XB Specification 4.3 Rev. 1.0 02/02/06 Register Map TC6387XB holds internal registers for SD Host Controller. ・SD Host Controller Configuration Register ・SD Control Register 4.3.1 SD Host Controller Configuration Register 31 23 15 07 Reserved 2 Reserved 3 00 Reserved 1 Command Reserved 5 Reserved 6 SD Control Register Base Address Reserved 8 Reserved 4 Reserved 7 Reserved 9 Clock Mode Power Control3 Interrupt Pin Reserved 10 Gated Clock Control Stop Clock Control Pin Status Power Control2 Power Control1 Reserved 11 Card Detect Mode SD Slot Reserved 12 Reserved 13 Reserved 16 Reserved 19 Reserved 15 Reserved 18 Reserved 21 Reserved 24 SDLED Enable 1 Reserved 28 SDLED Enable 2 Reserved 14 Reserved 17 Reserved 20 Extend Gated Clock Control2 Reserved 23 Extend Gated Clock Control3 Reserved 27 Port 00h 04h 08h 0Ch 10h 14h 18h 1Ch 20h-2Bh 2Ch 30h 34h 38h 3Ch 40h 44h 48h 4Ch 50h 54h 58h 5Ch 60h 64h-7Fh 80h 84h 88h 8C-EFh F0h Extend Gated Clock Control1 Reserved 22 Reserved 25 F4h F8h Reserved 26 FCh TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.14 TC6387XB Specification 4.3.2 Rev. 1.0 02/02/06 SD Control Register Base Address: SD Control Register Base Address (Conf.10h) Offset 002h 006h 00Ah 00Eh 012h 016h 01Ah 01Eh 022h 026h 02Ah 02Eh 032h 036h 03Ah 03Eh 0E2h 0E6h 0EAh 0EEh 0F2h 0F6h 0FAh 0FEh 102h 106h 10Ah 10Eh 112h 116h 11Ah 11Eh 122h 126h 12Ah 12Eh 132h 136h 13Ah 13Eh 1E2h 1E6h 1EAh 1EEh 1F2h 1F6h 1FAh 1FEh 15-08 bit 07-00 bit SD Control Reserved 1 Argument1 Transfer Sector Count Response1 Response3 Response5 Response7 SD Buffer Control & Error Status SD Interrupt Mask1 SD Memory Card Transfer Data Length --SD Error Detail Status 1 --------SD Control Reserved 2 SD Control Reserved 3 ------SD Control Reserved 4 SD Control Reserved 6 SD Control Reserved 8 SD Card Port Selection Argument1 Transfer Block Count Response1 Response3 Response5 Response7 SD Buffer Control & Error Status SD Interrupt Mask1 SDIO Card Transfer Data Length --SD Error Detail Status1 --Card Interrupt Control SDIO Host Information SDLED Control SD Control Reserved 9 --------------- Offset 000h 004h 008h 00Ch 010h 014h 018h 01Ch 020h 024h 028h 02Ch 030h 034h 038h 03Ch 0E0h 0E4h 0E8h 0ECh 0F0h 0F4h 0F8h 0FCh 100h 104h 108h 10Ch 110h 114h 118h 11Ch 120h 124h 128h 12Ch 130h 134h 138h 13Ch 1E0h 1E4h 1E8h 1ECh 1F0h 1F4h 1F8h 1FCh 15-08 bit 07-00 bit SD Command Argument0 Stop internal action Response0 Response2 Response4 Response6 SD Card Status SD Interrupt Mask0 SD Card Clock Control SD Memory Card Option Setup SD Error Detail Status 0 SD Data Port Transaction Control ----SD Software Reset ----------SD Control Reserved 5 SD Control Reserved 7 SD Command Argument0 --Response0 Response2 Response4 Response6 SD Card Status SD Interrupt Mask0 --SDIO Card Option Setup SD Error Detail Status0 SD Data Port Transaction Control Clock & Wait Control Error Control SD Software Reset ------SD Control Reserved 10 ------- TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.15 TC6387XB Specification 4.4 Rev. 1.0 02/02/06 Clock/Reset 4.4.1 Clock TC6387XB holds the following two Input Clock Pins: HCLK, CLK32 (1) HCLK : System Clock Input (33MHz Max.). Basic Clock for System Interface and internal operations. (2) CLK32 : Clock Input for 32KHz. The interrupt signal, implied for a SD card insertion and detachment, shall be generated synchronous to this signal. In addition, this signal is base clock, which input to a register which set timeout error time on SD data from a SDIO card. 4.4.2 Reset-related items - #PCLR: Reset Signal is asserted when power is supplied. All registers(built into TC6387XB) are cleared by #PCLR. Be sure to deactivate assertion of #PCLR when power supply and HCLK oscillation (better than 1ms) are fairly stable. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.16 TC6387XB Specification 4.5 Rev. 1.0 02/02/06 Interruption When the TC6387XB detects the each interrupt sources, TC6387XB asserts interrupt signals (#HINT). It is necessary that the interrupt mask bits are released. This mask bits releasing is controlled by setting SD Interrupt Mask Register(Offset:020-023h, 120-123h). Each factor of the interrupt can be evaluated by referring to SD Card Status Register(Offset:01C-01Dh, 11C-11Dh) or SD Buffer Control & Error Status Register(Offset:01E-01Fh, 11E-11Fh). The details of each factor are listed below. 4.5.1 SD card insertion interrupt by #SDCD + Interrupt Assert Condition When an SD card is inserted to a slot, #SDCD is lowered. This condition causes an interrupt to be generated. #SDCD is not recognized as being lowered unless it remains in "0" state for the number of HCLK cycles specified by CDM[1:0] of Card Detect Mode Register(Config Offset:4Ch). The interrupt is asserted in th timing of raising of CLK32 from #SDCD low state. HCLK CDM CLK32 #SDCD #HINT + Factor Evaluation Method The SCIN bit(D4) of SD Card Status Register(Offset:01C-01Dh) is set to "1". +De-asserting Method (1) "0" is written into the SCIN bit(D4) of SD Card Status Register(Offset:01C-01Dh). (2) "1" is written into the MCIN bit(D4) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). 4.5.2 SD card removal interrupt by #SDCD + Interrupt Assert Condition When an SD card in a slot is removed, #SDCD is raised. This condition causes an interrupt to be generated. After #SDCD is high, the interrupt is asserted in th timing of raising of CLK32. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.17 TC6387XB Specification Rev. 1.0 02/02/06 HCLK CLK32 #SDCD #HINT + Factor Evaluation Method The SCOT bit(D3) of SD Card Status Register(Offset:01C-01Dh) is set to "1". +De-asserting Method (1) "0" is written into the SCOT bit(D3) of SD Card Status Register(Offset:01C-01Dh). (2) "1" is written into the MCOT bit(D3) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). 4.5.3 Buffer write enable interrupt + Interrupt Assert Condition When data to be transmitted to the card becomes available for the internal buffer, SD Data Port Register(Offset:030-031h, 130-131h), to be written for a write command, an interrupt is generated. HCLK SDCLK SDCD3-0 #HINT Write Data Write is enabled when the data is transferred from the internal buffer to the data transmission circuit. CRC16 + Factor Evaluation Method In the case of SD memory Card, the SBWE bit(D9) of SD Buffer Control & Error Status Register(Offset:01E01Fh) is set to "1". In the case of SDIO Card, the SBWE bit(D9) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) is set to "1". TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.18 TC6387XB Specification Rev. 1.0 02/02/06 +De-asserting Method SD memory Card (1) "0" is written into the SBWE bit(D9) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MBWE bit(D25) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SBWE bit(D9) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MBWE bit(D25) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). 4.5.4 Buffer read enable interrupt + Interrupt Assert Condition When one block of data from the card is stored fully into the internal buffer for a read command, an interrupt is generated. HCLK SDCLK SDCD3-0 Read Data CRC16 #HINT + Factor Evaluation Method In the case of SD memory Card, the SBRE bit(D8) of SD Buffer Control & Error Status Register(Offset:01E01Fh) is set to "1". In the case of SDIO Card, the SBRE bit(D8) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) is set to "1". +De-asserting Method SD memory Card (1) "0" is written into the SBRE bit(D8) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MBRE bit(D24) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (5) "0" is written into the SBRE bit(D8) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (6) "1" is written into the MBRE bit(D24) of SD Interrupt Mask Register(Offset:120-123h). (7) Hardware reset by #PCLR = “0”. (8) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.19 TC6387XB Specification Rev. 1.0 02/02/06 4.5.5 Response end interrupt + Interrupt Assert Condition After a response received from an SD card, an interrupt is generated. Regarding R1b response type, after busy released from an SD card, an interrupt is generated. <In the case of normal command> HCLK SDCLK SDCMD End bit #HINT <In the case of R1b command> HCLK SDCLK SDCMD End bit SDCD0 #HINT + Factor Evaluation Method In the case of SD memory Card, the SREP bit(D0) of SD Card Status Register(Offset:01C-01Dh) is set to "1". In the case of SDIO Card, the SREP bit(D0) of SD Card Status Register(Offset:11C-11Dh) is set to "1". +De-asserting Method SD memory Card (1) "0" is written into the SREP bit(D0) of SD Card Status Register(Offset:01C-01Dh). (2) "1" is written into the MREP bit(D0) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SREP bit(D0) of SD Card Status Register(Offset:11C-11Dh) (2) "1" is written into the MREP bit(D0) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.20 TC6387XB Specification Rev. 1.0 02/02/06 4.5.6 R/W end interrupt + Interrupt Assert Condition When read or write processing for an SD card is completed, an interrupt is generated. <In the case of read command> HCLK SDCLK SDCD3-0 Data CRC End #HINT <In the case of write command> HCLK SDCLK SDCMD SDCD0 #HINT End bit of Write CRC Status TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.21 TC6387XB Specification Rev. 1.0 02/02/06 + Factor Evaluation Method In the case of SD memory Card, the SRWA bit(D2) of SD Card Status Register(Offset:01C-01Dh) is set to "1". In the case of SDIO Card, the SRWA bit(D2) of SD Card Status Register(Offset:11C-11Dh) is set to "1". +De-asserting Method SD memory Card (1) "0" is written into the SRWA bit(D2) of SD Card Status Register(Offset:01C-01Dh). (2) "1" is written into the MRWA bit(D2) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SRWA bit(D2) of SD Card Status Register(Offset:11C-11Dh) (2) "1" is written into the MRWA bit(D2) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). 4.5.7 Illegal access error interrupt + Interrupt Assert Condition When an incorrect command index is written into SD Command Register(Offset:000-001h, 100-101h), an interrupt is generated. Each of the following cases is recognized as an incorrect index. (3) is only applying to SD memory Card. (1) SD Command Register is written before the previously issued command is not completed. (2) Though the REP2-0 bits(D10-8) are set to 011b(no response), the NTDT bit(D11) is set to 1b(with data). (3) Though the CMD1-0 bits(D7-6) are set to 00b and the CIX bits(D5-0) are set to 001100b(CMD12), the NTDT bit(D11) is set to 1b(with data). HCLK SDCLK HA[7-0] 0x00 #HWE #HINT TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.22 TC6387XB Specification Rev. 1.0 02/02/06 + Factor Evaluation Method In the case of SD memory Card, the ILA bit(D15) of SD Buffer Control & Error Status Register(Offset:01E-01Fh) is set to "1". In the case of SDIO Card, the ILA bit(D15) of SD Buffer Control & Error Status Register(Offset:11E11Fh) is set to "1". +De-asserting Method SD memory Card (1) "0" is written into the ILA bit(D15) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the IMSK bit(D31) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the ILA bit(D15) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the IMSK bit(D31) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). 4.5.8 Buffer underflow error interrupt + Interrupt Assert Condition If the host reads SD Data Port Register when the data buffer is empty, an interrupt is generated. HCLK SDCL HA[7-0] 0x30 #HRE #HINT + Factor Evaluation Method In the case of SD memory Card, the SFUF bit(D5) of SD Buffer Control & Error Status Register(Offset:01E-01Fh) is set to "1". In the case of SDIO Card, the SFUF bit(D5) of SD Buffer Control & Error Status Register(Offset: 11E-11Fh) is set to "1". TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.23 TC6387XB Specification Rev. 1.0 02/02/06 +De-asserting Method SD memory Card (1) "0" is written into the SFUF bit(D5) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MFUF bit(D21) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SFUF bit(D5) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MFUF bit(D21) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). 4.5.9 Buffer overflow error interrupt + Interrupt Assert Condition If the host writes SD Data Port Register when the data buffer is full, an interrupt is generated. HCLK SDCLK HA[7-0] 0x30 #HWE #HINT + Factor Evaluation Method In the case of SD memory Card, the SFOF bit(D4) of SD Buffer Control & Error Status Register(Offset:01E-01Fh) is set to "1". In the case of SDIO Card, the SFOF bit(D4) of SD Buffer Control & Error Status Register(Offset: 11E-11Fh) is set to "1". +De-asserting Method SD memory Card (1) "0" is written into the SFOF bit(D4) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MFOF bit(D20) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.24 TC6387XB Specification Rev. 1.0 02/02/06 SDIO Card (1) "0" is written into the SFOF bit(D4) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MFOF bit(D20) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). 4.5.10 Time out error(command) interrupt + Interrupt Assert Condition If the start bit of a response is not received within SDCLK period X 640(SD memory Card) or X 64(SDIO Card) after the end bit of a command is transmitted to the card, this condition is considered a time out error and an interrupt is generated. HCLK SDCLK 1 SDCMD 2 …… 640(SD memory) 64(SDIO) #HINT + Factor Evaluation Method In the case of SD memory Card, the SCTO bit(D6) of SD Buffer Control & Error Status Register(Offset:01E01Fh) and the NCR bit(D16) of SD Error Detail Status Register(Offset:02C-02Fh) are set to "1". However, if a response for automatically issued CMD12 is not received, the NRS bit(D17) is set to "1" for differentiation. In the case of SDIO Card, the SCTO bit(D6) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) and the NCR bit(D16) of SD Error Detail Status Register(Offset:12C-12Fh) are set to "1". +De-asserting Method SD memory Card (1) "0" is written into the SCTO bit(D6) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MCTO bit(D22) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SCTO bit(D6) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MCTO bit(D22) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.25 TC6387XB Specification Rev. 1.0 02/02/06 4.5.11 Read data time out error interrupt + Interrupt Assert Condition If the start bit of data is not detected within the specified period after the end bit of a response for each read command, an interrupt is generated. In the case of SD memory Card, the specified period is set in RTO[3:0] of SD Memory Card Option Setup Register(Offset:028h) in the form of a multiple number of the SDCLK period. In the case of SDIO Card, the specified period is set in TO[3:0] of SD Memory Card Option Setup Register(Offset:128h) in the form of a multiple number of the CLK32 period. Read data time out error is classified into between a command and a read data, and between a read data and a read data in a multiple block transfer. *Between a command and a read data, time out <In the case of SD memory card> HCLK SDCLK SDCMD Setting time in RTO3-0 bits SDCD0 #HINT <In the case of SDIO card> HCLK SDCLK CLK32 Setting time in TO3-0 bits SDCMD SDCD0 #HINT TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.26 TC6387XB Specification Rev. 1.0 02/02/06 *Between a read data and a read data, time out <In the case of SD memory card> HCLK SDCLK SDCD3-0 Data CRC End Start Setting time in RTO3-0 bits #HINT <In the case of SDIO card> HCLK SDCLK CLK32 SDCD3-0 Data CRC End Setting time in TO3-0 bits Start #HINT + Factor Evaluation Method In the case of SD memory Card, the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:01E01Fh) and the NRCS bit(D20) of SD Error Detail Status Register(Offset:02C-02Fh) are set to "1". In the case of SDIO Card, the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) and the NRCS bit(D20) of SD Error Detail Status Register(Offset:12C-12Fh) are set to "1". +De-asserting Method SD memory Card (1) "0" is written into the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MDTO bit(D19) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MDTO bit(D19) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.27 TC6387XB Specification Rev. 1.0 02/02/06 4.5.12 Busy time out error interrupt + Interrupt Assert Condition If a busy declaration from the card (DAT0 = "0" after response end) remains longer than the specified time, this condition is considered as a time out error and an interrupt is generated. In the case of SD memory Card, the specified period is set in RTO[3:0] of SD Memory Card Option Setup Register(Offset:028h) in the form of a multiple number of the SDCLK period. In the case of SDIO Card, the specified period is set in TO[3:0] of SD Memory Card Option Setup Register(Offset:128h) in the form of a multiple number of the CLK32 period. <In the case of SD memory card> HCLK SDCLK SDCMD Setting time in RTO3-0 bits SDCD0 #HINT <In the case of SDIO card> HCLK SDCLK CLK32 SDCMD Setting time in TO3-0 bits SDCD0 #HINT + Factor Evaluation Method In the case of SD memory Card, the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:01E01Fh) and the NRCS bit(D20) of SD Error Detail Status Register(Offset:02C-02Fh) are set to "1". In the case of SDIO Card, the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) and the NRCS bit(D20) of SD Error Detail Status Register(Offset:12C-12Fh) are set to "1". TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.28 TC6387XB Specification Rev. 1.0 02/02/06 +De-asserting Method SD memory Card (1) "0" is written into the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MDTO bit(D19) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MDTO bit(D19) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). 4.5.13 CRC status busy time out error interrupt + Interrupt Assert Condition If a busy declaration from the card (DAT0 = "0" after Write CRC Status) remains longer than the specified time, this condition is considered as a time out error and an interrupt is generated. In the case of SD memory Card, the specified period is set in RTO[3:0] of SD Memory Card Option Setup Register(Offset:028h) in the form of a multiple number of the SDCLK period. In the case of SDIO Card, the specified period is set in TO[3:0] of SD Memory Card Option Setup Register(Offset:128h) in the form of a multiple number of the CLK32 period. <In the case of SD memory card> HCLK SDCLK SDCMD Setting time in RTO3-0 bits SDCD0 #HINT End bit of Write CRC Status TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.29 TC6387XB Specification Rev. 1.0 02/02/06 <In the case of SDIO card> HCLK SDCLK CLK32 SDCMD Setting time in TO3-0 bits SDCD0 #HINT End bit of Write CRC Status + Factor Evaluation Method In the case of SD memory Card, the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:01E01Fh) and the KBSY bit(D22) of SD Error Detail Status Register(Offset:02C-02Fh) are set to "1". In the case of SDIO Card, the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) and the KBSY bit(D22) of SD Error Detail Status Register(Offset:12C-12Fh) are set to "1". +De-asserting Method SD memory Card (1) "0" is written into the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MDTO bit(D19) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MDTO bit(D19) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.30 TC6387XB Specification Rev. 1.0 02/02/06 4.5.14 CRC status time out error interrupt + Interrupt Assert Condition If the start bit of CRC status is not detected within the specified period after the end bit of block data for a write command, an interrupt is generated. In the case of SD memory Card, the specified period is set in RTO[3:0] of SD Memory Card Option Setup Register(Offset:028h) in the form of a multiple number of the SDCLK period. In the case of SDIO Card, the specified period is set in TO[3:0] of SD Memory Card Option Setup Register(Offset:128h) in the form of a multiple number of the CLK32 period. <In the case of SD memory card> HCLK SDCLK Write CRC Status SDCD0 Setting time in RTO3-0 bits #HINT <In the case of SDIO card> HCLK SDCLK CLK32 Write CRC Status SDCD0 Setting time in TO3-0 bits #HINT + Factor Evaluation Method In the case of SD memory Card, the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:01E01Fh) and the NWCS bit(D21) of SD Error Detail Status Register(Offset:02C-02Fh) are set to "1". In the case of SDIO Card, the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) and the NWCS bit(D21) of SD Error Detail Status Register(Offset:12C-12Fh) are set to "1". TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.31 TC6387XB Specification Rev. 1.0 02/02/06 +De-asserting Method SD memory Card (1) "0" is written into the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MDTO bit(D19) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SDTO bit(D3) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MDTO bit(D19) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.32 TC6387XB Specification Rev. 1.0 02/02/06 4.5.15 End bit error interrupt + Interrupt Assert Condition If a bit that should be the end bit for the response, read data or CRC status received from the card is "0", an interrupt for detecting an incorrect end bit is generated. HCLK SDCLK SDCMD End bit #HINT + Factor Evaluation Method In the case of SD memory Card, the SEND bit(D2) of SD Buffer Control & Error Status Register(Offset:01E01Fh) and the WEBER bit, REBER bit, SEBER bit and CEBER bit(D5-2) of SD Error Detail Status Register(Offset:02C-02Fh) are set to "1". In the case of SDIO Card, the SEND bit(D2) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) and the WEBER bit, REBER bit and CEBER bit(D5-4,2) of SD Error Detail Status Register(Offset:12C-12Fh) are set to "1". Bit 5 4 3 2 Name WEBER REBER SEBER CEBER Error factor End bit error for Write CRC status End bit error for read data End bit error of a response for automatically issued CMD12 End bit error for a response (other than SEBER ) Notes Only SD memory Card +De-asserting Method SD memory Card (1) "0" is written into the SEND bit(D2) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MEND bit(D18) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SEND bit(D2) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MEND bit(D18) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.33 TC6387XB Specification Rev. 1.0 02/02/06 4.5.16 CRC error interrupt + Interrupt Assert Condition If the CRC value for the response, read data or CRC status received from the card does not agree with the value internally calculated by TC6387XB, an interrupt is generated HCLK SDCLK SDCMD SDCD3-0 Abnormal CRC values End bit #HINT + Factor Evaluation Method In the case of SD memory Card, the SCRC bit(D1) of SD Buffer Control & Error Status Register(Offset:01E01Fh) and the WCRCE bit, RCRCE bit, SCRCE bit and CCRCE bit(D11-8) of SD Error Detail Status Register(Offset:02C-02Fh) are set to "1". In the case of SDIO Card, the SCRC bit(D1) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) and the WCRCE bit, RCRCE bit and CCRCE bit(D11-10,8) of SD Error Detail Status Register(Offset:12C-12Fh) are set to "1". Bit 11 10 9 8 Name WCRCE RCRCE SCRCE CCRCE Error factor Write CRC status error for a write command CRC error for read data CRC error of a response for automatically issued CMD12 CRC error for a response (other than SCRCE) Notes Only SD memory Card +De-asserting Method SD memory Card (1) "0" is written into the SCRC bit(D1) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MCRC bit(D17) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SCRC bit(D1) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MCRC bit(D17) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.34 TC6387XB Specification Rev. 1.0 02/02/06 4.5.17 Command Index error interrupt + Interrupt Assert Condition If the command index portion of the response received from the card does not agree with the index issued just before, an interrupt is generated. HCLK SDCLK Abnormal SDCMD command index End bit #HINT + Factor Evaluation Method In the case of SD memory Card, the SCIX bit(D0) of SD Buffer Control & Error Status Register(Offset:01E01Fh) and the RCMDE bit(D0) of SD Error Detail Status Register(Offset:02C-02Fh) are set to "1". If a response for automatically issued CMD12 is not normal, "1" is set to the SCMDE bit(D0). In the case of SDIO Card, the SCIX bit(D0) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) and the RCMDE bit(D0) of SD Error Detail Status Register(Offset:12C-12Fh) are set to "1". +De-asserting Method SD memory Card (1) "0" is written into the SCIX bit(D0) of SD Buffer Control & Error Status Register(Offset:01E-01Fh). (2) "1" is written into the MCIX bit(D16) of SD Interrupt Mask Register(Offset:020-023h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:0E0h). SDIO Card (1) "0" is written into the SCIX bit(D0) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the MCIX bit(D16) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.35 TC6387XB Specification Rev. 1.0 02/02/06 4.5.18 Illegal function select interrupt + Interrupt Assert Condition Although a transaction is remaining on the SD bus, or a state of SD controller is acceptable, other function in SDIO Card is selected by SD host controller, then an interrupt is generated. <In the case of remaining transaction on the SD bus> HCLK SDCLK HA[7-0] 0x00 #HWE SDCD3-0 Write data or Read data #HINT <In the case of SD controller is an acceptable state> HCLK SDCLK HA[7-0] 0x00 #HWE SDCD3-0 #HINT + Factor Evaluation Method The ILFSL bit(D13) of SD Buffer Control & Error Status Register(Offset:11E-11Fh) is set to "1". +De-asserting Method (1) "0" is written into the ILFSL bit(D13) of SD Buffer Control & Error Status Register(Offset:11E-11Fh). (2) "1" is written into the IFSMSK bit(D29) of SD Interrupt Mask Register(Offset:120-123h). (3) Hardware reset by #PCLR = “0”. (4) Software reset by writing "0" into the SRST bit(D0) of SD Software Reset Register(Offset:1E0h). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.36 TC6387XB Specification Rev. 1.0 02/02/06 4.5.19 SDIO Card interrupt + Interrupt Assert Condition When an interrupt from SDIO Card by using SDCD1 signal is detected, an interrupt is generated. Please release the interrupt mask by the CIMSK0 bit(D8) of Card Interrupt Control Register(Offset:136h), so the interrupt from #HINT would be generated. HCLK SDCLK SDCD1 #HINT + Factor Evaluation Method The CINT0 bit(D12) of Card Interrupt Control Register(Offset:136h) is set to "1". +De-asserting Method (1) "0" is written into the CINT0 bit(D12) of Card Interrupt Control Register(Offset:136h). (2) "1" is written into the CIMSK0 bit(D8) of Card Interrupt Control Register(Offset:136h). (3) Hardware reset by #PCLR = “0”. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.37 TC6387XB Specification 4.6 Rev. 1.0 02/02/06 Card Slot Power Supply Control TC6387XB is designed to provide connection with MIC2563(Power Supply Control LSI).The following suggests applicable circuits: System Power Supply 3.3V Vcc VC3EN VC5EN EN0 EN1 VC3EN VC5EN EN0 EN1 MIC2563 TC6387XB SDPWR SDVCC (3.3v) SD Card Slot GND 4.6.1 SD Card Slot Power Supply Controller Power supply for SD Card is controlled by configuring Power Control Register 2(Config Offset 49h) after detecting SD Card insertion. When #SUSPEND is asserted to low, power supply for SD Card can be automatically shut out by configuring Power Control Register 3(Config Offset 4Ah). Signal Name SDPWR Parallel Power Supply Control Signals Function/Remarks SD Card Slot Power Supply Controller. 3.3V Enable Signal Pin B1 TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.38 TC6387XB Specification 4.7 Rev. 1.0 02/02/06 SDLED signal TC6387XB has the SDLED signal for SD interface. This signal is controlled by setting SDLED Control Register(Offset:13Eh). Before accessing SDLED Control Register(Offset:13Eh), please set following registers. *Set SDLED Enable Register 1(Config Offset:FAh) to 12h. *Set SDLED Enable Register 2(Config Offset:FEh) to 80h. 4.8 Clock supply to SD Card The SDCLK signal is used for a provision of SD Memory Card or SDIO Card. Please refer to the following setting for enabling the SDCLK output. (1) Set Stop Clock Control Register (Config Offset:40h) to 1Fh. (2) Set D0 of SD Software Reset Register (Offset:0E0h) to 1b. (3) Set D7-0 of SD Card Clock Control Register (Offset:024h). These bits are used for setting the frequency of SDCLK. 80h : SDCLK=HCLK/512 40h : SDCLK=HCLK/256 20h : SDCLK=HCLK/128 10h : SDCLK=HCLK/64 08h : SDCLK=HCLK/32 04h : SDCLK=HCLK/16 02h : SDCLK=HCLK/8 01h : SDCLK=HCLK/4 00h : SDCLK=HCLK/2 In addition, TC6387XB holds a function that SDCLK can have same frequency as HCLK. In this case, D7-0 settings of SD Card Clock Control Register (Offset:024h)becomes invalid setting. * Set D0 of Clock Mode Register (Config Offset:42h) to 1b. * Set D15 of SD Card Clock Control Register (Offset:024h) to 1b. Please attend that the specification of SDCLK is max.25MHz at the case of SD Card and is max.20MHz at the case of MultiMedia Card. (4) D8 of SD Card Clock Control Register (Offset:024h) to 1b. (5) D8 of Clock & Wait Control Register (Offset:138h) to 1b. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.39 TC6387XB Specification 4.9 Rev. 1.0 02/02/06 Suspension TC6387XB executes buffer-off for Input Signals from Host interface and SD Card by asserting #SUSPEND. Phase I Phase II Phase Ⅳ Phase III VCC #PCLR #SUSPEND Register Clear (Internal) X X X HCLK SUSPEND State * Phase I: * Phase II: * Phase III: * Phase IV: Immediately after the power is turned ON, #PCLR indicates "L" whereas #SUSPEND indicates "H". All the circuits are cleared in this state. Assertion of #PCLR deactivated (H). Normal state. Assert #SUSPEND to activate SUSPEND state. TC6387XB executes Anti-Penetration Process for Input Signals in this state. Also, TC6387XB does not accept Host Interface transactions in this state. Moreover, stopping HCLK can reduce the power consumption. TC6387XB is brought back to normal state by deactivating assertion of #SUSPEND. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.40 TC6387XB Specification Rev. 1.0 02/02/06 It shows what state each signals are in suspend mode (#SUSPEND=Low). NAME HD15 HD14 HD13 HD12 HD11 HD10 HD9 HD8 HD7 HD6 HD5 HD4 HD3 HD2 HD1 HD0 HA11 HA10 HA9 HA8 HA7 HA6 HA5 HA4 HA3 HA2 HA1 Pin H5 F4 G5 F5 H6 G6 H7 H8 G8 F6 F7 E7 F8 E8 D8 E6 D7 D6 C8 C7 B8 A8 A7 C6 B6 B5 A6 IO IO IO IO IO IO IO IO IO IO IO IO IO IO IO IO IO I I I I I I I I I I I State Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z NAME #HCS #HOE #HWE #HBEL #HBEH HRDY SDCD3 SDCD2 SDCD1 SDCD0 SDCMD SDCLK #SDCD SDWP SDLED SDPWR HCLK CLK32 #HINT #PCLR #SUSPEND TST2 TST1 TST0 RSV0 RSV1 RSV2 Pin A5 G3 G4 H4 H3 F2 C2 C3 D3 E1 D2 D1 E2 E3 F1 B1 H1 A1 G1 F3 A4 B3 A3 C4 A2 B4 C5 IO I I I I I O (OD) IO IO IO IO IO O I I O O I I O (OD) I I I I I I I I State Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z Hi-Z L Hi-Z * Hi-Z - * This signal is not controlled by #SUSPEND signal. The state before suspend mode (#SUSPEND=high) is held. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.41 TC6387XB Specification 4.10 Rev. 1.0 02/02/06 Pull-up/down Resistance PULL- UP/DOWN Resistance is to be installed for each interface in TC6387XB. Be aware that Resistance Values (described "Res. Val." in the following tables) indicated in the following tables are provided only for references. 4.10.1 Host Interface NAME Pin IO HRDY F2 O (OD) 4.10.2 Pull-up/ Pull-down Pull-up Pull-up Power VCC Pull-up/ Pull-down Pull-up Pull-up Pull-up Pull-up Pull-up Power SDVCC SDVCC SDVCC SDVCC Res. Val. 10KΩ Ready SD Card Interface NAME Pin SDCD3 SDCD2 SDCD1 SDCD0 C2 C3 D3 E1 IO SDCMD D2 IO Pull-up SDVCC *1 : 33KΩ *2 : 100KΩ SDCLK #SDCD SDWP D1 E2 E3 O I I Pull-up Pull-up VCC VCC 10KΩ 10KΩ 4.10.3 FUNCTION/REMARKS IO Res. Val. 47KΩ 100KΩ 100KΩ 100KΩ FUNCTION/REMARKS SD Card Slot /Data Bus SD Card Slot /Command *1 : Support MultiMedia Card *2 : Do not support MultiMedia Card SD Card Slot /Divided HCLK Clock SD Card Slot /Detection SD Card Slot /Write Protection System Interface NAME Pin IO Pull-up/ Pull-down Pull-up Power Res. Val. #HINT G1 O (OD) Pull-up VCC 10KΩ FUNCTION/REMARKS Interruption TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.42 TC6387XB Specification 4.11 Rev. 1.0 02/02/06 Connection example of SD Card socket It is shown that total 10 signal connections example of TC6387XB which have 9 signals of SD card interface and 1 signal of a power supply control for SD card. As for our company, using FPS009-3000 of theYAMAICHI Company did a movement confirmation of the SD card. An outside pull-up/down resistance that is mentioned on an item of the "4.10 Pull-up/down resistance" is not shown in a bottom figure. When you design a circuit, please refer to recommended resistance by an item of the "4.10 Pull-up/down " and a bottom figure. TC6387XB DAT3 CMD Vss Vdd FPS009-3000 manufactured CLK by the YAMAICHI Company Vss DAT0 DAT1 DAT2 SD-WP Vss SD-SW SDCD3 SDCMD SDCLK SDCD0 SDCD1 SDCD2 SDWP #SDCD SDPWR SDLED MIC2563 manufactured by the MICREL Company GND GND TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.43 TC6387XB Specification 5 Rev. 1.0 02/02/06 Electrical Characteristic 5.1 Absolute Maximum Standard Absolute Maximum Ratings Symbol Parameter Vcc Supply Voltage Range Vin3 Input Voltage (3.3V) Vout Output Voltage Tstg Storage Temperature Range Note 1: Vcc Power Supply Min -0.3 -0.3 -0.3 -40 Max 5.0 Vcc+0.3 Vcc+0.3 125 Unit V V V degree C Condition GND=0V GND=0V GND=0V Note 1 Note: Absolute Maximum Ratings indicates that stress greater than the values described above might cause permanent damages to the devices and does not guarantee all the performances within Absolute Maximum Ratings 5.2 DC Characteristic 5.2.1 Recommended Conditions for proper performances Symbol Vcc Topr Parameter Supply Voltage for Core Logic Ambient Temperature under bias Min 3.0 0 Typ 3.3 25 Max 3.6 70 Unit V degree C Note TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.44 TC6387XB Specification 5.2.2 Rev. 1.0 02/02/06 Host Interface DC Characteristic Host Interface DC Characteristic(Vcc =3.0-3.6V, Ta=0-70degree C) Symbol Vih Vil Iilk Voh Vol Parameter Input High Voltage Input Low Voltage Input Leakage Current Output High Voltage Output Low Voltage Min 0.8Vcc -10 2.4 - Max 0.2Vcc 10 0.4 Unit V V uA V V Condition 0<Vin<Vcc Iout=-4mA Iout=4mA Note 1-1 1-1 1-1 1-2 1-2 Note1-1: Applied for HD[15-0] ,HA[11-1], #HCS, #HOE, #HWE, #HBEL, #HBEH pins Note1-2: Applied for HD[15-0], HRDY pins TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.45 TC6387XB Specification 5.2.3 Rev. 1.0 02/02/06 SD Card Interface Pin DC Characteristic SD Card Interface DC Characteristic: 3.3V Operation (Vcc =3.0-3.6V, Ta=0-70degree C) Symbol Vih Vil Vih Vil Voh1 Parameter Input High Voltage Input Low Voltage Input High Voltage Input Low Voltage Output High Voltage 1 Min 0.7Vcc Vss-0.3 0.8Vcc 0.75Vcc Max Vcc+0.3 0.175Vcc 0.2Vcc - Unit V V V V V Vol1 Output Low Voltage 1 - 0.125Vcc V Voh2 Vol2 Iilk Output High Voltage 2 Output Low Voltage 2 Input Leakage Current 2.4 -10 0.4 10 V V uA Rdat3 Pull-up resistance inside card (pin1) 10 90 KΩ Condition Iout=-1mA 3.0V<Vcc<3.6V Iout=1mA 3.0V<Vcc<3.6V Iout=-4mA Iout=4mA 0<Vin<Vcc Note 2-1 2-1 2-2 2-2 2-3 2-3 2-4 2-4 2-1 2-2 Note2-1 Applied for SDCD[3:0], SDCMD, SDWP pins Note2-2 Applied for #SDCD pin Note2-3 Applied for SDCD[3:0], SDCMD, SDCLK pins Note2-4 Applied for SDLED pin 5.2.4 SD Card Power Supply Control DC Characteristic SD Card Power Supply Control DC Characteristic: 3.3V Operation (Vcc =3.0-3.6V, Ta=0-70degree C) Symbol Voh Parameter Output High Voltage Min 2.4 Max - Unit V Vol Output Low Voltage - 0.6 V Condition Iout=-100uA 3.0V<Vcc<3.6V Iout=100uA 3.0V<Vcc<3.6V Note 2-5 2-5 Note2-5 Applied for SDPWR pin TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.46 TC6387XB Specification 5.2.5 Rev. 1.0 02/02/06 System Interface Pin DC Characteristic System Interface Pin DC Characteristic (VCC =3.0-3.6V, Ta=0-70degree C) Symbol Vih Vil Iilk Voh Vol Parameter Input High Voltage Input Low Voltage Input Leakage Current Output High Voltage Output Low Voltage Min 0.8Vcc -10 2.4 - Max 0.2Vcc 10 0.4 Unit V V uA V V Test Condition 0<Vin<Vcc Iout=-4mA Iout=4mA Note 3-1 3-1 3-1 3-2 3-2 Note3-1 Applied for HCLK, CLK32, #PCLR, #SUSPEND pins Note3-2 Applied for #HINT pin 5.2.6 TEST Pin DC Characteristic TEST Pin DC Characteristic (Vcc =3.0-3.6V, Ta=0-70degree C) Symbol Vih Vil Iilk Parameter Input High Voltage Input Low Voltage Input Leakage Current Min 0.8Vcc -10 Max 0.2Vcc 10 Unit V V μA Condition 0<Vin<Vcc Note 4-1 4-1 4-1 Note4-1 Applied for TST[2:0] pins TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.47 TC6387XB Specification 5.2.7 Rev. 1.0 02/02/06 Power Consumption Characteristic Power Supply Current Symbol Parameter Iccstd 1 Power Supply Current, Standby Min Typ Max Unit uA T.B.D Iccstd 2 Power Supply Current, Standby uA IccSD/M MC Power Supply Current, Operating SD Card or MultiMedia Card mA Condition HCLK=0, CLK32=0 VCC=3.6V #SUSPEND=low HCLK=0, CLK32=32KHz VCC=3.6V #SUSPEND=low HCLK=33MHz, CLK32=32KHz VCC=3.6V TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.48 TC6387XB Specification 5.3 Rev. 1.0 02/02/06 AC Characteristic 5.3.1 Host Interface Signal AC Characteristic (1)System Clock AC Characteristic (Vcc=3.0-3.6V, Ta=0-70degree C) Symbol Parameter HCLK Tcyc CLK cycle time Thigh CLK High time Tlow CLK Low time t1d HCLK Rising Time t1e HCLK Falling Time Min Max Unit 30 10 10 - ∞ 5 5 ns ns ns ns ns Notes HCLK Timing Tcyc Tlow Thigh 0.8VCC HCLK t1e 0.2VCC t1d TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.49 TC6387XB Specification Rev. 1.0 02/02/06 (2)#PCLR Reset AC Characteristic (Vcc=3.0-3.6V, Ta=0-70degree C) Symbol Trst Trst-clk Parameter #PCLR Reset active time after power stable Reset active time after CLK stable Min Max 1 1 Unit Notes ms ms #PCLR Reset Timing POWER 0.8Vcc #PCLR 0.8Vcc Trst 0.2Vcc Trst-clk 0.8Vcc HCLK 0.2Vcc #PCLR Reset Timing TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.50 TC6387XB Specification Rev. 1.0 02/02/06 (3)Standard Memory Interface Signal AC Characteristic (Vcc=3.0-3.6V,Ta=0-70degree C) Symbol thos1 thos2 thos3 thos4 tpd0 thoh1 thoh2 thoh3 twh1 twh2 twl1 twl2 tos1 tpdh1 t1 t2 tw1 tw2 Parameter Address setup to #HCS #HCS, #HBEL, #HBEH setup to #HOE or #HWE Address setup to #HOE or #HWE low Address setup to #HOE or #HWE low Data delay time after #HWE low Data hold after #HWE high #HCS, #HBEL, #HBEH hold asserted after #HOE or #HWE de-asserted Address Hold after #HOE or #HWE de-asserted #HOE high time #HWE high time #HOE low time #HWE low time Data Setup for HRDY Release #HOE,HD[15:0] hold time #HOE low to HRDY low time #HWE low to HRDY low time HRDY low time HRDY low time Min 0 20 Max - Unit ns ns 20 20 5 10 1HCLK - ns ns ns ns ns 5 - ns 3HCLK 3HCLK 3HCLK 3HCLK 1HCLK 5 15 15 1HCLK 1HCLK - ns ns ns ns ns ns ns ns ns ns Notes *1 *1 *1 There are two ways to have wait modes. A. External wait mode method(ie. not to use CPU generated wait time): Please input #HOE/#HWE signal using pulse width of 3HCLK minimum. If this has been applied, HRDY of TC6380AF signal will be activated and read/write cycle will be extended to access registers. By this method, read/write access cycle will become 16HCLK maximum. B. Internal wait mode method(ie. use CPU generated wait time): Please input #HOE/#HWE signal using enough pulse width, which should be 16HCLK minimum. If this has been applied, HRDY signal is not necessary for TC6380AF register read/write operations. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.51 TC6387XB Specification thos1 Rev. 1.0 02/02/06 thoh2 thos2 #HCS thos3 HA[11:1] #HBEL, #HBEH thos4 A0 twl1 A0+2 thoh3 #HOE twh1 t1 tw1 HRDY tos1 D0 HD[15:0] D1 tpdh1 thos1 thoh2 thos2 #HCS thos3 HA[11:1] thos4 A0 twl2 #HBEL, #HBEH #HWE t2 tw2 A0+2 thoh3 twh2 HRDY thoh1 tpd0 HD[15:0] D0 D1 TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.52 TC6387XB Specification 5.3.2 Rev. 1.0 02/02/06 SD Card Interface Signal AC Characteristic (Vcc=3.0-3.6V, Ta=0-70degree C) Symbol Fpp Fod Twl Twh Ttlh Tthl Tisu Tih Todly Parameter SDCD[3:0], SDCMD, SDCLK Clock frequency Data Transfer Mode Clock frequency Identification Mode Clock Low time Clock High time Clock fall time Clock rise time Input set-up time Input hold time Output delay time Min Max Unit Notes 0 0 10 10 10 10 - 25 256 10 10 15 MHz KHz ns ns ns ns ns ns ns Cl=25pF Cl=25pF Cl=25pF Cl=25pF Cl=25pF Cl=25pF Cl=25pF Cl=25pF Cl=25pF SD Card Interface Signals Timing Fpp, Fod 0.75Vcc Twl SDCLK (output) Twh Ttlh 0.125Vcc Tthl Tisu Tih INPUT Vil=0.25Vcc, Vih=0.625Vcc OUTPUT Todly (max) Vol=0.125Vcc, Todly (min) Voh=0.75Vcc Timing for SD Card Interface Signals TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.53 TC6387XB Specification 5.3.3 Rev. 1.0 02/02/06 System Interface Signal AC Characteristic (Vcc=3.0-3.6V, Ta= 0-70degree C) CLK32 AC Characteristic (Vcc=3.0-3.6V, Ta=0-70degree C) Symbol Parameter CLK32 Tcyc32 CLK cycle time Thigh32 CLK High time Tlow32 CLK Low time t1d32 CLK32 Rising Time t1e32 CLK32 Falling Time Min Max Unit 31 11 11 10 10 ∞ - us us us ns ns Notes CLK32 Timing Tcyc32 Tlow32 Thigh32 0.8VCC CLK32 0.2VCC t1e32 t1d32 TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.54 TC6387XB Specification 6 6.1 Rev. 1.0 02/02/06 Caution in coding device driver Regarding a SD card insertion and removal If a SD card would be inserted or removed, you should perform software reset with SD Software Reset Register(Offset:0E0h, 1E0h). *In SD card insertion If a SD card would be inserted, you should perform software reset with SD Software Reset Register(Offset:0E0h, 1E0h). Then, you should release software reset and initialize a SD card. *In SD card removal If a SD card would be removed, you should perform software reset with SD Software Reset Register(Offset:0E0h, 1E0h). Afterward, when a SD card would be inserted, you should release software reset and initialize a SD card. 6.2 Regarding controlling Stop Clock Control Register Stop Clock Control Register(Config Offset:40h) is used to control internal clocks of TC6387XB. When you would set this register, you could not set different values between EMCK3 bit(D2) and EMCK1 bit(D0). TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.55 TC6387XB Specification 7 Rev. 1.0 02/02/06 Package outline A1 pin TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.56 TC6387XB Specification Rev. 1.0 02/02/06 Appendix A TC6387XB function confirmation with standard memory interface TOSHIBA connected TC6387XB board to MN1A7T0200 board manufactured the COMPUTEX corporation. Then , TOSHIBA confirmed to the function of SD memory Card and MMC. The following indicates these circuits. Standard memory interface connection MN1A7T0200 board TC6387XB board SD memory Card CPU (ARM7) ) A.1 TC6387XB Sample soft for standard memory interface of TC6387XB TOSHIBA developed the device driver of SD memory Card with above environment. TOSHIBA provide these driver source to you as sample soft of TC6387XB. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.57 TC6387XB Specification A.2 Rev. 1.0 02/02/06 Wait mode specification MN1A7T0200 board and TC6380A board support internal and external wait mode of 32/16/8 bit access. The correspondence list indicates as followings. 32bit internal wait mode 16bit internal wait mode 8bit internal wait mode 32bit external wait mode 16bit external wait mode 8bit external wait mode *1 MN1A7T0200 board TC6387XB specification TC6387XB board Notes *1 Support Not support Not support Support Support Support Support Support Support Not support Support Not support Not support Not support Support Support Support Support *1 *2 *2 Because TC6387XB supports 16 bit bus interface, TOSHIBA do not confirm this function. *2 MN1A7T0200 board supports only external wait mode of 32 bit access. When TOSHIBA confirmed to the function of SD memory Card, SDIO Card and SmartMediaTM with external wait mode of 16bit and 8bit access, TOSHIBA deal with these mode by controlling #HCS, #HWE, #HRE, #HBEH, #HBEL, HA[11:1], HD[15:0] and HRDY with using FPGA LSI mounted to TC6387XB board. External wait access of 16 bit and 8 bit were realized by shifting address bits against external wait access of 32 bit from MN1A7T0200 board. These access(*3) can be switched by FPGA register. *3 Internal wait access of 16 bit, external wait access of 16 bit and external wait access of 8 bit. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.58 TC6387XB Specification A.3 Rev. 1.0 02/02/06 The wiring image of 16bit internal wait mode In 16 bit internal wait mode, the connection of MN1A7T0200 board and TC6387XB is as following. MN1A7T0200 board TC6387XB board FNCS[3] FA[23] FA[22] FA[21] FA[20] #HCS #HWE FNWE[1] FNWE[0] FNRE #HOE #HBEH FA[0] #HBEL FA[11] FA[10] FA[9] FA[8] FA[7] FA[6] FA[5] FA[4] FA[3] FA[2] FA[1] HA11 HA10 HA9 HA8 HA7 HA6 HA5 HA4 HA3 HA2 HA1 FD[15] FD[14] FD[13] FD[12] FD[11] FD[10] FD[9] FD[8] FD[7] FD[6] FD[5] FD[4] FD[3] FD[2] FD[1] FD[0] FNACK HD15 HD14 HD13 HD12 HD11 HD10 HD9 HD8 HD7 HD6 HD5 HD4 HD3 HD2 HD1 HD0 3.3V Open HRDY FNMI FNIRQ[0] #HINT TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.59 TC6387XB Specification A.4 Rev. 1.0 02/02/06 The wiring image of 16bit external wait mode In 16 bit external wait mode, the connection of MN1A7T0200 board and TC6387XB is as following. MN1A7T0200 board access to TC6387XB board with 32 bit. MN1A7T0200 board TC6387XB board FNCS[3] FA[23] FA[22] FA[21] FA[20] #HCS #HWE FNWE[1] FNWE[0] FNRE #HOE #HBEH FA[1] #HBEL FA[12] FA[11] FA[10] FA[9] FA[8] FA[7] FA[6] FA[5] FA[4] FA[3] FA[2] HA11 HA10 HA9 HA8 HA7 HA6 HA5 HA4 HA3 HA2 HA1 FD[15] FD[14] FD[13] FD[12] FD[11] FD[10] FD[9] FD[8] FD[7] FD[6] FD[5] FD[4] FD[3] FD[2] FD[1] FD[0] HD15 HD14 HD13 HD12 HD11 HD10 HD9 HD8 HD7 HD6 HD5 HD4 HD3 HD2 HD1 HD0 COUNTER FNACK CPUCLK (20MHz) HRDY CPUCLK 1pulse 3.3V 3.3V FNMI FNIRQ[0] 33MHz #HINT TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.60 TC6387XB Specification Reference diagram 10K 3.3V HRDY #HBEH #HBEL #HWE #HOE Power (5pin) SDPWR SDLED SDWP Please check the chapter 4.6 application circuit. Vss Vss Vss Vdd SD-SW SD-WP CLK CMD DAT0 DAT1 DAT2 * : Change the resistance value to be 33k in case one uses MMC. DAT3 SDVCC 47K 100K 100K 100K 100K * SDVCC 10K SD Card Power Control Pin (1pin) SD Card I/F (9pin) SDCLK RSV0 #SDCD RSV1 SDCD3 RSV2 #HCS Ground (5pin) Reserved (3pin) TST0 SDCD0 TST1 SDCD2 TST2 3.3V TC6387XB TEST PIN (3pin) #SUSPEND SDCMD #HINT #PCLR HOST I/F (33pin) SDCD1 HCLK CLK32 3.3V HA[11:1] SYSTEM I/F (5pin) 10K HD[15:0] 3.3V 10K B Rev. 1.0 02/02/06 SD Card Socket YAMAICHI-denki FPS009-3000 TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.61 TC6387XB Specification Rev. 1.0 02/02/06 • TOSHIBA is continually working to improve the quality and the reliability of its products. Nevertheless, semiconductor devices in general can malfunction or fail due to their inherent electrical sensitivity and vulnerability to physical stress. It is the responsibility of the buyer, when utilizing TOSHIBA products, to observe standards of safety, and to avoid situations in which a malfunction or failure of a TOSHIBA product could cause loss of human life, bodily injury or damage to property. In developing your designs, please ensure that TOSHIBA products are used within specified operating ranges as set forth in the most recent products specifications. Also, please keep in mind the precautions and conditions set forth in the TOSHIBA Semiconductor Reliability Handbook. • The information contained herein is presented only as a guide for the applications of our products. No responsibility is assumed by TOSHIBA for any infringements of patents or other rights of the third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of TOSHIBA or others. • The information contained herein is subject to change without notice. TOSHIBA CONFIDENTIAL TOTAL 62 PAGE NO.62