Decoding_SpareECC( )
--- Read_Spare( )
--- Nand_Read( )
// Chip Select
_CE_L(nBank);
// Read Command (Always read spare area before main area in a page
_CMD(CMD_READ); // 0x00
//_SET_ADDR(nPpn, BYTES_PER_MAIN_PAGE);
_ADDR(BYTES_PER_MAIN_PAGE&0xFF);
_ADDR((BYTES_PER_MAIN_PAGE>>)&0xFF);
_ADDR(nPpn&0xFF);
_ADDR((nPpn>>16)&0xFF);
_CMD(CMD_READ_CONFIRM); // 0x30
Erase Block 的command 只需要 3 個address cycle。 也就是block index 就可以。
- 0x60
- Address x 3
- 0xD0
- Wait a moment
沒有留言:
張貼留言