+ Post New Thread
Results 1 to 10 of 10
  1. #1
    Newbie level 4
    Points: 99, Level: 1

    Join Date
    Jul 2012
    Posts
    5
    Helped
    0 / 0
    Points
    99
    Level
    1

    listing program SD Card to use with ATMega8

    can i get some reference for listing program in CodeVision AVR for using SD Card with my microcontroller module in SPI mode or not.
    i use ATMega8 with SMD type.
    cause i'm newbie in progamming.
    thanks.

    •   Alt6th July 2012, 03:25

      advertising

        
       

  2. #2
    Administrator
    Points: 69,157, Level: 64
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    9,832
    Helped
    2352 / 2352
    Points
    69,157
    Level
    64
    Blog Entries
    4

    Re: listing program SD Card to use with ATMega8

    The following is a fairly extensive four part tutorial covering FAT and SD with AVR:

    Simple FAT and SD Tutorial Part 1

    The above tutorial should get you started in the right direction, I believe code for an ATMEGA88 is provided.

    BigDog
    The Edge... there is no honest way to explain it, because the only people who really know where it is are the ones who have gone over.
    -- Hunter S. Thompson


    1 members found this post helpful.

  3. #3
    Newbie level 4
    Points: 99, Level: 1

    Join Date
    Jul 2012
    Posts
    5
    Helped
    0 / 0
    Points
    99
    Level
    1

    Re: listing program SD Card to use with ATMega8

    thanks for the suggest Mr. Big Dog.

    can i ask you some more?
    communication between SD Card and micro is it always use SPI mode?



  4. #4
    Administrator
    Points: 69,157, Level: 64
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    9,832
    Helped
    2352 / 2352
    Points
    69,157
    Level
    64
    Blog Entries
    4

    Re: listing program SD Card to use with ATMega8

    Quote Originally Posted by agankimpoy View Post
    communication between SD Card and micro is it always use SPI mode?
    No, the original SD communications protocol is the SD bus, a 4-bit (nibble) parallel interface. Therefore, there are two methods of establishing communications with an SD card, SD bus and SPI.

    BigDog
    The Edge... there is no honest way to explain it, because the only people who really know where it is are the ones who have gone over.
    -- Hunter S. Thompson



    •   Alt6th July 2012, 04:44

      advertising

        
       

  5. #5
    Banned
    Points: 2,557, Level: 11

    Join Date
    Apr 2009
    Location
    Malaysia
    Posts
    330
    Helped
    98 / 98
    Points
    2,557
    Level
    11

    Re: listing program SD Card to use with ATMega8

    Communication between SD Card with microcontroller can use either SD Bus or SPI. But, I think SPI interface have more documentation on internet rather than SD Bus.



  6. #6
    Newbie level 4
    Points: 99, Level: 1

    Join Date
    Jul 2012
    Posts
    5
    Helped
    0 / 0
    Points
    99
    Level
    1

    Re: listing program SD Card to use with ATMega8

    if i use SPI mode is there need some more additional circuit for that?
    or we just setting in the program?



  7. #7
    Administrator
    Points: 69,157, Level: 64
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    9,832
    Helped
    2352 / 2352
    Points
    69,157
    Level
    64
    Blog Entries
    4

    Re: listing program SD Card to use with ATMega8

    I'm not sure I understand your question.

    You can implement a SD card interface using either hardware or bit-banged SPI.

    Many microcontrollers offer a hardware SPI module, which requires proper initialization.

    You should also be aware that the SD card is a 3.3V device, not 5V, therefore the interface will require 3.3V supply and level shifting for the I/O if the AVR is operating at 5V.

    Does this answer your question?

    BigDog
    The Edge... there is no honest way to explain it, because the only people who really know where it is are the ones who have gone over.
    -- Hunter S. Thompson



  8. #8
    Junior Member level 1
    Points: 219, Level: 2

    Join Date
    Jul 2012
    Location
    Finland
    Posts
    16
    Helped
    1 / 1
    Points
    219
    Level
    2

    Re: listing program SD Card to use with ATMega8

    Just noticed this thread due to pingback to my blog. Agankimpoy, if you're also planning SD card functionality, I also wrote a 4-part SD card tutorial a while ago that might be helpful:

    http://codeandlife.com/2012/04/02/si...torial-part-1/

    Edit: Whoops, just realized the earlier link to my tutorial was exactly this (I somehow thought it was for my V-USB tutorial). Sorry for double posting it.
    Last edited by jokkebk; 7th July 2012 at 13:08.
    Code and Life



  9. #9
    Newbie level 4
    Points: 99, Level: 1

    Join Date
    Jul 2012
    Posts
    5
    Helped
    0 / 0
    Points
    99
    Level
    1

    Re: listing program SD Card to use with ATMega8

    Mr. BigDog : I'm done separately for the supply but now i'm very confuse with source code to connect my micro, SD Card and my module MP3 (I using VS1001E). But thanks for the notice for supply :)

    Jokkebk : okay, i'll try it to look at your blog. thanks :)



    •   Alt7th July 2012, 12:41

      advertising

        
       

  10. #10
    Newbie level 4
    Points: 99, Level: 1

    Join Date
    Jul 2012
    Posts
    5
    Helped
    0 / 0
    Points
    99
    Level
    1

    Re: listing program SD Card to use with ATMega8

    i need reference for listing program in codevision to access EMS SD Card Module with DT-AVR ATMega128 as my microcontroller..
    anyone can help it?
    thanks..
    :)



--[[ ]]--