Step 1: Start up Filesystem
MMC.c
MMC.h
ThinFAT.c
ThinFAT.h
#include "mmc.h"
#include "ThinFAT.h"
then you have to edit the MMC.h file at the beginning where you want your card select port to be:
//card select currently set to P2.7
#define SD_CSn_PxOUT P2OUT
#define SD_CSn_PxDIR P2DIR
#define SD_CSn_PIN BIT7
Wireing:
P1.2 - TA0.1 - Left Channel Out
P1.3 - Input for Playing and Changing Music File
P1.4 - TA0.2 - Right Channel Out
P1.5 - SMCLK out - SD Card Pin 5
P1.6 - SDO - SD Card Pin 2 MOSI
P1.7 - SDA - SD Card Pin 7 MISO
P2.7 - CS - SD Card Pin 1 Card Select
VCC - SD Card Pin 3,6
Ground - SD Card Pin 4
Next you initilise the FAT file system and the SD card for reading:
ThinFAT_Init();
SD Media Player.zip181 KB




















Remove these ads by













Visit Our Store »
Go Pro Today »




My compiler cannot find the declarions of USISRL and USICNT ... where can i find the file with those variables?
Thx
Fávero
I am wondering if you were able to get a read/write system working? Or perhaps just a write?
Thanks in advance!
and the FAT file system.. where i do that?? sorry, but i'm REALLY new in this.... i'm lost.
Hey, it's a great project that i want to reproduce... of course, if you let me jeje
on your microcontoller you'll have pins that you can wire to different things and they all have names. this is just the lables for what they go to in this programmed example. you should look up how SPI works, it'll be a good start to understanding how this works. also SD cards have the same voltage tolerances (excluding micro) as the MSP430.
Helps people like me who are learning about the msp430 in their spare time.
Will be trying this very soon. Built my own sdcard holder yesterday after reading this.
Thanks again. :)