Patent ID: 7619932

Claim:
A method of programming or erasing one or more memory cells on a wordline of a memory array, the method comprising: providing one or more unprogrammed memory cells on a selected wordline to be programmed or erased; initially measuring a threshold voltage (Vt) uniquely associated with the selected wordline for each of the one or more memory cells on the selected wordline; determining an average threshold voltage Vt(avg) uniquely associated with the selected wordline based on the measured threshold voltages, before programming or erasing the one or more memory cells; and programming one or more of the memory cells of the selected wordline to a predefined program level uniquely associated with the determined average threshold voltage Vt(avg) uniquely associated with the selected wordline; or erasing one or more of the memory cells of the selected wordline to the determined average threshold voltage Vt(avg).