#include <REG52.H>
#include "SD.h"
#include "12864.h"
unsigned int count;
unsigned long SD_ADDR=0;//--------------------512的倍数(整扇区)
unsigned char xdata DATA[512];
void main(void)
{
delay(65000);
delay(65000);
LCD_init1();
LCD_init2();
SdInit();
// SdWriteBlock(DATA,0,512);
while(1)
{
for(count=0;count<1093;count++)
{
while(!SdReadBlocka(DATA,SD_ADDR,512));
Dis_Picturea(DATA);
SD_ADDR+=512;
while(!SdReadBlocka(DATA,SD_ADDR,512));
Dis_Picturec(DATA);
SD_ADDR+=512;
// delay12(2000);
}
SD_ADDR=0;
}
}
|