Electronic Design

  
Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?


[Ideas For Design]
Hardware-Based LED Blinking Control Eliminates Software Overhead

Ken Whiteleather  |   ED Online ID #16764  |   September 27, 2007


LEDs are often used on manmachine interfaces (MMIs) or device front panels to illuminate switches or backlight text information so that the user knows what the device is supposed to be doing at the time. Occasionally, the designer wants these LEDs to start blinking at a particular rate to alert the user to a condition needing attention, such as a low battery.

Many devices use embedded microprocessors or microcontrollers to handle the MMI, along with all other command and control functions for the device. The simple task of causing the LED to blink may add undesired overhead to the software design. However, this task can easily be offloaded to hardware by using the following technique.

Memory-mapped hardware-control registers are commonly used to turn multiple LEDs on or off with one instruction. Similarly, memory-mapping a "blink-control" register can set a mask to control which LEDs should be blinking at any particular time, if the output of each bit of that register gates a low-rate (i.e., 1-Hz) clock signal for blink timing. By connecting the gated signal to the LED using a tri-state buffer that's enabled via the LED control signal, the LED can be turned on, off, or on-blinking (Fig. 1). If the blink function isn't needed, an LED can simply be turned on or off using the simplified circuit in Figure 2.


Reprints   Printer-Friendly  Email this Article  RSS    Font Size   What's This?


  • Cadence Comes At Power From Two Perspectives
  • Collaboration Results In First IEEE 1149.7 cJTAG Semiconductor IP Core
  • Engineering A Hall Of Famer
  • Yield Enhancement Software To Aid Solar Cell Fabs
  • Audio Engine Codec Library Expands With Dolby Pro Logic Additions
  • Accellera Rolls New Version of Analog, Mixed-Signal Standard
  • 45-nm Via-Programmable ASICs Add High-Speed I/O Transceivers To Feature Mix
  • Verification Evolves Into Lean, Mean Bug-Stomping Machines
    1) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (253 views today)
    2) Engineer Seeks Cure For Common Wall Warts
    (157 views today)
    3) Easily Convert Decimal Numbers To Their Binary And BCD Formats
    (147 views today)
    4) Create Stable, Reliable, And Efficient Tantalum Capacitors
    (124 views today)
    5) Dev Kits Help Alleviate Those FPGA Design Woes
    (122 views today)
    ALL TOP 20



    POST YOUR COMMENTS HERE
    Name:

    Email:
    Your Comments:

    Enter the text from the image below


    Please refresh the page if you have trouble reading this text.

    Search Electronic Design
         
      
     
    Web Seminar
    Sponsored By:
    Title: Read Pacing: A Performance Enhancing Feature of PCI Express Gen 2 Switch Devices
    Speakers: 
    Date: 07/01/08
    Register: 

    Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF RF Design
    Schematics Find Power Products Military Electronics Featured Vendors EE Events Free Design Resources