yann75
Newbie level 3
- Joined
- Jun 11, 2014
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 19
hi guys :-o
my project is recording data in sd card, i have create a file for testing, but after simulation the probleme that i can't store more than 10 lines. any one have an idea on how to increase the size of the file :smile: or i have to use the sectors !!!!
this is just a test
this is just a test
this is just a test
.
.
.
.
.
this is just a test // 10 times
Code:
sbit Mmc_Chip_Select at LATA5_bit;
sbit Mmc_Chip_Select_Direction at TRISA5_bit;
void cr_dosier ()
{
unsigned int size;
unsigned short caract, i;
Mmc_Fat_Set_File_Date(2014, 08, 06, 15, 20, 30);
Mmc_Fat_Assign("test.TXT", 0x80); // Find existing file or create a new one
Mmc_Fat_append();
Mmc_Fat_Write(" this is just a test ", 21);
Mmc_Fat_Write("\r\n",2);
Mmc_Fat_reset(&size);
for (i=0; i < size; i++)
{
Mmc_Fat_read(&caract);
UART1_Write(caract);
}
UART1_Write(13);
}
void main()
{
while(1)
{
cr_dosier();
}
}
this is just a test
this is just a test
this is just a test
.
.
.
.
.
this is just a test // 10 times
Last edited by a moderator: