GD32W51x User Manual
791
than or equal to the maximum AU size. The card should set smaller AU size as possible.
Table 23-27. Maximum AU size
Card Capacity
up to 64MB
up to 256MB
up to 512MB
up to 32GB
up to 2TB
Maxim um AU
Size
512 KB
1 MB
2 MB
4 MB
64MB
ERASE_SIZE
This 16-bit field indicates N
ERASE
. When N
ERASE
of AUs are erased, the timeout value is
specified by ERASE_TIMEOUT (Refer to ERASE_TIMEOUT). The host should determine
proper number of AUs to be erased in one operation so that the host can indicate progress of
erase operation. If this field is set to 0, the erase timeout calculation is not supported.
Table 23-28. Erase size field
ERASE_SIZ E
Value Definition
0000h
Erase Time-out Calculation is not supported.
0001h
1 AU
0002h
2 AU
0003h
3 AU
.......
.......
FFFFh
65535 AU
ERASE_TIMEOUT
This 6-bit field indicates the T
ERASE
and the value indicates erase timeout from offset when
multiple AUs are erased as specified by ERASE_SIZE. The range of ERASE_TIMEOUT can
be defined as up to 63 seconds and the card manufacturer can choose any combination of
ERASE_SIZE and ERASE_TIMEOUT depending on the implementation. Once
ERASE_TIMEOUT is determined, it determines the ERASE_SIZE. The host can determine
timeout for any number of AU erase by the equation below.
Erase timeout of X AU =
T
ERASE
N
ERASE
∗ X + T
OFFSET
(23-1)
Table 23-29. Erase timeout field
ERASE_TIM EOUT
Value Definition
00
Erase Time-out Calculation is not supported.
01
1 [sec]
02
2 [sec]
03
3 [sec]
.......
.......
63
63 [sec]
If ERASE_SIZE field is set to 0, this field shall be set to 0.
ERASE_OFFSET
This 2-bit field indicates the T
OFFSET
and one of four values can be selected. This field is