|
/* 當(dāng)Status Register的位0移出之后,接下來的時(shí)鐘脈沖序列將使SPI器件繼續(xù)*/ /* 將最新的狀態(tài)字節(jié)送出。 */ /* bit6 - 標(biāo)記最近一次Main Memory Page和Buffer的比較結(jié)果,0相同,1不同。 */ /* bit5 */ /* bit4 */ /* bit3 */ /* bit2 - 這4位用來標(biāo)記器件密度,對于AT45DB041B,這4位應(yīng)該是0111,一共能標(biāo)記 */ /* 16種不同密度的器件。 */ /* bit1 */ /* bit0 - 這2位暫時(shí)無效 */
unsigned char AT45DB041B_StatusRegisterRead(void){ unsigned char i; SPI_CS=0; SPI_HostWriteByte(0xd7); i=SPI_HostReadByte(); SPI_CS=1;
return i; }
/*描述: */ /* When the last bit in the main memory array has been read,the device will*/ /* continue reading back at the beginning of the first page of memory.As w-*/ /* ith crossing over page boundaries,no delays will be incurred when wrapp-*/ /* ing around from the end of the array to the beginning of the array. */ /*參數(shù): */ /* PA - 頁地址,0~2047 */ /* BFA - 指定BUFFER中的起始寫入地址 */ /* pHeader - 指定數(shù)據(jù)的首地址 */ /* len - 指定數(shù)據(jù)的長度 */
|