Live data from Hacker News

Reverse-engineering the LM185 voltage reference chip and its bandgap reference

righto.com

11–20 of 33 posts

Re: Reverse-engineering the LM185 voltage reference chip and its bandgap reference

#11
post #7
post #6

Earlier quoted context omitted.

I got an old, cheap copy of "The Art of Analog Layout" (Hastings), which describes these structures in detail. For the most part, the structures are fairly easy to recognize after you've seen them once or twice. But then there are the bizarre mystery circuits that require some puzzle-solving. For instance, where they combine a couple of transistors to save a bit of space.

Seeing that the latest edition of The Art of Analog Layout came out of 2005, is there any other book you'd recommend on analog layouts specifically?

I mostly look at chips from the 1970s, since modern chips have features that are too small for my microscope. So I don't have any recommendations for a "modern" book.

Re: Reverse-engineering the LM185 voltage reference chip and its bandgap reference

#12
post #3
post #2

Author here for all your voltage reference questions :-)

Is there any chance you can expand on the reasoning behind the circular/coaxial designed transistors? The normal sorta logic style transistors are straight forward, and the serpentine nature of the high current transistors makes sense for the surface area, but I never understood the reasoning for the round transistors.

For this case of lateral PNP transistors, the reason is as Ken has said.

Because both the emitter and the collector are on the surface, making them both circular ensures that the distance between them, which is the same as the width of the base, is constant.

The properties of the bipolar transistors vary very strongly with the width of the base. If the width is not constant, then the current becomes crowded in only a part of the base and many characteristics become worse.

Unlike in lateral transistors, in vertical transistors the width of the base is not determined by geometry, but by doping doses and diffusion times, so the form of the emitter is less important.

Nonetheless, in early planar transistors the emitter was also circular. The reason is that in bipolar transistors with very narrow bases, the resistance of the narrow base layer becomes large and in the center of the base under the emitter, the base-emitter voltage drops to a lower value than at the terminals of the transistor, which makes the central part of the emitter and base non-functional (i.e. only a very small fraction of the current passes through there).

So in vertical transistors, only the periphery of the emitter matters. When it is circular, the symmetry guarantees that the current is uniformly distributed on the periphery, for maximum current capability.

Unfortunately, increasing the density of current per peripheral length of the emitter over a threshold triggers a positive feedback that will destroy the transistor if the current is not limited externally. This is usually the main factor that determines the specification of a maximum current for a bipolar transistor. If the current is non-uniform over the periphery, the threshold will be reached at a much lower current than computed by multiplying the threshold density with emitter perimeter.

Because there is a limit for amperes per millimeter of emitter periphery, to increase the maximum current in a given area, the form of the emitter must be changed from a circle to a form with a longer perimeter, without increasing the occupied area.

Early power transistors had various fancy forms for the emitters, e.g. Christmas tree, snow flake and so on. However, it was quite difficult to ensure that the current is distributed uniformly on the periphery of such complex forms.

Later, after the photolithography had improved and smaller dimensions were no longer problem, instead of having an emitter with a complex sinuous boundary, 2 simpler solutions have been adopted to increase the perimeter of the emitter. Either the transistor had a large number of small emitters connected in parallel, or it had one large emitter, but with a large number of small holes in the emitter (mesh emitter).

Re: Reverse-engineering the LM185 voltage reference chip and its bandgap reference

#14
Lots of microcontrollers have a bandgap reference built in... And typically they have really rather terrible voltage tolerances - eg. on atmel devices the 1.1v reference doesn't even have guaranteed minimum and maximum voltages across the whole range of supply voltage and temperature, but you can only expect it to be somewhere between 0.9 volts and 1.3 volts....

So why are these circuits so bad? Do they use a different design?

Re: Reverse-engineering the LM185 voltage reference chip and its bandgap reference

#15

Lots of microcontrollers have a bandgap reference built in... And typically they have really rather terrible voltage tolerances - eg. on atmel devices the 1.1v reference doesn't even have guaranteed minimum and maximum voltages across the whole range of supply voltage and temperature, but you can only expect it to be somewhere between 0.9 volts and 1.3 volts.... So why are these circuits so bad? Do they use a differe…

The transistors available in modern digital CMOS processes are worse and worse for analog functions, the more recent that process is.

The very poor device characteristics may be mitigated only using very complex schematics for the analog circuit, together with various auto-calibration methods.

The additional cost may be deemed too much for a voltage reference in a cheap microcontroller.

One can always use a good external voltage reference, but that may cost as much as a microcontroller.

Re: Reverse-engineering the LM185 voltage reference chip and its bandgap reference

#17
If the following is not well known to electrical engineers, I would appreciate a little explanation of how it is done:

"Thus, analog ICs are designed so only the ratio of resistors matters, not the absolute values, since the ratios remain nearly constant"

If it well known, a reference would be helpful.

(K. Shirriff, your posts offer a lot, even to those of us who do not have a technical background. Thank you.)

Re: Reverse-engineering the LM185 voltage reference chip and its bandgap reference

#18
post #5
post #3

Earlier quoted context omitted.

Is there any chance you can expand on the reasoning behind the circular/coaxial designed transistors? The normal sorta logic style transistors are straight forward, and the serpentine nature of the high current transistors makes sense for the surface area, but I never understood the reasoning for the round transistors.

Theoretically you could make a PNP transistor by reversing the doping of an NPN transistor. The main problem is that boron diffuses rapidly, making it hard to fabricate a buried P-layer. Boron also has less solubility than phosphorus, making it hard to dope the emitter. Also, holes have only 1/3 the mobility of electrons, so PNP and NPN aren't symmetrical. To deal with these issues, PNP transistors are usually built…

It's worth noting that all of this mess was solvable, and made economical. Good (or at least fast) PNP and NPN transistors are now available together with modern complementary bipolar processes. These processes are in mass production and, these days, barely more expensive than the traditional ones even if they often involve fun things like SiGe.

Re: Reverse-engineering the LM185 voltage reference chip and its bandgap reference

#19
In my final year of engineering school, we had to build an op-amp integrated circuit and then characterize its performance in the lab once it came back from manufacturing. My project partner was an A-student, so I had no trouble handing him the first half of the project (design and layout) while I went to Hawaii for a week. Unfortunately, when I returned from my week in the sun, I discovered that he had submitted his design without my name on it. The professor was not sympathetic when he said, “I’m not sure how you’re going to finish this class now, considering that 60% of the mark is based on the project report and you have no chip to characterize…”

Fast forward six weeks or so. On the fateful day when the chips were being handed back to us, my former partner was missing. I faithfully picked up the item and headed to the lab. Plugging the device into a breadboard and hooking up a scope, I determined that it did not, in fact, function as an op-amp. After many painful hours, I determined that the A student had flipped a transistor around. With luck, I was able to characterize what _that_ circuit should do and was then able to show this to the professor.

On the day the project report was due, I brought in two copies: one with my name on it, and one with my name and that of the A student. As he turned pale upon realizing that he had missed picking up the part two weeks earlier, I offered him a chance at redemption: hand in the paper with both of our names on it. He did so, and I was able to graduate.

You’re welcome.

Re: Reverse-engineering the LM185 voltage reference chip and its bandgap reference

#20

If the following is not well known to electrical engineers, I would appreciate a little explanation of how it is done: "Thus, analog ICs are designed so only the ratio of resistors matters, not the absolute values, since the ratios remain nearly constant" If it well known, a reference would be helpful. (K. Shirriff, your posts offer a lot, even to those of us who do not have a technical background. Thank you.)

So the absolute resistance depends on the doping, which is tricky enough to control (furnaces, impurities, voltages, sputtering, etc.) that even with good control, the final resistance is within 20-30% of the target.

The relative resistance comes from the shapes themselves: it's the same material for both resistors, with the same properties from the same doping. And photolithography is great at matching shapes and patterns, so you get fantastic relative tolerancing.

There are, of course, still plenty of other sources of error.

Post reply on HN