Author Topic: Parallel Shift Registers  (Read 1997 times)

0 Members and 1 Guest are viewing this topic.

Offline TheDoodTopic starter

  • Regular Contributor
  • *
  • Posts: 90
Parallel Shift Registers
« on: October 27, 2019, 08:36:50 am »
Hey guys, thanks for all the help thus far, I've got another question for you.

Maybe I'm over thinking it, but you shouldn't have any issues running a multitude of shift registers with the input pins wired in parallel to each other? Instead of cascading a multitude of shift registers and wiring the "data out" to the "data in" (in series), could I run 10 shift registers simultaneously if I wired the SR's in parallel to each other?
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Parallel Shift Registers
« Reply #1 on: October 27, 2019, 08:40:46 am »
If you need exact copy of data in all shift registers, then yes. Next time draw schematics and take some time to analyze it.
 
The following users thanked this post: TheDood

Offline TheDoodTopic starter

  • Regular Contributor
  • *
  • Posts: 90
Re: Parallel Shift Registers
« Reply #2 on: October 27, 2019, 09:04:45 am »
If you need exact copy of data in all shift registers, then yes. Next time draw schematics and take some time to analyze it.
Ya I'm a newby, I don't know the internals of a shift register so figured I'd ask someone more knowledgeable (though didn't see any preliminary issues). Thanks! You were spot on comprehending what I was asking! Once I plan a CCT I'll send in a schematic. Still just brainstorming and was just trying to confirm my understanding.
 

Offline jhpadjustable

  • Frequent Contributor
  • **
  • Posts: 295
  • Country: us
  • Salt 'n' pepper beard
Re: Parallel Shift Registers
« Reply #3 on: October 27, 2019, 09:32:06 am »
Ya I'm a newby, I don't know the internals of a shift register so figured I'd ask someone more knowledgeable (though didn't see any preliminary issues). Thanks! You were spot on comprehending what I was asking! Once I plan a CCT I'll send in a schematic. Still just brainstorming and was just trying to confirm my understanding.
If you'd like a digital workbench for little sanity-checks like that, and you don't want to spend any money on it, you could do far worse than good old Logisim.
"There are more things in heaven and earth, Arduino, than are dreamt of in your philosophy."
 
The following users thanked this post: TheDood

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13217
Re: Parallel Shift Registers
« Reply #4 on: October 27, 2019, 09:57:51 am »
It depends what you are doing with them.  Data inputs in parallel doesn't make sense unless you have either separate shift clocks or chip select/latch signals.  However you can parallel shift clocks and latch signals and connect each register's data in to a separate port pin (all on the same port) of your MCU, so eight 74HC595 chips wired like that give you a byte wide eight byte deep set of registers, with each byte striped across all eight chips.   It generally only makes sense to do that if you can configure the port for automatic strobe on write, otherwise the overhead of bit-banging the shift clock for each byte is likely to eat up about half of the speed advantage over simply dumping bytes into a SPI peripheral to feed daisychained shift registers. 
« Last Edit: October 27, 2019, 10:01:07 am by Ian.M »
 
The following users thanked this post: amyk

Offline TheDoodTopic starter

  • Regular Contributor
  • *
  • Posts: 90
Re: Parallel Shift Registers
« Reply #5 on: October 27, 2019, 11:13:22 pm »
Thanks, @Ian.M, I was brainstorming parallel as I had expandability in mind and was curious if I could achieve the same data output signaling & timing when all shift register inputs were wired to a singular MCU, (all shift register inputs wired in parallel to each other).

If I was designing something modular I assumed accounting for the number of modules, ie shift registers, would require more complex coding and/or circuitry than just designing them to operate in parallel.

I've never heard or used logism, thanks @jhpadjustable, I've been playing with LT Spice recently but still really new. Ill take a peek at logism.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9964
  • Country: us
Re: Parallel Shift Registers
« Reply #6 on: October 28, 2019, 12:53:34 am »
There is the concept of fan-out.  A logic gate can only drive just so many other gates and maintain the logic voltages.  It's been decades since I thought about it but the typical number is 10 - a logic gate can drive, at most, 10 other gates ASSUMING they have a fan-in value of 1.  Complex gates may not have a fan-in of one because the first thing they do is invert the signal and then you both the true signal and the inverted signal somewhere else.  This can result in a fan-in of 2 and, if this happens, the poor driving logic gate can only drive 5 such devices.
 
The following users thanked this post: amyk, TheDood

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2418
  • Country: us
Re: Parallel Shift Registers
« Reply #7 on: October 28, 2019, 01:15:47 am »
A fan-out of 10 was pretty typical for most of the TTL family. For the CMOS family, it's usually much larger. If you are mixing families, you best understand the specs of the chips in question to see if it will work.

But there's also the subject of input capacitance. The more inputs you have the longer it takes to charge, which means the propagation delay for a fan-out of 10 will be significantly higher than that of a single input. In other words, there is a speed penalty as fan-out increases. Which may not matter in your application.
 
The following users thanked this post: TheDood

Offline TheDoodTopic starter

  • Regular Contributor
  • *
  • Posts: 90
Re: Parallel Shift Registers
« Reply #8 on: October 28, 2019, 08:59:41 am »
Thanks guys, @rstofer, I've not come across "fan-out" or fan-in" yet so Ill have to read up. I anticipated there would be a limit, but don't envision a need for more than 10 atm.

@Nusa, that's helpful info, brainstorming some 74HC595's and an ESP32. Ill have to look to see if the 74HC595 is a CMOS chip or TTL. CMOS would require less power I'm assuming, that's what I'd be after if that's the case.
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8526
Re: Parallel Shift Registers
« Reply #9 on: October 28, 2019, 12:04:36 pm »
It depends what you are doing with them.
This is worth quoting again since I frequently see beginners (and sometimes even beyond) ask "can I do it this way" without ever saying what they want to do.

The first step of design is not to figure out how you want to do something, but what you want to do.
 
The following users thanked this post: TheDood

Offline TheDoodTopic starter

  • Regular Contributor
  • *
  • Posts: 90
Re: Parallel Shift Registers
« Reply #10 on: October 28, 2019, 09:52:53 pm »
This is worth quoting again since I frequently see beginners (and sometimes even beyond) ask "can I do it this way" without ever saying what they want to do.

The first step of design is not to figure out how you want to do something, but what you want to do.
Sure, you'd want to know what you'd want to do first before trying to figure out how to achieve it. That makes sense, thanks!
« Last Edit: October 28, 2019, 09:55:48 pm by TheDood »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf