elm-chan.org ata
You misunderstood me,i had connected pin no 2 but forgot to connect the 1.5 k resistor between max3232 and second pin of atmega128.Ya i have checked all the connections and i think max3232 is working all right as i am getting 3.3 v at the rxd and txd p ins of the atmega.
Yes i have just downloaded proteus ,i think it is a simulator can i get some help out of it .
Regarding the code ,when i compiled the code (after making the changes you pointed out ),there were errors in diskio.c.
for example in the diskio.c file there are switch cases to select the memory device.in the disk initialize function it calls the mmc_disk_initialize() but this function is not defined anywhere in the program. have removed many irrevelant files like
ata.c
cfc.c
cfmm.c
diskio.c
main2.c
tff.c
tff.h
After removing these files , I get a code with no errors .
And i was a little unsure about the fuse bit setting , can you can tell which fuse bits to set, are there anything important setting in fuse bits which I have missed.