| View previous topic :: View next topic |
| Author |
Message |
Litoman Guest
|
|
Posted: Thu Oct 06, 2005 9:04 am |
|
|
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
|
|
Posted: Wed Dec 28, 2005 7:43 am |
|
|
| 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
|
|
Posted: Wed Dec 28, 2005 7:43 am |
|
|
| 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 |
Posted: Mon Jan 02, 2006 7:18 am |
|
|
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
|
| Re: MMC driver |
Posted: Mon Jan 02, 2006 8:40 am |
|
|
| 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, .... |
|
 |
|