CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Need help with the MMC code
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Litoman
Guest







PostPosted: Thu Oct 06, 2005 9:04 am     Reply with quote

Only try this with your 1º code
SETUP_SPI(SPI_MASTER | SPI_CLK_DIV_16 | SPI_H_TO_L |SPI_XMIT_L_TO_H );
Guest








PostPosted: Wed Dec 28, 2005 7:43 am     Reply with quote

EdWaugh wrote:
Hi,

Yea your totally right the 16f877 doesn't have enough memory for this code. In the past I've used a 256kbit eeprom on the I2C bus with a 16f876 to solve this problem. I think my code for that is next to this code on the website. Thats all fine as long as you don't want to do anything really fast, you could get an FRAM I guess www.ramtron.com. I expect you'll always need this much temporary storage tho as I think the minimum block size is 512bytes and I'm not sure you can do the fragment writing in spi mode but I haven't really had a close look at it.

ed
Guest








PostPosted: Wed Dec 28, 2005 7:43 am     Reply with quote

EdWaugh wrote:
Hi,

Yea your totally right the 16f877 doesn't have enough memory for this code. In the past I've used a 256kbit eeprom on the I2C bus with a 16f876 to solve this problem. I think my code for that is next to this code on the website. Thats all fine as long as you don't want to do anything really fast, you could get an FRAM I guess www.ramtron.com. I expect you'll always need this much temporary storage tho as I think the minimum block size is 512bytes and I'm not sure you can do the fragment writing in spi mode but I haven't really had a close look at it.

ed
thewonderyears
Guest







MMC driver
PostPosted: Mon Jan 02, 2006 7:18 am     Reply with quote

Hello all,
I've tried the same code with the 16f876 and it works beautifully with the 32MB card. but I need some thing for 18F6720. It might be something to do with 16f876 supporting not all (4 SPI) modes and 18f6720 that does support all the modes. Need help quick.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

Re: MMC driver
PostPosted: Mon Jan 02, 2006 8:40 am     Reply with quote

thewonderyears wrote:
Hello all,
I've tried the same code with the 16f876 and it works beautifully with the 32MB card. but I need some thing for 18F6720. It might be something to do with 16f876 supporting not all (4 SPI) modes and 18f6720 that does support all the modes. Need help quick.
Can you be more specific about your problem? Post your program code. What do you see and how is this different from what you expect? Which compiler version are you using? etc, etc, ....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group