|
|
View previous topic :: View next topic |
Author |
Message |
radiocode
Joined: 26 Jun 2007 Posts: 4 Location: Chippenham, England, UK
|
|
Posted: Tue Jul 31, 2007 3:43 pm |
|
|
Hi ckielstra,
The FRAM devices I have are all FM24C256 - I2C. I'm fairly new to the CCS compiler, but from what I can see, I can use a software implementation of I2C, and the hardware SPI on the 16F873.
Its more of an experiment with the compiler than a serious development effort. Its a while since I coded on PICs (my background is in RF) and the first time I've used C on something smaller than a PC.
Thanks for the tip on writing blocks to the card - I've learnt something new today.
Lee |
|
|
guest345 Guest
|
|
Posted: Fri Oct 02, 2009 4:32 pm |
|
|
Is there any overwrite function on mmc controller chip?
I have read about that there is an overwrite function but this way is very slow.
Is this right? |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1636 Location: Perth, Australia
|
|
Posted: Fri Oct 02, 2009 5:00 pm |
|
|
There is no such function in the standard specifications and I have not heard of it. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
guest345 Guest
|
|
Posted: Sat Oct 03, 2009 3:55 am |
|
|
asmallri wrote: | There is no such function in the standard specifications and I have not heard of it. |
Thank you very much for your answer, well did you hear any thing about some big cards erase operations need 16kb ram instead of 512byte.
Or this is another different mmc command? |
|
|
guest345 Guest
|
|
Posted: Sat Oct 03, 2009 4:08 am |
|
|
I'm getting trouble with mmc_spi.c file in ccs c driver folder.
Problem is I can't understand how compiler declare "#define MMC_DEBUG(a,b,c,d,e,f,g,h,i,j,k)" as
Code: | typedef enum {
MMC_EC_OK = 0,
MMC_EC_NOT_IDLE = 1,
MMC_EC_NOT_INIT = 2,
MMC_EC_NO_CRC = 3,
MMC_EC_SET_READ_BLOCKSIZE_FAIL = 4,
MMC_EC_SET_WRITE_BLOCKSIZE_FAIL = 5,
MMC_EC_SET_MULTI_BLOCKSIZE_FAIL = 6,
MMC_EC_SET_WRITE_ADDRESS_FAIL = 7,
MMC_EC_BLOCK_NOT_WRITTEN = 8,
MMC_EC_SET_READ_ADDRESS_FAIL = 9,
MMC_EC_ERASE_SECTOR_START_FAIL = 10,
MMC_EC_ERASE_SECTOR_END_FAIL = 11,
MMC_EC_ERASE_SECTORS_FAIL = 12,
MMC_EC_BAD_STATE = 13,
MMC_EC_START_MULTI_READ_FAIL = 14,
MMC_EC_READ_NEXT_BLOCK_FAIL = 15,
MMC_EC_STOP_TRANSMISSION_FAIL = 16,
MMC_EC_WRITE_ALWAYS_BUSY = 17
}MMC_DEBUG; |
When I put mouse icon over MMC_DEBUG, there is a message appears like above.
How is this become, I couldn't find any expression between MMC_DEBUG and enumators. And what is the purpose of this expression ?
"#define MMC_DEBUG(a,b,c,d,e,f,g,h,i,j,k)" |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1636 Location: Perth, Australia
|
|
Posted: Sat Oct 03, 2009 7:33 am |
|
|
guest345 wrote: | asmallri wrote: | There is no such function in the standard specifications and I have not heard of it. |
Thank you very much for your answer, well did you hear any thing about some big cards erase operations need 16kb ram instead of 512byte.
Or this is another different mmc command? |
No however I have tested 8GB cards with 512 byte blocks with no problem. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|
|
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
|