
GD32F403xx User Manual
589
2.
Write ADD0 into NAND Flash bank common space address area.
3.
Write ADD1 into NAND Flash bank common space address area.
4.
Write ADD2 into NAND Flash bank common space address area.
5.
Write ADD3 into NAND Flash bank common space address area.
6.
Write CMD1 into NAND Flash bank attribute space command area.
In step 6, EXMC uses the operation timing defined in EXMC_NPATCFGx register. After a
period of ATTHLD, NAND Flash waits for EXMC_INTx signal to be busy, and the time period
of ATTHLD should be greater than tWB (t
WB
is defined as the time from EXMC_NWE high to
EXMC_INTx low). For NCE-sensitive NAND Flash, af ter the f irst command byte following
address bytes has been entered, EXMC_NCE must remain low until EXMC_INTx goes from
low to high. The ATTHLD value of attribute space can be set in EXMC_NPATCFGx register
to meet the timing requirements of tWB. CPU can use the attribute space timing when writing
the f irst command byte following address bytes to the NAND Flash device. In other times, the
MCU must use the common space timing.
NAND Flash ECC calculation module
An ECC calculation hardware is implemented in bank1 and bank2 respectively. Users can
choose page size according to the ECCSZ control field in the EXMC_NPCTLx register. ECC
of fers one bit error correction and two bits errors detection.
When NAND memory block is enabled, ECC module will detect EXMC_D[15:0], EXMC_NCE
and EXMC_NWE signals. When a data size of ECCSZ has been read or written, sof tware
must read the calculated ECC in theEXMC_NECCx register. When a recalculation of ECC is
needed, software must clear the EXMC_NECCx register value by resetting ECCEN bit of
EXMC_NPCTLx register to zero, and then restart ECC calculation by setting the ECCEN bit
of EXMC_NPCTLx to 1.
PC/CF Card access
EXMC Bank3 is used exclusively f or PC/CF Card, both memory and IO mode access are
supported. This bank is divided f urther into three sub spaces, memory, attribute and IO space.
EXMC_NCE3_0 and EXMC_NCE3_1 are the byte select signals, when only EXMC_NCE3_0
is active (Low), the lower byte or upper byte is selected depending on the EXMC_A[0], while
only EXMC_NCE3_1 is active (Low), the upper byte is selected which is not supported, when
both of these signals are active, 16-bit operation is performed. When NDTP is reset to select
PC/CF Card as external memory device, NDW must be set to 01 in EXMC_NPCTLx register
to guarantee correct EXMC operation.
EXMC PC/CF card access behavior for different spaces:
1.
Common space: EXMC_NCE3_x (x = 0, 1) is the chip enable signal, it indicates whether
8- or 16-bit access operation is being performed. EXMC_NWE and EXMC_NOE dictates
whether the on-going operation is a write or read operation, and EXMC_NREG is high
during common space access.
Содержание GD32F403 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F403xx Arm Cortex M4 32 bit MCU User Manual Revision 2 6 Jul 2022 ...
Страница 177: ...GD32F403xx UserManual 177 Peripheral Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 SDIO SDIO ...
Страница 217: ...GD32F403xx UserManual 217 ensures that no conversion is in progress ...