An operating method for a non-volatile memory, the non-volatile memory comprises a memory array and a sense amplifier, wherein the sense amplifier comprises a voltage comparator and a clamping device, the clamping device is coupled with a first I/O node of the sense amplifier, a bit line, a second I/O node of the sense amplifier, and a reference bit line, and one of the voltage comparator and the clamping device is with offset compensation,
- wherein the operating method comprising:
- comparing, by the voltage comparator, a first input voltage and a second input voltage via the first I/O node and the second I/O node of the sense amplifier respectively to output a sensing signal;
- and
- trimming, by the clamping device circuit, at least one of a voltage corresponding to the bit line and a voltage corresponding to the reference bit line respectively to match a first threshold voltage of the first clamping circuit with a second threshold voltage of the second clamping circuit;
- or
- trimming, by the voltage comparator, at least one of the voltage corresponding to the bit line and the voltage corresponding to the reference bit line to match the voltage corresponding to the reference bit line with the voltage corresponding to the bit line.