Electronic Design

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


[Ideas For Design]
Drive Multiple Displays With A Single Microcontroller Port Line

R. Jayapal  |   ED Online ID #12896  |   July 6, 2006


Seven-segment displays are needed in many instrument designs. In conventional microcontroller-based designs, four output port lines are allocated for one seven-segment display. Figure 1 shows the conventional design for four seven-segment LED displays. In this case, two eight-bit output ports are needed for four seven-segment displays. Figure 2 shows another popular display-multiplexing design in which one-and-a-half eight-bit port lines drive four seven-segment displays. Because of the persistence of vision, the display has to be refreshed often to appear steady.

Figure 3 obviates the requirement of multiple port lines. Here, four displays are driven through one port line. (Theoretically, any number of displays can be driven through one port line by this method.) The port-line output should be a pulse train generated through software, whenever the display needs to be updated. The first pulse should be a long pulse and the subsequent pulses are a number of short pulses the number being equal to the number that will be displayed.

The IC1 monostable and AND gate act as a long-pulse detector. IC2 to IC5 (CD40110) are decade up-down counter/latch/display drivers. The microcontroller should generate a pulse with a duration that s longer than the time delay generated by the retriggerable monostable multivibrator. The Q output of the monostable circuit is ANDed with the pulse input.

During the long pulse, the AND gate output goes High for a duration that s longer than the monostable delay. This output resets all of the counters to zero.

Other pulses whose widths are less than the monostable delay won't produce a High output at the AND gate. Thus, the long pulse alone clears the display. Subsequent pulses shorter than the monostate delay time, whose number is equal to the four-digit number to be displayed, will be counted by IC2 to IC5 and then drive the displays. Typical values for long-pulse duration can be 5 ms.

The monostable delay is 1 ms, and the pulse train has 2- s ON and 2-µs OFF times. For these typical values, the display gets updated within 45 ms for the maximum display of 9999. Unlike the multiplexed display scheme shown in Figure 2, the display needn't be refreshed continuously. The next display can be loaded after one second, or as needed.

Such a scheme will be quite useful when designing compact systems that have microcontrollers with fewer output pins. This technique will also be handy for adding displays to already manufactured equipment at a later date, since only one port line is needed. If two port lines can be made available, the circuit can be simplified by eliminating the long-pulse detector circuit that uses IC1 and the NAND gate. One port-line output can be used to clear the counter/ display, and the pulse train can be sent on the other port line.


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


  • Engineers Rely On Internet For Product Info
  • Rochester Electronics Establishes New Design and Technology Group
  • Custom Sources Light Way To 22-nm IC Lithography
  • In EDA, A Year Of Mergers, Failed And Otherwise
  • Software Turns Scopes Into Vector RF Signal Analyzers
  • Couple’s $15 Million Gift Advances Rice Engineering Education
  • November 7, 2008
  • Startup Sets Sail For Speedier Spice Simulation
    1) Ten Top Design Skills For Tough Times
    (3623 views today)
    2) Energy Harvester Perpetually Powers WIreless Sensors
    (374 views today)
    3) Ultracapacitors Branch Out Into Wider Markets
    (364 views today)
    4) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (323 views today)
    5) Technology Has Been Very Good To Obama, And He Plans To Reciprocate
    (213 views today)
    ALL TOP 20



    Reader Comments

    hi all what can i use inplace of this ic 74c925, i am really finding problem geting it. i know a microcontroller can serve but the programme will be needed. anyone with an idea should pls reply me on me. thanks

    alfa 4 -June 30, 2008

    Perhaps this is a way to add a 4 digit display late in the design cycle, when nearly everything's set in stone, and you only have a handful of output pins from the controller to use. By all means, load all that stuff on a daughter card and plug it in. If a display is needed from the start of the project, LCD character displays are much more versatile and practical, and only require a single 8-bit port (using half-byte mode). But that's just how I roll.

    nahid -May 01, 2007

    Hi!! I've assembled a 4 digit token no. display with small seven segment displays. but now i want to display those numbers on bigger seven segment displays which is about 4 inch each segment. the output i am getting from the basic circuit to drive smaller displays is of about 2 volts but the bigger display requires about 7.2 volts to glow. what to do about this problem?? Can some1 please give me any working idea?

    Raj -March 08, 2007

    Give me a big idea this article.

    joel robinson -July 25, 2006   (Article Rating: )

    Perhaps this is a way to add a 4 digit display late in the design cycle, when nearly everything's set in stone, and you only have a handful of output pins from the controller to use. By all means, load all that stuff on a daughter card and plug it in. If a display is needed from the start of the project, LCD character displays are much more versatile and practical, and only require a single 8-bit port (using half-byte mode). But that's just how I roll.

    Who

    Who Knew -July 11, 2006

    This falls apart quickly when adding additional digits as the next digit will require 450ms to update, the next will take 4.5 seconds and the next will take 45 seconds. Also, the last digit will be counting during this time which will make the display very confusing.

    A different approach would be to use serial to parallel latches in place of counters and use a similar timer scheme where short pulses would generate a clock and a "0" and long pulses would generate a clock and a "1" to the shift registers.

    The alternatice approach would require N * 7 bits of output vs. 10 to the N power bits where N is the number of digits. i.e.: a ten digit display would require 70 bits vs. 10,000,000 bits

    Peter House -July 07, 2006

    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
         
      
     
    Email Newsletter
    Sponsored By:
    Electronic Design UPDATE provides readers with late-breaking news, opinions from industry experts, and timely technology stories. It's a unique opportunity to get your product message in front of engineers, engineering managers, and corporate managers while they're reading about critical information online.

    Enter Email to Subscribe
      

    Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF
    Mobile Dev & Design Schematics Find Power Products Military Electronics EE Events Related Resources