Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Can read all MMC card data ????? Mikroc Pro

Status
Not open for further replies.

zenpar

Newbie level 3
Joined
Jun 8, 2012
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,311
Hi all ,
i have this code with array of 600 the max , i have only 1% of the ram left .. 99% for the ram has been used for array

this my code ..

Code: Select all
Code:
unsigned int  M_File_Compare(){
unsigned long  i, size;
char  file1[]="" ;
 char character;
  Mmc_Fat_Assign("TEST.txt", 0);
  Mmc_Fat_Reset(&size);            // To read file, procedure returns size of file
  for (i = 1; i <= size; i++) {
    Mmc_Fat_Read(&character);
    file1[i] = character ;
    UART1_Write(file1[i]);
  }
}



now i have like this in txt file for about 70 lines , it stop in line 62 or 63 depend on the data ,

the data look like ..

Code: Select all
Code:
1234
155512
1234
2344
4134
2525456
12356
2432
2542
234234
.
.
.
.
43151

please advice where is the problem i use PIC18f45k22.. is it a ram ? please if it is ram how i can over come this issue.
I need to chick each in the line , for this why i need to store it in
Code:
file1[i]
but if i Write it to UART direct without store it in file1 it work fine !! any hint please ..
regards for all
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top