+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 2
    Points: 20, Level: 1

    Join Date
    Mar 2013
    Posts
    2
    Helped
    0 / 0
    Points
    20
    Level
    1

    Interfacing SD card with 18F4520 using MikroC

    Hi,

    I am having trouble getting MMC initialised using mmc_fat_init() function. Initialisation fails due to an unknown reason.
    I tried simulating it in Proteus and used LEDs to check if MMC is getting initialised. I am attaching the program config settings and ISIS file.
    Actually I have edited the library example to include LEDs for debugging, and removed UART commands.
    My logic is that LEDs D3, D4 turns off if MMC is initialised successfully otherwise D1 goes off
    All suggestions are welcome.
    Thanks in advance
    Regards,

    SreerajMMC_TEST.rar

    - - - Updated - - -

    Hi,
    Hereby I am attaching the screenshots of my config settings.
    Click image for larger version. 

Name:	config_page.png 
Views:	19 
Size:	77.2 KB 
ID:	87843Click image for larger version. 

Name:	config_page1.png 
Views:	12 
Size:	77.8 KB 
ID:	87844Click image for larger version. 

Name:	config_page2.png 
Views:	10 
Size:	77.0 KB 
ID:	87845Click image for larger version. 

Name:	config_page3.png 
Views:	10 
Size:	77.9 KB 
ID:	87846

    •   AltAdvertisment

        
       

  2. #2
    Full Member level 5
    Points: 2,560, Level: 11
    Achievements:
    Created Blog entry 7 years registered

    Join Date
    Sep 2010
    Location
    Islamabad Pakistan
    Posts
    284
    Helped
    28 / 28
    Points
    2,560
    Level
    11
    Blog Entries
    1

    Re: Interfacing SD card with 18F4520 using MikroC

    read "ADVANCED PIC MICROCNTROLLER PROJECTS" BY DOGHAN IBRAHIM for complete help and examples.



    •   AltAdvertisment

        
       

  3. #3
    Banned
    Points: 23,048, Level: 36

    Join Date
    Dec 2012
    Location
    Bangalore, India
    Posts
    4,294
    Helped
    830 / 830
    Points
    23,048
    Level
    36

    Re: Interfacing SD card with 18F4520 using MikroC

    See MMC circuit in this project. https://www.edaboard.com/thread271146.html

    If you use that circuit for simulation it will work. What error are you getting. Post the error message. How did you create mmc image file? Post your mmc image file so that we can simulate.



--[[ ]]--