How 6502 Overflow Works

6502 Overflow Circuit

The 6502 was a ubiquitous microprocessor back in the 80s, powering devices such as the Apple II and the Nintendo Entertainment System. [Ken] took an in depth look at a small part of the processor: the overflow circuit.

In order to do signed calculations, a microprocessor’s arithmetic logic unit (ALU) needs to be able to calculate when an overflow occurs. This happens when two numbers are added that cannot fit in a single byte. The result of a calculation will be incorrect, so the processor must inform the program that an overflow has occurred. This is done by setting an overflow flag.

[Ken] uses this example to first explain how the overflow circuit works in logic. He then looks at the gates and a transistor implementation of the logic. Finally, he walks us through the circuit on the actual 6502 die, showing how the circuit is constructed in silicon.

This is a great example to learn a bit more about how ALUs work and how integrated circuits get built.

Reverse Engineering Silicon

[John McMaster] is doing some pretty amazing work with figuring out how the circuitry in an integrated circuit works. Right now he’s reverse engineering a serial EEPROM chip one section at a time. This is a 24c02 made by ST, and  he chose this particular portion of the die to examine because it looked like there were some analog components involved.

He removed the top metal using hydrofluoric acid in order to take this image. By continually removing layers this way he manages to work out the traces and even the components themselves. To help clarify the parts he uses the set of snapshots to generate a colored map using Inkscape. From there he begins labeling what he thinks the components might be, and like a puzzle the pieces start falling into place one by one. From the Inkscape drawing he lays out a schematic, then rearranges the components to make the design easier to understand. Apparently this is a Schmidt trigger.

[Thanks George]

The Engineer Guy Explains How MEMS Accelerometer Chips Work

There’s a good chance that you use a MEMS accelerometer every single day. It’s the small chip that let your smart phone automatically adjust its screen orientation. They’re great chips, and since they’re mass-produced you can add them to your projects for a song (if you can abide the tiny packaging). But we have no idea of how they are made and only a inkling of how they work. [Bill Hammack] has filled that knowledge gap with this explanation of how MEMS accelerometers are made and how they function.

Our base knowledge comes from the acronym: Micro Electro-Mechanical Systems. There’s something in the chip that moves (so much for solid state electronics; and it makes us wonder if these wear out). [Bill] includes a diagram in his video after the break which shows the silicon-based system that moves as it is affected by gravity. This changes the capacitive properties of the structure, which can be measured and reported to a microcontroller for further use. The structure is built using an intricate etching process which we never want to try out at home.

Looking for a project in which to use one of these devices? We’ve always been fond of this POV device.

Continue reading “The Engineer Guy Explains How MEMS Accelerometer Chips Work”

Exploding An AVR

Unfortunately [manekinen] wrecked a couple of AVRs during his tinkering. Not letting this get him down he decided to blow them up to see what would happen. In exchange for their precious magic smoke the AVRs revealed a good portion of their silicon die.

While the details are a little sparse it seems like he hooked them up to a high (and possibly reverse) source to blow open the chips casing. From the pictures it looks like he was able to reveal some of the flash or SRAM (the big multi colored rectangles) and what could possibly be the power supply. Be sure to checkout the videos after the break for some silicon carnage.

Continue reading “Exploding An AVR”

Jeri Makes Integrated Circuits

[Jeri Ellsworth] made this silicon inverter at home, by hand. It took her two years to get the process figured out and achieve something we didn’t think was possible. The complexity of manufacture, and the wide range of tools and materials needed seem insurmountable but she did it anyway. Her home chip fab Flickr set is well commented and details her work area and part of the processing. If you’re hurting for more check out her 40 minute Metalab talk which we’ve embedded after the break.

If her name sounds familiar but you just can’t place it you may know her from The Fatman and Circuit Girl. We’ve also featured some of her hacks, such as her Pinball challenge against [Ben Heckendorn], and her giant Etch-a-Sketch.

Continue reading “Jeri Makes Integrated Circuits”

Make Your Own LEDs

diyled

Ever wanted to make your own LED? You might be tempted to after reading how easy it is. No, this won’t really be a practical LED that you would use to light a project, but it is very cool anyway. [Michael] picked up a box of Moissanite, or Silicon Carbide, on eBay for roughly $1. Making the LED is as easy as putting your positive lead to the crystal and touching it with a sewing needle attached to a negative lead. He has tips on how to get the best results as well as a little bit of history of LEDs on the site.

[thanks Andreas]

Intel 4004 Internals

The silicon wizards at Flylogic have certainly posted an interesting chip this time around. The Intel 4004 was the first widely used microprocessor. The logic gates are much larger than you’d find in modern chips. The unique feature is that each gate is designed to make the most efficient use of the silicon instead of the standardized shapes you find now. They’ve uploaded a full image of the chip.

For an introduction to silicon hacking, we reccomend [bunnie]’s talk from Toorcon and [Karsten]’s talk from 24C3. You can find many more posts on the topic in our silicon tag.