Patent ID: 7457178

Claim:
A method of trimming an analog voltage in a flash memory device, comprising the steps of: issuing a first command to place the flash memory device into a test mode, a terminal of the flash memory device has a test function when in the test mode; measuring a threshold voltage of at least one non-volatile memory cell by applying a control gate voltage at the terminal of the flash memory device while in the test mode; operating an analog voltage generator circuit at a plurality of output analog voltage levels to access the at least one memory cell while in the test mode; responsive to the measuring and operating steps, setting the output analog voltage level of the analog voltage generator circuit for use in normal operation of the flash memory device; and issuing a second command to place the flash memory device into a normal operating mode after the setting the output analog voltage level of the analog voltage generator circuit for use in normal operation; wherein the terminal has an operating function in the normal operating mode.