PICtail Daughter Board for SD and MMC Cards Information Sheet

PICtail™ Daughter Board for SD™ and MMC Cards
Signal Interface
Function
I/O
Pin (PICtail™
Daughter Board)
Pin
(PICtail™ Plus)
SCK
O
RC3/RB1
RF6/RG6
Overview
Description
SPI Clock Out
SDI
I
RC4/RB0
RF7/RG7
SPI Data In
SDO
O
RC5/RC7
RF8/RG8
SPI Data Out
CD
I
RB4
RF0/RG0
Physical Card Insertion Detect Signal
WD
I
RA4
RF1/RG1
Physical Write-Protect Switch Status Signal
CS
O
RB3
RB1/RB9
Low Asserting SPI Chip Select
Other Information
To obtain additional information about how this demonstration board can be used, including application examples and
source code, please refer to AN1189 “Implementing a Mass Storage Device Using Microchip USB Device Firmware
Framework” and AN1045 “Implementing File I/O Functions Using Microchip’s Memory Disk Drive File System
Library”.
References
The PICtail Daughter Board for SD and MMC Cards is a demonstration board for evaluating reading and writing data on
SD or MMC cards. It is an expansion board compatible with a number of PICDEM™ demonstration boards. A complete
list of compatible PICDEM demonstration boards is available on Microchip’s web site.
Note: The implementation and use of the FAT file system, SD card specifications, MMC card specifications and other
third party tools may require a license from various entities, including, but not limited to Microsoft® Corporation, SD
Card Association and MMCA. It is your responsibility to obtain more information regarding any applicable licensing
obligations. Some third party web sites have been listed in “References” for your convenience.
Getting Started
To get started, a compatible PICDEM demonstration board is required. In general, a board is compatible if it has a
PICtail Daughter Board interface expansion port or a PICtail Plus board interface expansion port. Most PICDEM
demonstration boards do not have the female PICtail Daughter Board header installed, so a 14x2 female connector is
included with this kit for the user to install onto the PICDEM demonstration board if necessary. When connecting this
daughter board to a board with the PICtail Plus connector, like the Explorer 16 Development Board, the connector
should be inserted in the first slot of the demonstration board (aligned with Pin #1) to communicate using the SPI1
module, or in the second slot of the demonstration board (aligned with Pin #33) to communicate using the SPI2
module. Note that the pins used for other signals will change as well, depending on the slot selected.
Features
FAT File System Specification available by license, http://www.microsoft.com/mscorp/ip/tech/fat.asp.
MMC Specifications: some are available by license and others are available for purchase,
http://www.mmca.org/compliance.
SD Card Specification available by license, http://www.sdcard.org.
•
•
•
•
•
Americas
Asia/Pacific
Europe
Atlanta - 678-957-9614
Boston - 774-760-0087
Chicago - 630-285-0071
Dallas - 972-818-7423
Detroit - 248-538-2250
Kokomo - 765-864-8360
Los Angeles - 949-462-9523
Phoenix - 480-792-7200
Santa Clara - 408-961-6444
Toronto - 905-673-0699
Australia - Sydney - 61-2-9868-6733
China - Beijing - 86-10-8528-2100
China - Chengdu - 86-28-8665-5511
China - Hong Kong SAR - 852-2401-1200
China - Nanjing- 86-25-8473-2460
China - Qingdao - 86-532-8502-7355
China - Shanghai - 86-21-5407-5533
China - Shenyang - 86-24-2334-2829
China - Shenzhen - 86-755-8203-2660
China - Wuhan - 86-27-5980-5300
China - Xiamen - 86-592-2388138
China - Xian - 86-29-8833-7252
China - Zhuhai - 86-756-3210040
India - Bangalore - 91-80-4182-8400
India - New Delhi - 91-11-4160-8631
India - Pune - 91-20-2566-1512
Japan - Yokohama - 81-45-471-6166
Korea - Daegu - 82-53-744-4301
Korea - Seoul - 82-2-554-7200
Malaysia - Kuala Lumpur - 60-3-6201-9857
Malaysia - Penang - 60-4-227-8870
Philippines - Manila - 63-2-634-9065
Singapore - 65-6334-8870
Taiwan - Hsin Chu - 886-3-572-9526
Taiwan - Kaohsiung - 886-7-536-4818
Taiwan - Taipei - 886-2-2500-6610
Thailand - Bangkok - 66-2-694-1351
Austria - Weis - 43-7242-2244-39
Denmark - Copenhagen - 45-4450-2828
France - Paris - 33-1-69-53-63-20
Germany - Munich - 49-89-627-144-0
Italy - Milan - 39-0331-742611
Netherlands - Drunen - 31-416-690399
Spain - Madrid - 34-91-708-08-90
UK - Wokingham - 44-118-921-5869
01/02/08
Supports a wide range of SD cards
Supports auto-triggering of files on SD cards
Operates on a wide range of voltages from 3.3V-5.0V DC
Includes PICtail Daughter Board and PICtail Plus Board connection interfaces
Compatible with many boards with PICtail Daughter Board and PICtail Plus interface, including Explorer 16
Development Board, PIC18 Explorer and PICDEM FS USB demo boards
Board Configurations
A total of 7 jumper locations are available. As shipped from the factory, some of the jumper locations are bridged by
circuit traces forming a default setup. To change this, the user will need to cut the traces and install pins and a block
jumper. Afterward, the features can be enabled or disabled easily by installing or removing the jumper.
Note: Jumpers, JP1-JP6, are only used to configure pin settings for the PICtail Daughter Board connector. To switch
between sets of operating pins on a PICtail Plus header, the card edge connector must be swapped between the first
and second slot of the PICtail Plus socket. Jumper, JP7, is also used only by the PICtail Daughter Board connector.
Jumper
The Microchip name and logo and the Microchip logo are registered trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries. PICtail and PICDEM are trademarks of Microchip Technology Incorporated in the U.S.A. and other
countries. All other trademarks mentioned herein are property of their respective companies. © 2008, Microchip Technology
Incorporated, Printed in the U.S.A. All Rights Reserved. 10/08
DS51583B
*DS51583B*
Function
Pin 1-2
Pin 2-3
PIC18 Explorer Board enabled (SCK connected to RC3)
PICDEM FS USB enabled (SCK connected to RB1)
JP2
Pin 1-2
Pin 2-3
PIC18 Explorer Board enabled (SDI connected to RC4)
PICDEM FS USB enabled (SDI connected to RB0)
JP3
Pin 1-2
Pin 2-3
PIC18 Explorer Board enabled (SD0 connected to RC5)
PICDEM FS USB enabled (SD0 connected to RC7)
JP4
Pin 1-2
Pin 2-3 (Default)
No Connect (user can select an available port)
Card Detect (CD) signal connected to RB4
JP5
Pin 1-2
Pin 2-3 (Default)
No Connect (user can select an available port)
Write-Protect (WD) signal connected to RA4
JP6
Pin 1-2
No Connect (user can select an available port)
JP7
Microchip Technology Inc. • 2355 West Chandler Blvd. • Chandler, AZ 85224-6199
www.microchip.com
Position
JP1
Pin 2-3 (Default)
Chip Select (CS) signal connected to RB3
Pin 1-2
User can use RA5 as Shutdown (SHDN) signal for MCP1253
Pin 2-3 (Default)
Shutdown disabled (connected to VCC)
Firmware
USB mass storage examples can be downloaded from http://www.microchip.com/usb. USB products will require a
vendor ID and product ID. For more information, consult Application Note, AN1189 (DS01189). Application Note,
AN1045 (DS01045), provides a method for interfacing directly to SD cards formatted with a FAT file system. It can be
downloaded from:
http://www.microchip.com/Stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en532040
PICtail™ Daughter Board for SD™ and MMC Cards
Board Schematic
J4
R11
RE2
RE2
RE3
MCLR
RA7
OSC1
RA6
OSC2
RC7
RC7
RC6
RC6
RB7
RB7
RB6
RB6
RB5
RB5
RB4
RB4
RB3
RB3
RB2
RB2
RB1
RB1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
RB0
RA5
RA5
RA4
RA4
RA3
RA3
RC5
RC5
RC4
RC4
RC3
RC3
RA0
RA0
PICtail™ Daughter Board
8 - 14 - 18 - 20 - 28 pins
40 - 44 pins
.15in
12
11
+3.3V
13
U1:D
CS
2
3
1
U1:A
SDO
RA1
RA1
RA2
RA2
RC0
RC0
RC1
RC1
RC2
RC2
VCC
VPIC (+5V)
SCK
RD1
RD3
RD3
RD5
RD5
RD7
RD7
RE1
RE1
2
3
4
5
6
7
8
9
10
11
12
RD0
RD0
RD2
RD2
U1:B
9
8
10
U1:C
C3
R2
10K
10K 10K 10K 10K
R3
R5
.01 MF
CS_
SDO_
SDI
WD
RD4
RD4
RD6
RD6
RE0
RE0
VCC
VPIC (+5V)
3
2
U2:A
1
6
5
D1
Activity
J1
J1A
CS_
Cut to
measure
current
SDO_
SCK_
SCK_
28
1
6
4
180 ê
R4
R1
+3.3V
CD
RD1
5
+3.3V
U1 powered
by +3.3V
SDI_
SDI_
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
CD_
10
U2:B
4
8
9
U2:C
10
11
12
U2:D
13
CD_
WD_
WD_
10
11
11
12
12
U2 powered
by VCC
VCC
J10
Bottom
RB2/RG9
JP4
JP1
PIC18-EXP RC3
SCK
FS-USB
RB1
1
1
2
CD
3
RB4
2
SDI
FS-USB
RB0
SDO
FS-USB
RC7
SCK
RF7/RG7
SDI
RF8/RG8
JP5
RB3/RA9
1
1
2
2
RE9/RA15
3
RD14/RF12
WD
3
RA4
NC
+3.3V
JP6
+5V
+9V
1
1
2
2
RG0/NC
3
RG1/NC
3
CS
RB3
SDO
RB0/RB8
JP3
PIC18-EXP RC5
RF6/RG6
3
JP2
PIC18-EXP RC4
NC
NC
VCC
Top
J2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
RF2/RF4
+3.3V
JP7
1
RF3/RF5
2
RG2/RA2
3
RG3/RA3
U3
RA5
1
2
CS
RB1/RB9
RB4/RA10
VCC
R9
10K
RE8/RA14
3
4
C2
10 MF
PGOOD SELECT
VOUT
SHDN
VIN
C+
GND
C-
MCP1253
C5
10 MF
8
R12
180 ê
7
6
5
D2
C4
1 MF
RD15/RF13
VCC
+3.3V
+5V
+9V
CD
RF0/RG0
WD
RF1/RG1
Card edge connector
DS51583B