سلام
من میخوام اطلاعات ازروی کارت SD ا¾ا¾،به وسیله میکروی avr بخونم وازطریق ارتباط سریال اطلاعات موجودرادرترمینال کدویژن ببینم.مشکل من اینه که SD به دستورای ارسالی ازمیکرو جواب درست نمیده.برنامه ای راکه برای شناسایی SD نوشتم اینه.respone آرایه ایست که برای ذخیره جواب SD به فرمان های میکرودرنظرگرفتم.ممنون میشم کسی کمکم کنه.
[pre]spi(0x40);
spi(0x00);
spi(0x00);
spi(0x00);
spi(0x00);
spi(0x95);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
respone[0]=spi(0x77);
respone[1]=spi(0xff);
respone[2]=spi(0xff);
respone[3]=spi(0xff);
respone[4]=spi(0xff);
respone[5]=spi(0xff);
respone[6]=spi(0x69);
respone[7]=spi(0xff);
respone[8]=spi(0xff);
respone[9]=spi(0xff);
respone[10]=spi(0xff);
respone[11]=spi(0xff);
respone[12]=spi(0xff);
respone[13]=spi(0xff);
respone[14]=spi(0xff);
respone[15]=spi(0xff);
respone[16]=spi(0xff);
respone[17]=spi(0xff);
respone[18]=spi(0xff);
respone[19]=spi(0xff);
respone[20]=spi(0xff);
respone[21]=spi(0xff);
respone[22]=spi(0xff);
respone[23]=spi(0xff);
respone[24]=spi(0xff);
respone[25]=spi(0xff);
respone[26]=spi(0xff);
respone[27]=spi(0xff);
respone[28]=spi(0xff);
respone[29]=spi(0xff);
respone[30]=spi(0xff);
respone[31]=spi(0xff);
respone[32]=spi(0xff);
respone[33]=spi(0xff);
respone[34]=spi(0xff);
respone[35]=spi(0xff)
من میخوام اطلاعات ازروی کارت SD ا¾ا¾،به وسیله میکروی avr بخونم وازطریق ارتباط سریال اطلاعات موجودرادرترمینال کدویژن ببینم.مشکل من اینه که SD به دستورای ارسالی ازمیکرو جواب درست نمیده.برنامه ای راکه برای شناسایی SD نوشتم اینه.respone آرایه ایست که برای ذخیره جواب SD به فرمان های میکرودرنظرگرفتم.ممنون میشم کسی کمکم کنه.
[pre]spi(0x40);
spi(0x00);
spi(0x00);
spi(0x00);
spi(0x00);
spi(0x95);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
spi(0xff);
respone[0]=spi(0x77);
respone[1]=spi(0xff);
respone[2]=spi(0xff);
respone[3]=spi(0xff);
respone[4]=spi(0xff);
respone[5]=spi(0xff);
respone[6]=spi(0x69);
respone[7]=spi(0xff);
respone[8]=spi(0xff);
respone[9]=spi(0xff);
respone[10]=spi(0xff);
respone[11]=spi(0xff);
respone[12]=spi(0xff);
respone[13]=spi(0xff);
respone[14]=spi(0xff);
respone[15]=spi(0xff);
respone[16]=spi(0xff);
respone[17]=spi(0xff);
respone[18]=spi(0xff);
respone[19]=spi(0xff);
respone[20]=spi(0xff);
respone[21]=spi(0xff);
respone[22]=spi(0xff);
respone[23]=spi(0xff);
respone[24]=spi(0xff);
respone[25]=spi(0xff);
respone[26]=spi(0xff);
respone[27]=spi(0xff);
respone[28]=spi(0xff);
respone[29]=spi(0xff);
respone[30]=spi(0xff);
respone[31]=spi(0xff);
respone[32]=spi(0xff);
respone[33]=spi(0xff);
respone[34]=spi(0xff);
respone[35]=spi(0xff)
دیدگاه