36.1 NFC Configuration Register
| Name: | HSMC_CFG |
| Offset: | 0x000 |
| Reset: | 0x00000000 |
| Property: | Read/Write |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| NFCSPARESIZE[6:0] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| DTOMUL[2:0] | DTOCYC[3:0] | ||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| RBEDGE | EDGECTRL | RSPARE | WSPARE | ||||||
| Access | R/W | R/W | R/W | R/W | |||||
| Reset | 0 | 0 | 0 | 0 |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| PAGESIZE[2:0] | |||||||||
| Access | R/W | R/W | R/W | ||||||
| Reset | 0 | 0 | 0 | ||||||
Bits 30:24 – NFCSPARESIZE[6:0] NAND Flash Spare Area Size Retrieved by the Host Controller
The spare size is set to (NFCSPARESIZE + 1) * 4 bytes. The spare area is only retrieved when RSPARE or WSPARE is activated.
Bits 22:20 – DTOMUL[2:0] Data Timeout Multiplier
These fields determine the maximum number of main system bus clock cycles that the SMC waits until the detection of a rising edge on Ready/Busy signal.
If the data timeout set by DTOCYC and DTOMUL has been exceeded, the Data Timeout Error flag (DTOE) in the NFC Status Register (NFC_SR) raises.
Data Timeout Multiplier is defined by DTOMUL as shown in the following table:
| Value | Name | Description |
|---|---|---|
| 0 | X1 | DTOCYC |
| 1 | X16 | DTOCYC x 16 |
| 2 | X128 | DTOCYC x 128 |
| 3 | X256 | DTOCYC x 256 |
| 4 | X1024 | DTOCYC x 1024 |
| 5 | X4096 | DTOCYC x 4096 |
| 6 | X65536 | DTOCYC x 65536 |
| 7 | X1048576 | DTOCYC x 1048576 |
Bits 19:16 – DTOCYC[3:0] Data Timeout Cycle Number
Bit 13 – RBEDGE Ready/Busy Signal Edge Detection
| Value | Description |
|---|---|
| 0 | Indicates the level of the Ready/Busy line. |
| 1 | Indicates that a transition has occurred on the Ready/Busy line. |
Bit 12 – EDGECTRL Rising/Falling Edge Detection Control
| Value | Description |
|---|---|
| 0 | Rising edge is detected. |
| 1 | Falling edge is detected. |
Bit 9 – RSPARE Read Spare Area
| Value | Description |
|---|---|
| 0 | The NFC skips the spare area in Read mode. |
| 1 | The NFC reads both main area and spare area in Read mode. |
Bit 8 – WSPARE Write Spare Area
| Value | Description |
|---|---|
| 0 | The NFC skips the spare area in Write mode. |
| 1 | The NFC writes both main area and spare area in Write mode. |
Bits 2:0 – PAGESIZE[2:0] Page Size of the NAND Flash Device
| Value | Name | Description |
|---|---|---|
| 0 | PS512 | Main area 512 bytes |
| 1 | PS1024 | Main area 1024 bytes |
| 2 | PS2048 | Main area 2048 bytes |
| 3 | PS4096 | Main area 4096 bytes |
| 4 | PS8192 | Main area 8192 bytes |
