Premium Content

New Signal Chain Resources from Texas Instruments:

What’s Better For Timing Chores: A 555 Or A Microcontroller?

Date Posted: January 06, 2011 10:02 AM
Author: William Wong

Signetics released the venerable NE555 timer in 1971. It has been used in thousands of designs and has been the subject of at least that many articles (see “The 555: Best IC Ever Or Obsolete Anachronism?”). Communication Editor Lou Frenzel’s recent article about Semtech’s SX8122 and the 555 prompted me to examine how timing solutions have changed over time (see “And You Thought The 555 Timer Was Dead?”).

RC Timing
When I first worked with the 555, the microcontrollers (Fig. 1) of the day included Intel’s 8-bit 8741 in a large 40-pin package versus an eight-pin dual-inline package (DIP). Back then, adding a couple of discrete components to an eight-pin DIP was a simple way to build a range of functions like an astable multivibrator (Fig. 2). This simple circuit provided a clock that could be used to drive shift registers and other logic that was typically available at the time as well.

Semtech’s SX8122 uses a single capacitor and resistor to tune its timing (see “Analog Timer Advances On Venerable 555”). The sub-1-V analog part is designed for low-voltage, battery-operated small appliances.

The question I had was whether any microcontrollers could come close to the chips’ low price, $0.36, and also meet the space and power requirements. I didn’t doubt that a micro solution could provide significantly more functionality.

As with most designs, there isn’t just one solution, and the best solution depends on a range of constraints for a particular application. There are many chips to choose from thanks to Atmel, Freescale, Microchip, Renesas, Silicon Labs, STMicroelectronics, Texas Instruments, Zilog, and other vendors that can use a single battery for power and take up as little space as 2 by 2 mm. That would almost fit between two pins of the 8741!

On the voltage side, Texas Instruments’ 16-bit, 4-MHz MSP430L092 is a true 0.9-V ROM-based microcontroller (see “Micro Really Needs Just 0.9 V”). Many of the other flash parts work on a wide range of voltages.

Most tiny micros come with a built-in clock, so generating any type of waveform is a trivial exercise. Many have analog-to-digital converters (ADCs) allowing an application to track analog inputs, not just a crude digital signal.

Micros Too Complex?
So why wouldn’t a tiny micro be the first choice for developers? Assuming price and power requirements are met, micros have one additional requirement over an RC design—programming.

For me, the answer is easy. But then again, I’ve programmed in assembler. Writing a C program to bit bang a complex timing sequence is a straightforward task, but only if C is in your toolbox. If not, a simple circuit is often “easier” to implement. There are other considerations with micros, such as brownout conditions and startup time.

On the other hand, the actions that can be performed by a micro are nearly impossible with a simple analog circuit. Likewise, tuning an application can be easier for some compared to determining how an analog circuit will perform.

So what will you pick for your next design?

NE555
Part Inventory
Go
powered by:
 

 
You must log on before posting a comment.

Are you a new visitor? Register Here
  • Phil Ouellette
    1 year ago
    Apr 28, 2011

    I very recently faced this same question when I needed a fairly complicated pair of related signals to simulate a piece of machinery. I was able to accomplish it using three linked 555 timers and a bunch of pots.

    What turned me off from using a micro was that I didn't have any simple way to change parameters. I could have added a user interface or added a communication port to do this, but then I have to deal with implementing functionality that has nothing to do with the actual problem. Being able to turn pots to adjust the timing circuit was much simpler to do.

  • Derek Vanditmars
    1 year ago
    Jan 18, 2011

    The decision between using a microcontroller or a 555 would depend on the design requirements:
    Is a stable 5.0V or 3.3V power supply available to power the microcontroller?
    Do any of the inputs or outputs need to interface to high voltages, (>3.3 or 5.0V) and / or high currents, (>20mA)?
    A stable power supply and interface circuitry adds up quick when using a microcontroller.
    Also there would be FCC/CE testing for a microcontroller based design.

  • James Brakefield
    1 year ago
    Jan 17, 2011

    With 2% capacitors being expensive, the 1% accurate oscillator in a similarly priced microprocessor will serve just as well and take less PCB real estate.
    FPGAs also come with internal oscillators and small package sizes. And DO-254 certification is less expensive than DO-178B.
    Mind you I'm not biased, just can't understand the 555 in all it's details. A synchronous design running off an oscillator is closer to heart.

  • John Jacobs
    1 year ago
    Jan 12, 2011

    Are you kidding? How about comparing the 7474 against a large SDRAM or a 74138 to an EPLD? The 555 is a 555 and it does what it does. I still use transistors and diodes in my designs from time to time because they are the right choice. Everything is a trade-off between cost, functionality, and complexity. Just choose the right part for the job; the 555 is better for some applications and a uC is better for others. Let's find some real topics please or is this the April 1 edition....

  • Eric Juve
    1 year ago
    Jan 12, 2011

    For my next design I have already chosen and the micro-controller solution is by far the best. The timer also supports the instrument state control as well as timing.

  • Frostholm
    1 year ago
    Jan 12, 2011

    As the origianl NE555 marketeer at Signetics in the early '70s, I guess I'll have to cast my vote for the original timer chip. BTW, I'm not sure about your $0.36 price.... in the late '70s early '80s the NE555 was going for <$020... by now the dang chip ought to be free :-)

  • James Wood
    1 year ago
    Jan 12, 2011

    Interestingly, this same topic was the subject of an article in the January issue of the hobbyist publication, Elektor (www.elektor.com). Dr. Thomas Scherer of Germany used an Atmel 8-pin-DIP ATtiny25 to create classic 555 functions. While not quite pin-compatible with the analog part, the Atmel microcontroller at least doesnt take up additional board space, and boasts some additional features as well.

  • Rick Policy
    1 year ago
    Jan 12, 2011

    We have been using Freescale HCS08 micros in our latest timer designs. They are very cheap, need no clock, have plenty of peripherals, and are easy to develop code for (C). However, you need to keep in mind any certification issues. If the design is an aerospace design, then you need to conform to DO178B requirements. This is a VERY costly activity.