Methods of performing a sector erase of flash memory devices incorporating
built-in self test circuitry are provided. The present invention employs
an interactive verification and sector erase algorithm to verify and
repeatedly erase the sector until a portion of the groups of each page of
the sector are erased or a first maximum number of erase pulses is
achieved. The algorithm further includes a word verification and erase
operation that sequentially verifies and erases each word of the sector
until each word is erased or a second maximum number of erase pulses is
achieved. The second maximum number of erase pulses may be based on a
function of the first maximum number of erase pulses. The second maximum
number of erase pulses may be input to the sector erase algorithm as a
multi-bit code. The second maximum number of erase pulses and conversion
of the multi-bit code may be based on a binary multiple of the first
maximum number of erase pulses.