49 Threads found on edaboard.com: Fat Read Write
I'm not sure if this has been asked before. I've tried interfacing a SD Card to a microcontroller with a very fast read/write cycle (i'm writing data every second). After days of continuous run, I noticed that the performance degrades. My question is, is fat the only available format for writing to SD Cards using a (...)
Microcontrollers :: 04.12.2012 08:21 :: ryan_13 :: Replies: 0 :: Views: 99
Hi Have a small question about SD cards, if anyone has worked with those...
I have written code to read write the card and a small fat system is implemented.
I have no problem reading the cards and I can in almost all cases write to them as well. But in some rare ocations when I remove the card during (...)
PC Programming and Interfacing :: 08.12.2004 18:31 :: aslm :: Replies: 1 :: Views: 1017
i want make my own USB mass storage,my plan is :AT89C51+PIDUBSD12+RS-MMC card,the question is :
how could the C51 R/W the RS-MMC card??what's the defination of the PINS of RS-MMC card,there are 13 pins of my RS-MMC card.
Any advices for me ???
another question:Do the fat file system already exists on the RS-MMC card,becasue when i insert m
Electronic Elementary Questions :: 15.09.2006 02:11 :: ZengLei :: Replies: 0 :: Views: 517
Has any one used the Tiny fat file system library from:
In the documentation it says that the low level I/O functions must be provided by the user. I want to implement this file system on ATMEGA32 microcontroller interfaced with a 32MB mmc card. I have already written routines which read/write dat
Microcontrollers :: 29.07.2007 14:36 :: ibrahim03 :: Replies: 0 :: Views: 1626
i want to connect Compact Flash to a FPGA (SpartanIIE). , read & write, without fat configuration.
read & write only for storage big DATA.
can anybody help me ?
(i want VHDL code :idea:)
PLD, SPLD, GAL, CPLD, FPGA Design :: 09.06.2008 03:21 :: eelinker :: Replies: 7 :: Views: 2572
Well, what I know about SD card thing is, if you are using a file system in SD card, then it couldbe a much more complex project for you. For example, you format SD card in windows with fat format and copied a text file, and if you are to read that, then you should know the file system to read data. What you have said so far is believed to (...)
PLD, SPLD, GAL, CPLD, FPGA Design :: 10.02.2012 04:22 :: xtcx :: Replies: 12 :: Views: 462
can I use AT89LV55 for reading SD card ? Is the internal RAM enough ? internal RAM = 256 Bytes
You should be able to read and write some data, implementing any kind of file system with write capability is effectively impossible under this conditions, because you can't write smaller entities than a 512 Byte (...)
Microcontrollers :: 03.04.2012 06:44 :: FvM :: Replies: 18 :: Views: 1126
fat32 is a fat32 file system driver for Windows NT 4.0. Once installed, any fat32 drives present on your system will be fully accessible as native Windows NT volumes.
Recommended fat32 Configuration
Do not convert your first partition, or your NT boot partition (the one with \winnt on it), to fat32 as (...)
Software Problems, Hints and Reviews :: 09.02.2003 04:35 :: dainis :: Replies: 11 :: Views: 3228
What i am doing is make a connection a MCU between a fat32 file system HD by ATA-3 interface.
I have read some spec but still confused...
(1)I know there are 2 different addressing mode for HD : CHS and LBA
If there's no PC BIOS restriction , is it with no addressing limit(max volume is C*H*S*512) ?
or just 28 bit LBA-> (2^28)*512 ???
Microcontrollers :: 18.08.2004 23:02 :: okeyla :: Replies: 1 :: Views: 659
You can use Paragon Ext2FS Anywhere
"...Install this utility and your Ext2FS and Ext3FS volumes will become usual drives, like C: or D: drives. All data on these Linux partitions will become accessible for you, for operating system and for any application under Windows.
You can read or change any file, or even create new file
Linux Software :: 27.10.2004 17:28 :: aekn :: Replies: 5 :: Views: 953
Look Seite enth舁t Teori ?er Dateisystem fat16
Praktische Anwendung erfolgt bei einer 64MB MMC-Speicherkarte mit einem PIC-Mikrocontroller von Microchip ( PIC16F877 ) ?er SPI-Interface
Microcontrollers :: 04.12.2004 11:34 :: motopiza :: Replies: 3 :: Views: 2865
the main file system is ext2/ext3 but you can use reiserfs in case you need high performance (with less reliability).
Anyway you can read any NTFS filesystem (write is not suggested so far), and read/write any fat, HFS, ISO filesystem.
Linux Software :: 22.03.2005 08:51 :: axel__17 :: Replies: 4 :: Views: 554
You can do read / write by sending the LBA of sector (Page) through the protocol which the Flash media can understand . For CFC flash spec can be downloaded from , which follows ATA protocol .
For the fat concepts see the below link for basics ,
ASIC Design Methodologies and Tools (Digital) :: 13.04.2005 08:50 :: chandhramohan :: Replies: 7 :: Views: 1651
I need to design a "bridge", that is a circuit that let us read/write standard USB memories (I mean pen-memories or similar, the ones that we buy everywhere to use with the PC) from an embedded microcontroller, in a manner that makes them accessible by a PC (fat/NTFS). This bridge is probably composed by a microcontroller with (...)
Embedded Systems and Real-Time OS :: 23.05.2005 03:26 :: Andrea :: Replies: 9 :: Views: 1679
What is File system?
are you using Windows,unix,Linux...
if windows, you should preferrence fat structure (MMC use fat 16)
and winhex software for explore MMC with General Card reader
Microcontrollers :: 25.10.2005 21:34 :: conkhicon :: Replies: 6 :: Views: 1003
Writing your own fat file system is going to be very tough if not impossible. I suggest that you get some readymade fat file system and port it for your application. There are many references in this forum on where to get the fat file system.
Microcontrollers :: 12.02.2006 09:19 :: techie :: Replies: 13 :: Views: 9139
we have doing some project reading text file from MMC, in order to save file on MMC we used fat 16 then we developt driver (software) for fat 16. we succesfull reading text file saved on MMC
Microcontrollers :: 15.09.2006 22:49 :: e_eja :: Replies: 17 :: Views: 3682
Application note AN282 from Silabs:
The USB Mass Storage and CF/MMC/SD Reference Design Kit includes everything necessary to implement a fat16 file system using a SD, MMC, or CF memory card on your Silicon Labs MCU. In addition, it provid
Microcontrollers :: 13.02.2007 05:03 :: cristianp :: Replies: 2 :: Views: 3160
Of course you can. You can interface MMC/SD with SPI interface and then read/write raw data on it. If you need to create/read/write using files you need to implement fat filesystem.
Embedded Systems and Real-Time OS :: 24.05.2007 00:36 :: photonix :: Replies: 8 :: Views: 1720
i build project that read data from the MMC but the main problem that the address of the first block to be read must be the first address of sector N*512 although the address in the write command it can be address of any byte
i use pic16f877 in assembly lang and i successful to :
1- initializing the MMC
2- set block length as 32 (...)
Microcontrollers :: 01.10.2007 12:58 :: faiflay :: Replies: 1 :: Views: 430
this is a codvision code program for fat16 or fat32 on AVR microcontroller.read readME.TXT file for any AVR.I tested on MEGA16 with 16MHZ crystal.enjoy it
Please help me how can I write in existing "TXT" file.
"Vaghean kar dorosti ---> lotfan komakam kon :D "
Microcontrollers :: 09.09.2009 17:59 :: Hamed.H :: Replies: 6 :: Views: 7950
hi, in my experience, sometime we don't have to using fat, if the data only use in our embedded system we can create our own file system (instead you want to read it also by PC).
try this links for tutorial
Microcontrollers :: 30.12.2008 19:14 :: dian :: Replies: 2 :: Views: 1041
another fat file system:
Microcontrollers :: 27.06.2009 07:27 :: M!k :: Replies: 5 :: Views: 3142
Please suggest me about coppying micro SD card thru microcontroller based stand alone hardware
I have recently completed a succesfull project with LPC2148, philips ARM.
This microcontroller gives you a great platform to have a Mass Storage Micro SD over USB and also you can drive the uSD inside the microcontroller with F
Microcontrollers :: 25.03.2010 13:24 :: Integrated :: Replies: 5 :: Views: 2186
You should also have knowledge about file systems such as fat.
Microcontrollers :: 06.09.2010 01:56 :: srikanthsamaga :: Replies: 2 :: Views: 1508
Maybe these can help to understand how to use an MMC
MMC/SD Card and fat Tutorial
Use an SD or MMC card on your next AVR project |
reading and writi
Microcontrollers :: 09.03.2011 02:43 :: alexan_e :: Replies: 4 :: Views: 5361
I am using MDD Library for PIC24F interfacing with SD CARD 2GB ScanDisk.
I have not required any file system (like fat).
So I have filtered out Simple MDD routine for using SDCARD as simple Memory as below:
char sendBuffer = "CHECK";
char sendBuffer1 = "123456";
char sendBuffer2 = "ABCDEF";
Embedded Systems and Real-Time OS :: 20.03.2011 14:12 :: karan123 :: Replies: 0 :: Views: 1210
The mimimum block size is always going to be 512 bytes. Use a pin compatible 18F device or use 2 arrays of 256 bytes.
The Flowcode fat driver uses 2 x 256 byte arrays to get around this problem.
Microcontrollers :: 09.05.2011 09:27 :: assasinsareus :: Replies: 2 :: Views: 883
how to write data to an MMC without any filesystem ? (i mean i want to store some raw data to MMC from PC. Data should be stored from the first memory location. Then i could read it using a PIC microcontroller which doesnt have code to read a filesystem like fat. What i am supposed to do is, i want to store some data from pc (...)
Software Requests :: 24.05.2011 12:39 :: vinodstanur :: Replies: 3 :: Views: 57
Could anyone please let me know how we can write and read micro SD card without using filesystem. I want to write and read micro SD card in the same way as we do for external flash (using SPI).
Waiting for a reply.
Microcontrollers :: 04.11.2012 03:43 :: Embedded_Geek :: Replies: 1 :: Views: 209
You need to make 2 parts:
1. An SD card driver. This allows you to write raw data anywhere on your card.
2. Once you managed to develop an SD card driver, you need a fat file system
(I suppose that you are going to use fat format to write your SD card with a PC and
read it with you MCU, right?
Microcontrollers :: 01.03.2013 03:21 :: doraemon :: Replies: 2 :: Views: 179
Look Ethernu Cool IDE diskdrive and Compact Flash interface done by Michael Fischer. Supports fat32 with long filenames
PC Programming and Interfacing :: 03.02.2003 03:49 :: dainis :: Replies: 17 :: Views: 4742
I dont know if you want to use a ready made file system than using this long code. If you do then Petit fat file system is a good option usage :
the example reads 512 bytes from a sector and dumps it to hyper terminal.
Microcontrollers :: 14.07.2010 04:34 :: spiralbrain :: Replies: 4 :: Views: 17042
There's a fat16 implemention for CCS at the link below. Never tried though:
Microcontrollers :: 06.02.2007 17:20 :: ric_vas :: Replies: 2 :: Views: 2003
I am interfacing MMC card with LPC2148 SPI based . I have one application note from NXP which
shows how to interface SD /MMC (512 MB) card using SPI for fat16.
using that code i am able to write & read data . So i am able to read data from (Sector 0- Boot
sector , Sector 6 - fat table sector (...)
Microcontrollers :: 31.07.2007 07:26 :: patrikshah :: Replies: 0 :: Views: 782
Microchip application note AN1045 contains information and source code to intrface one of their 16 bit micros, pic30, pic33, pic24 to a fat16 or fat32 disc I/O system. The note is for interfacing to a memory card, but Im sure the informationwill be usefull.
Microcontrollers :: 06.07.2008 04:11 :: btbass :: Replies: 3 :: Views: 1054
Data is always stored in binary format. If an XML file is written to the card it still in a binary format. It is the upper software layers that interpret the data into another format. You wrote an "8" and it was stored as "00001000". If you want the ASCII value of the number eight, you have to store hex "38" or binary "00111000". It is the upp
Hobby Circuits and Small Projects Problems :: 12.06.2009 08:11 :: banjo :: Replies: 21 :: Views: 7842
if you need to interact with 'files' already on mmc you will need also a fat File system...
any way, i like very much the mmc drives on examples of fatFs from CHAN:
where you can get a port for AVR...
Microcontrollers :: 15.08.2010 02:28 :: Kurenai_ryu :: Replies: 2 :: Views: 460
well, how much memory do you want?
maybe a serial eeprom (24Cxxx) or serial Flash(SST25VF016B for 2Mbytes!!!) could be enough for your app....
remember, mmc & SD haw lots of memory (up to GB), but if you want to interact with data already stored there, or want your data accessible on PC, you must implement a fat file system... if not... well,
Microcontrollers :: 10.08.2010 00:03 :: Kurenai_ryu :: Replies: 2 :: Views: 410
SD card and MMC have a little difference in working and between them.....
ELM - How to Use MMC/SDC
MMC/SD Card and fat Tutorial
---------- Post added at 20:32 ---------- Previous post was at 20:27 ----------
Microcontrollers :: 01.01.2011 10:02 :: ckshivaram :: Replies: 3 :: Views: 353
Matrix Multimedia do a fat and fat32 driver inside the Flowcode software. This supports PIC, dsPIC, AVR and ARMSAM7S chips. I wrote the component and can provide help if needed.
Microcontrollers :: 09.05.2011 09:25 :: assasinsareus :: Replies: 20 :: Views: 1935
I think these links can help you understand how to use an MMC/SD
MMC/SD Card and fat Tutorial
Use an SD or MMC card on your next AVR project |
Microcontrollers :: 10.05.2011 08:22 :: alexan_e :: Replies: 2 :: Views: 1326
The main problem is RAM in PIC16F877A. Generally, u need RAM of above 512 bytes for efficient fat file system access. Better solution is go for PIC18F series.
I had done a digital voice recorder and play back system with MMC and PIC16F877A but it doesn't have any file system. It just write and read from (...)
Microcontrollers :: 09.06.2011 05:26 :: vinodstanur :: Replies: 5 :: Views: 6656
hmm yes horace1 is right its the best way to do it. Use like PIC18f4553 and interface USB to communicate with PC and you can use ISP interface for SIMD card have fat on it so you can read and write your data on it.
Digital Signal Processing :: 23.06.2011 13:18 :: smraise :: Replies: 6 :: Views: 419
Flowcode has an inbuilt fat component that allows you to read and write to fat16 and fat32 file systems on a memory card, MMC or SD using PIC, AVR or ARMSAM7S devices.
Microcontrollers :: 12.07.2011 13:47 :: assasinsareus :: Replies: 2 :: Views: 410
I have a question about this tutorial. I want to connect mmc card to Atmega128 and i have some problems. I did everything like in this tutorial: MMC/SD Card and fat Tutorial
, but when i put my mmc card to PC reader it's blank (the file wasn't created). Please help me with these librari
Microcontrollers :: 21.07.2011 05:16 :: buka86 :: Replies: 1 :: Views: 743
I expect the same clock speed offered in SD mode also available for SPI.
The memory controller is embedded in the SD card. You can access the storage using logical sectors similar to a hard disk drive. Apart from managing the SD card specific communication protocol, you mainly need to implement a fat32 file system. To store raw data, you can po
PLD, SPLD, GAL, CPLD, FPGA Design :: 05.12.2011 08:29 :: FvM :: Replies: 10 :: Views: 3530
An memory stick will be installed as mass storage device and handled by the OS file system, unless you block the installation somehow. It's accessible by generic C file functions and additional Windows SDK functions.
What do you want to do with libusb? read raw sectors, decode the boot block and fat to determine the free storage capacity?
Embedded Systems and Real-Time OS :: 23.01.2012 09:02 :: FvM :: Replies: 11 :: Views: 536
I am sorry for post this question again in another forum.
I use the code bellow for atmega128 to read and write to sd card. When i run the code i get the error:
COM1 OK Init OK
Logical drive 0: mounted OK
I used uart to find out that the error is caused by f_open but i can't specify e
Microcontrollers :: 30.12.2012 20:20 :: Osawa_Odessa :: Replies: 2 :: Views: 391