Here we derive the source impedance of the Howland current pump. The ideal current source impedance is infinity. The Howland current pump is depended on resistor matching. We consider the effect of mismatch on the source impedance.
Thursday, March 20, 2025
Howland Current Source Impedance
Sunday, March 16, 2025
A Current Source Circuit
As an application example, the data sheet of a shunt voltage reference presents an 1mA precision current source as shown here,
Normally, the negative feedback forces the input terminals of the opamp to be the same voltage and the output applies 2.5V across 2.49K to generate 1mA current to the load.
However, it is possible for this circuit to get stuck at the 0V. Note that the negative rail of the opamp is at the ground in the single supply configuration. With both opamp inputs at 0V, the offset voltage of the opamp causes the output to go to ground. This is a stable operating point if the offset voltage and the gain are in the right range.
If the opamp's negative rail is a negative voltage, the output saturates at the negative rail, the negative input is clamped at one diode above and the positive input would be more positive (except for certain loads) which would force the opamp out of saturation.
Is there a way to keep the circuit from settling in this undesirable operating point? One way is to inject some voltage on the opamp's positive input (diode blocking it after it is unstuck). The voltage divider can be adjust to minimize the error current. But invariably an error current (a few microamps) would go into the load if it has to operate over temperatures and a wide range of loads.
Tuesday, January 21, 2025
NAND and NOR Flash
The two types of flash memory devices, NAND and NOR, are familiar to people in tech. Most people understand the difference between the two: the NAND flash memory is like a hard drive disc that is accessed sequentially and the NOR flash memory can be read randomly and is used for code execution. Some are even aware that the NAND flash gets its name from the NAND gate and the NOR flash from the NOR gate. Beyond that how exactly these flash memory devices work can be a little fuzzy.
Fundamentally, both types of Flash memory devices work under the same principle. Each memory cell has an isolated floating gate to storage charges, which are programmed or erased by the hot-carrier injection and the quantum tunneling process. The presence or the absence of charges on the floating gate changes the threshold of the transistor. The difference lies how the cells are organized to achieve the desired the features. Also the flash memory is erased one sector at a time while the EEPROM is erased one byte at a time.
We start with the NOR flash. A cell is read by applying voltage to the WORDLINE, connected to the control gates of a row of transistors, from the row address decoder logic. If the cell is written, the floating gate has negative charge and the device threshold is higher, so the channel connected to the source has higher resistance than the erased cell. This difference can be sensed with a comparator. Note the source of every memory cell has a connection the SOURCE node. To program a cell, a higher voltage (like 12V) is applied to the gate of the cell and a voltage (like 5V) is also applied to the drain. The electrons flows onto the floating gate by the process of hot carrier injection, which the electrons gain enough kinetic energy from the strong electric field to overcome the bandgap of SiO2. The cells in a sector are erased at the same time by applying a high voltage to the body well and the word lines grounded and the drain is left floating, so the electrons are removed from the floating gate through a quantum tunneling process.
Now the question is why they are called NOR and NAND flash respectively. If we look at the NOR and NAND gate, we only see a little superficial resemblance.
The NOR and NAND labels do make a quick distinction of the two types of flash although the inner working has little to do with these logic gates.
The description here provides perhaps a sufficient understanding for some, while others might be curious about the details of the programming and erasing process in the device level, which we hope to explore later.