16.17.2.1 Building NFC Address Command Example
The base address is the HOST_ADDR address.
Page read operation example:
// Build the Address Command (NFCADDR_CMD)
AddressCommand = (HOST_ADDR |
NFCWR=0 | // NFC Read Data from NAND Flash
DATAEN=1 | // NFC Data phase Enable.
CSID=1 | // Chip Select ID = 1
ACYCLE= 5 | // Number of address cycle.
VCMD2=1 | // CMD2 is sent after Address Cycles
CMD2=0x30 | // CMD2 = 30h
CMD1=0x0) // CMD1 = Read Command = 00h
// Set the Address for Cycle 0
HSMC_ADDR = Col. Add1
// Write command with the Address Command built above
*AddressCommand = (Col. Add2 | // ADDR_CYCLE1
Row Add1 | // ADDR_CYCLE2
Row Add2 | // ADDR_CYCLE3
Row Add3 ) // ADDR_CYCLE4