Author Topic: Driveing LED displays without constiant output from MCU  (Read 8843 times)

0 Members and 1 Guest are viewing this topic.

Offline FerrotoTopic starter

  • Frequent Contributor
  • **
  • Posts: 289
  • Country: ca
Driveing LED displays without constiant output from MCU
« on: November 19, 2009, 09:35:16 pm »
This diagram uses 74HCT373N's to drive 2 7 segment LED displays.


74HCT373N: (Mouser, Datasheet)
   When LE is HIGH values are read from D0-7 when OE is low values are transmitted to Q0-7. Thus since LE and OE are connected if Dig1 is HIGH it receives it's value from D0-7, if it's low then it transmits it's values continuously to the 7 segment LED display it's driving this frees up the 8-bit data bus to talk to additional digits.


LDQ-M282RI: (Digikey, Datasheet)
   7 Segment LED display with common Cathode.



Note one thing I've noticed is the more digits there are the more control pins (Ex: Dig1, Dig2 etc...) there are I'm working on a way around this so you'll only use 1 control pin for all digits.


I was just wondering weather or not this would work I haven't dealt with discreet logic such as flipflops much.
« Last Edit: November 19, 2009, 09:51:23 pm by Ferroto »
 

Offline jimmc

  • Frequent Contributor
  • **
  • Posts: 304
  • Country: gb
Re: Driveing LED displays without constiant output from MCU
« Reply #1 on: November 19, 2009, 10:45:47 pm »
I think you're a bit confused here, The /OE line is purely an output enable bar.
When it is high the outputs are tri-state but the state of the latches is not affected.
The LE line controls the latches, when it is high the latch is transparent (the output Q follows the input D) when it drops low output D holds the state of the input Q (when LE was last High).
If you put an inverter in one LE line and the other, one '373 will be latched when the other is transparent.
(If you want to avoid the transparent state use the edge triggered 74HCT374 this device only samples the D input on the rising edge of the clock.)

You can't really use a single resistor in the common cathode line; if a '1' is displayed then 2 segments are on, for an '8' all seven are on. So the brightness changes depending on what is displayed.

Jim
 

Offline FerrotoTopic starter

  • Frequent Contributor
  • **
  • Posts: 289
  • Country: ca
Re: Driveing LED displays without constiant output from MCU
« Reply #2 on: November 19, 2009, 11:15:36 pm »
I think you're a bit confused here, The /OE line is purely an output enable bar.
When it is high the outputs are tri-state but the state of the latches is not affected.
The LE line controls the latches, when it is high the latch is transparent (the output Q follows the input D) when it drops low output D holds the state of the input Q (when LE was last High).
If you put an inverter in one LE line and the other, one '373 will be latched when the other is transparent.
(If you want to avoid the transparent state use the edge triggered 74HCT374 this device only samples the D input on the rising edge of the clock.)

You can't really use a single resistor in the common cathode line; if a '1' is displayed then 2 segments are on, for an '8' all seven are on. So the brightness changes depending on what is displayed.

Jim


I see what your saying, I was under the impression that it couldn't input and output at the same time. So basicly i can just pull OE to GND and have LE high when transmitting data to the '373. Also i noticed my first project the counter had the bright\dark problem too. also the inverter can't be used because that would have atleast 1 '373 with a high LE at all times and i need to use D0-7 for other things. Basically J1 is a header that connects this board to another. That could contain anything including a shared bus.
« Last Edit: November 19, 2009, 11:25:24 pm by Ferroto »
 

Offline jimmc

  • Frequent Contributor
  • **
  • Posts: 304
  • Country: gb
Re: Driveing LED displays without constiant output from MCU
« Reply #3 on: November 20, 2009, 03:32:07 pm »
That's it.

Since you only want to control one latch at a time you can use a '1 of n' decoder such as the 74HCT238 to cut down the number of control lines once you get past two digits.

Jim
 

Offline KuchateK

  • Regular Contributor
  • *
  • Posts: 78
  • Country: us
Re: Driveing LED displays without constiant output from MCU
« Reply #4 on: November 21, 2009, 07:25:11 am »
I've recently stumbled on this project. It has one interesting thing:
http://www.elektronika.ba/714/darkroom-timer-for-pcb-exposure/
Schematic direct link:
http://www.imagesforme.com/upload/6713c44a.gif?id=6d4f88f2a9e1044d343436383637
This guy is using 4094 shift registers to controll four 7 segment LED displays (32 LEDs) with only two pins of MCU.
« Last Edit: November 21, 2009, 08:24:08 am by KuchateK »
 

GeekGirl

  • Guest
Re: Driveing LED displays without constiant output from MCU
« Reply #5 on: November 21, 2009, 08:56:40 am »
This guy is using 4094 shift registers to controll four 7 segment LED displays (32 LEDs) with only two pins of MCU.

I have done this before with 74HC164, these are very fast, so I can clock at full speed from say an AVR :)

Regards,

Kat.
 

Offline qno

  • Frequent Contributor
  • **
  • Posts: 422
  • Country: nl
Re: Driveing LED displays without constiant output from MCU
« Reply #6 on: November 23, 2009, 01:59:09 pm »
I would tie the /OE to Vss (GND) or else the LED's would only light up when you are writing to the 373.

Also take a look at the 4511.
« Last Edit: November 24, 2009, 12:45:52 pm by qno »
Why spend money I don't have on things I don't need to impress people I don't like?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf