Author Topic: Shift Reg Without latch reg  (Read 3178 times)

0 Members and 1 Guest are viewing this topic.

Offline BurnedResistorTopic starter

  • Regular Contributor
  • *
  • Posts: 192
  • Country: at
Shift Reg Without latch reg
« on: September 16, 2017, 11:47:42 am »
Hey All,

There are two possibilities here:
  • The HC595 does what I need it to do, and I am an idiot.
  • I need an 8 bit serial in parrallel out shift register without an output latch register.

What I need:
An 8 bit shift register which outputs the first value the moment the clock is pulsed:



However, the HC595 has a latch register, so when the clock for both the shift- and latch- are tied together, the signal takes 1 clock cycle to shift into the register, and another one to be latched out:



Is there a way to achieve this using the good ol' HC595 or do I need a different one? I tried doing a quick google search, but came up empty.

Thank you for your help!
« Last Edit: September 16, 2017, 11:52:14 am by BurnedResistor »
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5840
  • Country: de
Re: Shift Reg Without latch reg
« Reply #2 on: September 16, 2017, 12:51:00 pm »
+1 to 4094 or 74HC4094.

The output latches are level-triggered and can be set to be transparent. The 74HC595 has edge-triggered latches, so the outputs will always be one cycle later.
 
The following users thanked this post: BurnedResistor

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21609
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Shift Reg Without latch reg
« Reply #3 on: September 16, 2017, 01:00:33 pm »
If you don't need parallel registering at all, use the original '164.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: BurnedResistor

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3020
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Shift Reg Without latch reg
« Reply #4 on: September 16, 2017, 02:10:25 pm »
How about an RC on the latch to introduce a delay on the latch when driven by clk.  Similar to Roman Black's Shift-1 in a way https://www.romanblack.com/shift1.htm
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 
The following users thanked this post: BurnedResistor

Offline BurnedResistorTopic starter

  • Regular Contributor
  • *
  • Posts: 192
  • Country: at
Re: Shift Reg Without latch reg
« Reply #5 on: September 16, 2017, 02:27:09 pm »
How about an RC on the latch to introduce a delay on the latch when driven by clk.  Similar to Roman Black's Shift-1 in a way https://www.romanblack.com/shift1.htm

A nice idea! However, my sytem will be running at very different speeds (a few hz to a few khz) so I prefer the dedicated chip. I would be woried that that only plays nicely depending on the frequency of the system, frequency of shifts etc.

If you don't need parallel registering at all, use the original '164.

Tim
+1 to 4094 or 74HC4094.

The output latches are level-triggered and can be set to be transparent. The 74HC595 has edge-triggered latches, so the outputs will always be one cycle later.

CD4094 ?


https://www.onsemi.com/pub/Collateral/MC14094B-D.PDF


http://www.redrok.com/CMOS_CD4094BC_8-BitShiftRegister-Latchwith3-StateOutputs_Fairchild.pdf



Regards, Dana.

PERFECT! Thank you all :)

For future reference, how did you go about finding the chip? Any special tricks? Or did you simply know it already?

Thanks again!
 

Offline BurnedResistorTopic starter

  • Regular Contributor
  • *
  • Posts: 192
  • Country: at
Re: Shift Reg Without latch reg
« Reply #6 on: September 16, 2017, 02:31:29 pm »
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1714
  • Country: se
Re: Shift Reg Without latch reg
« Reply #7 on: September 16, 2017, 02:56:03 pm »
You've already got good advice, but I'll chip in anyway...
If you have a spare inverter, you can drive the latch clock with an inverted serial clock, as also shown in the datasheet on page 8.
The output will have a fixed half clock delay wrt the input.
Nandemo wa shiranai wa yo, shitteru koto dake.
 
The following users thanked this post: BurnedResistor

Online Benta

  • Super Contributor
  • ***
  • Posts: 5840
  • Country: de
 
The following users thanked this post: BurnedResistor

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19345
  • Country: gb
  • 0999
Re: Shift Reg Without latch reg
« Reply #9 on: September 16, 2017, 05:45:59 pm »
Can we please see the bigger picture. What are you trying to do? Have you run out of pins on your microcontroller? If so, it's often cheaper to just get the next size up, than adding extra components.

This might not be relevant here, but a handy thing with 74HCT logic is, its inputs are compatible with 3V logic, yet it outputs 5V logic, so it can be used to level shift up to 5V parts.
https://assets.nexperia.com/documents/data-sheet/74HC_HCT4094.pdf
 

Offline BurnedResistorTopic starter

  • Regular Contributor
  • *
  • Posts: 192
  • Country: at
Re: Shift Reg Without latch reg
« Reply #10 on: September 16, 2017, 06:29:07 pm »
Can we please see the bigger picture. What are you trying to do? Have you run out of pins on your microcontroller? If so, it's often cheaper to just get the next size up, than adding extra components.

This might not be relevant here, but a handy thing with 74HCT logic is, its inputs are compatible with 3V logic, yet it outputs 5V logic, so it can be used to level shift up to 5V parts.
https://assets.nexperia.com/documents/data-sheet/74HC_HCT4094.pdf

The bigger picture is a 74 Series Logic Processor :) So don't worry I am-not run out of IO on my processor.

The reason the input needs to be shifted out on the next clock cycle is that the shift register is used as somewhat of a Johnson counter: When a certain feature is used, it activates one pin after the other by shifting a single bit towards the right. The shift register is triggered by some asynchronous feature setting a flip flop and the first cycle of the shift register needs to reset it so that really only a single bit is shifted through. I thought the HC595 did this but because it takes two cycles for the bit to appear on the first pin the shift register ends up shifting two 1's-Hence I need a register without latch.

I did not use the johnson counter as it would cycle through-I need it to only shift the bit through when a certain line (in this case the flipflop) goes high.

Usually it could be an issue that the signal which sets the flipflop is still on when the shift register starts shifting, meaning the flipflop would not be reset. However this is overcome due to the general architecture of the system: The line that set's the flipflop is the reset line of the processor, so as long as it is high the clock is disabled and therefor the register won't shift.


Does that make sense? Thank you for your concern!
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Shift Reg Without latch reg
« Reply #11 on: September 16, 2017, 11:23:59 pm »
Quote
For future reference, how did you go about finding the chip? Any special tricks? Or did you simply know it already?

Just did a search "8 bit shift register fall thru latch"


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 
The following users thanked this post: BurnedResistor

Online Benta

  • Super Contributor
  • ***
  • Posts: 5840
  • Country: de
Re: Shift Reg Without latch reg
« Reply #12 on: September 17, 2017, 10:12:01 am »
Quote
For future reference, how did you go about finding the chip? Any special tricks? Or did you simply know it already?

In my case, I always go to one of the big suppliers of standard logic (NXP, ON, ST, TI) call up the product list for std. logic and select the appropriate area. Then you get a nice list of parts. This approach also helps you get ideas by stumbling over a function you perhaps didn't think of.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf