+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Member level 1
    Points: 922, Level: 6

    Join Date
    Jul 2011
    Posts
    41
    Helped
    0 / 0
    Points
    922
    Level
    6

    18f452 with mikrosd card

    I use MikroC Pro and PICKit2. Can anybody tell me how to do this
    for (i=0; i<16;i++){
    save (i) in mmc card
    }
    and also read saved data when necessory.
    thanks

    •   AltAdvertisment

        
       

  2. #2
    Administrator
    Points: 69,512, 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
    2355 / 2355
    Points
    69,512
    Level
    64
    Blog Entries
    4

    Re: 18f452 with mikrosd card

    Here is a project which utilizes a SD card and MikroC, however the code require to use a MMC is virtually the same:

    Data Logger

    MikroC provides an array of library routines which greatly simplifies the coding required.

    Take a look under the libraries tab on the MikroC page.

    MMC Library and MMC FAT16 Library

    BigDog



    •   AltAdvertisment

        
       

  3. #3
    Member level 1
    Points: 922, Level: 6

    Join Date
    Jul 2011
    Posts
    41
    Helped
    0 / 0
    Points
    922
    Level
    6

    Re: 18f452 with mikrosd card

    I already see the library in mikroc pro. But i'm new for programming. Can just say code sample.



    •   AltAdvertisment

        
       

  4. #4
    Administrator
    Points: 69,512, 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
    2355 / 2355
    Points
    69,512
    Level
    64
    Blog Entries
    4

    Re: 18f452 with mikrosd card

    Quote Originally Posted by buddhikaneel View Post
    I already see the library in mikroc pro. But i'm new for programming. Can just say code sample.
    No problem. The Data Logger project should get you started in the right direction. However, you need to be aware that MMC and SD cards are 3.3v not 5v. Therefore you'll either need to find a breakout board with a 3.3v voltage regulator or build your own. They both use a SPI interface.

    BigDog



  5. #5
    Member level 1
    Points: 922, Level: 6

    Join Date
    Jul 2011
    Posts
    41
    Helped
    0 / 0
    Points
    922
    Level
    6

    Re: 18f452 with mikrosd card

    Thank you very much for your post and what kind of regulator can i read. Is there regulator like 7805?



    •   AltAdvertisment

        
       

  6. #6
    Administrator
    Points: 69,512, 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
    2355 / 2355
    Points
    69,512
    Level
    64
    Blog Entries
    4

    Re: 18f452 with mikrosd card

    Yes.

    This package is a little overkill for your requirements, but it will work:

    Voltage Regulator - 3.3V

    I prefer using a breakout board like these for my prototypes:

    SD/MMC Card Adapter

    MicroSD Card Adapter

    The regulator is onboard, all you do is hook them up correctly and go.

    BigDog


    1 members found this post helpful.

--[[ ]]--