Hi All ...
what i need ....
I use PIC18f4520 // 8Mhz
Compiler : Mikroc Pro ..
1- reading collecting data from UART until we found "10" (New Line) then take this data to write it to SD card .. then reset the array to wait for new data ..... the data length not fix . it change fro 1-20.
Note ::: I Write a code for this ... but it write scramble data in SD card , but when I write normal data to SD card .. it write it fine .. the code will be available in attachment ..
2- Second Requirement :: compare the data in SD card
Let say i have 2 file in SD card (txt format)
the first one have this data .. txt1
the second one have :: txt2
what i need to compare the data in txt2 file with txt1 file ..... that mean
take the first value from the first line in txt2 thin chick it with the txt1 if it is have this value , if it is have match go to next value in second line in txt2 and chick it .. etc.
if no match found for example "1" in txt2 there are no match for it ... the function should return this value
no_match = 1; //default will be 0;
line number =2; // line number in txt2
data_notmatch = 1; // value of the new data which it is not match with txt1 ..
please note this is limited budget project ... any question please ask ..