On Sun, 29 Oct 2006 17:12:11 +0000, Paul Taylor wrote:
> efsl is a general library for mmc + fat. You may find that ATMega16
> doesn't have enough space for the library though. I have played around a
> little with efsl (not on avr) and it compiled to more than 16K for read
> and write (can't remember exactly what size now). If you are interested in
> using efsl as is, you might want to look/post their forum.
MMC cards are written to in 512 byte chunks (iirc, could be more for
largest cards). efsl need a couple of hundred bytes or so on top of this.
Again, check their forum. Your 1K ram starts to look a bit tight.
Regards,
Paul.
Reply by Paul Taylor●October 29, 20062006-10-29
On Fri, 27 Oct 2006 14:42:27 -0700, techie.embedded@gmail.com wrote:
> Hi
>
> Can someone lead me to some tutorial or some sample codes to write data
> into my MMC, read & display onto LCD. I'm using an ATMega16 MCU & my
> compiler is WinAVR.
>
> thanks heaps.
>
> techie.
http://sourceforge.net/projects/efsl/
efsl is a general library for mmc + fat. You may find that ATMega16
doesn't have enough space for the library though. I have played around a
little with efsl (not on avr) and it compiled to more than 16K for read
and write (can't remember exactly what size now). If you are interested in
using efsl as is, you might want to look/post their forum.
Otherwise, you could just take out the bits of efsl that you need.
Although, if you want to do *general* read + write, that might not be very
much!
To get the size down, you would need to be pretty specific about how the
card is formatted, and which sectors you use to read/write files. In
which case, efsl could serve as your starting point, along with a good MMC
data sheet, and some good information on FAT (use google).
Regards,
Paul.
Reply by Don McKenzie●October 28, 20062006-10-28
techie.embedded@gmail.com wrote:
> Hi
>
> Can someone lead me to some tutorial or some sample codes to write data
> into my MMC, read & display onto LCD. I'm using an ATMega16 MCU & my
> compiler is WinAVR.
>
> thanks heaps.
>
> techie.
Reply by martin griffith●October 28, 20062006-10-28
On 27 Oct 2006 14:42:27 -0700, in comp.arch.embedded
"techie.embedded@gmail.com" <techie.embedded@gmail.com> wrote:
>Hi
>
>Can someone lead me to some tutorial or some sample codes to write data
>into my MMC, read & display onto LCD. I'm using an ATMega16 MCU & my
>compiler is WinAVR.
>
>thanks heaps.
>
>techie.
try avrfreaks.net they have quite a few projects
martin
Reply by tech...@gmail.com●October 28, 20062006-10-28
hi
well, the MMC card i have is already a FAT File system..
Is it possible to write / read some RAW data into MMC card ???
If so, how to read the raw data that has been written onto the MMC ???
I want to read & write into the MMC through My ATMega16 MCU...
My issue here is to figure out wat are the steps involved in
intializing reading & writing to MMC.. Does someone have an Algorithm
or a Pseudo Code handy???
thanks again
techie82
Donald wrote:
> techie.embedded@gmail.com wrote:
> > Hi
> >
> > Can someone lead me to some tutorial or some sample codes to write data
> > into my MMC, read & display onto LCD. I'm using an ATMega16 MCU & my
> > compiler is WinAVR.
> >
> > thanks heaps.
> >
> > techie.
> >
> Will the MMC card be read/written by a DOS/WIN system ??
>
> Reading and writing is easy, getting a FAT16/32 partition is not.
>
> There are lots of AVR -> FATxx code out there.
>
> Google AVR+FAT16 will find lots.
>
> Good Luck
>
> Donald
Reply by Donald●October 27, 20062006-10-27
techie.embedded@gmail.com wrote:
> Hi
>
> Can someone lead me to some tutorial or some sample codes to write data
> into my MMC, read & display onto LCD. I'm using an ATMega16 MCU & my
> compiler is WinAVR.
>
> thanks heaps.
>
> techie.
>
Will the MMC card be read/written by a DOS/WIN system ??
Reading and writing is easy, getting a FAT16/32 partition is not.
There are lots of AVR -> FATxx code out there.
Google AVR+FAT16 will find lots.
Good Luck
Donald
Reply by tech...@gmail.com●October 27, 20062006-10-27
Hi
Can someone lead me to some tutorial or some sample codes to write data
into my MMC, read & display onto LCD. I'm using an ATMega16 MCU & my
compiler is WinAVR.
thanks heaps.
techie.