Hello,
This is my 2'nd thread and the first one was succesfuly closed.I have great hopes with this one...
For 3 days i'm struggleing to get done a connection between pic18f4550 and an Panasonic Sd card (16 mb).I have bought from ebay an sd card module for this.
The problem is that my pic is dies when i call any function from mmc library, excepting SPI1_Init_Advanced() or Spi1_Init().
I have connected the pic to sd card module in this way:
CS->RB2.
MOSI->RB0,
SCK->RB1,
MISO->RC7.
This is strange becouse i can't even debug it.
The purpose is to write a txt file with some content in it.And for that i have used the code from this example: http://www.mikroe.com/download/eng/documents/compilers/mikroc/pro/pic/help/mmc_library.htm
What can be the problem?...My compiler?...my libraryes?..If u have another simple code in order to do this i will be happy do test it.Thanks
Below is my "work":
This is my 2'nd thread and the first one was succesfuly closed.I have great hopes with this one...
For 3 days i'm struggleing to get done a connection between pic18f4550 and an Panasonic Sd card (16 mb).I have bought from ebay an sd card module for this.
The problem is that my pic is dies when i call any function from mmc library, excepting SPI1_Init_Advanced() or Spi1_Init().
I have connected the pic to sd card module in this way:
CS->RB2.
MOSI->RB0,
SCK->RB1,
MISO->RC7.
This is strange becouse i can't even debug it.
The purpose is to write a txt file with some content in it.And for that i have used the code from this example: http://www.mikroe.com/download/eng/documents/compilers/mikroc/pro/pic/help/mmc_library.htm
What can be the problem?...My compiler?...my libraryes?..If u have another simple code in order to do this i will be happy do test it.Thanks
Below is my "work":
Last edited: