M-bit ring counter/shift register

Discussion in 'General Electronics Chat' started by dude888, Sep 24, 2007.

  1. dude888

    Thread Starter New Member

    Sep 24, 2007
    3
    0
    Hi all,

    I need an 8-bit shift register which can shift either 1 bit or 5 bits. The register should be able to rotate itself. A ring counter is able to shift 1-bit continuously, but I have no idea how to shift register 5-bit continuously. In the case of 5-bit shift, it should like the following,
    bit0->bit5->bit2->bit7....

    Does anyone have idea how to implement this shift register?

    Thanks
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Look at the data sheet for a 74LS95. It's a 4 bit shift register with parallel load.
     
  3. dude888

    Thread Starter New Member

    Sep 24, 2007
    3
    0
    Thanks for reply, but how do you realize 5-bit shift?
     
  4. thingmaker3

    Retired Moderator

    May 16, 2005
    5,072
    6
    Use on and one quarter 74LS95 chips. Tie Q3 o/p of first chip to Ds of second chip. Tie Q0 o/p of second chip to Ds of first chip. Ignore Q1, 2, and 3 of second chip.
     
  5. dude888

    Thread Starter New Member

    Sep 24, 2007
    3
    0
    Perhaps I didn't make myself clear. The 1-bit and 5-bit shift should be implemented with the same chips. Yes, I know that 1-bit and 5-bit shift could be realized with two cascaded 74LS95 chips. But my application is that depending on an detector's output, the shift register should be able to shift either 1-bit or 5-bit continuously. In my opionion, your suggestions need 4 chips, 2chips for 1-bit shift and 2 chips for 5-bit shift. Is it possible to just use 2 chips for both 1-bit and 5-bit shift?
     
  6. Ron H

    AAC Fanatic!

    Apr 14, 2005
    7,050
    657
    With a shift register, you can only shift one bit per clock cycle. You either have to do multiple cycle shifts, or look into barrel shifters (Google).
    Is your process slow enough to allow the use of a microcontroller? That should be simpler.
     
Loading...