Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat > Homework Help


Homework Help If you have a question about an electronics exam, course or paper you can ask in this forum.

Reply
 
Tools
Old 27th August 2009, 09:13 AM   #1
Smile serial in parallel out shift register

i need a simle code for SIPO shift reg....

please help me

i m a new member
ABHISHEK_MIT is offline  
Old 27th August 2009, 10:28 AM   #2
Default

Quote:
Originally Posted by ABHISHEK_MIT View Post
i need a simle code for SIPO shift reg....

please help me

i m a new member
hi,
Please tell us the type of PIC that requires the code, also the type of S/R.?
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 5th September 2009, 06:56 PM   #3
0 out of 1 members found this post helpful.
Default

I have the same question, but for my case is to create a 16 bit shift register with 2 x 8 bit shift register. Anyone can help? Thanks
kingster is offline  
Old 5th September 2009, 11:13 PM   #4
Default

you guys gotta be more specific with your requests.

What are the shift registers connected to?
A PC, or a microcontroller?
What kind of microcontroller are you using?
Do you have a schematic?
How do you code? C or assembly?
johnsmith123 is offline  
Old 6th September 2009, 01:57 AM   #5
Default

Hi,

As about my problem, I'm new in electronic and I have basic knowledge in programming and digital devices. So I'm not sure which part and what kind of devices that I should use to build this circuit. I heard some of them said I need to use (uC), but I'm not good in programming. However, I try to tell as much details as I can to build this circuit. Here is my problem:

1. I need to build a 16 bit shift register with 2 x 8 bit SIPO shift register. *Serial In Parallel Out circuit.
2. I don't know what part that I need to use.
3. I don't know how to program the uC. (But I have some basic knowledge in C).
4. I'm trying to simulate the circuit in a computer program before I build my actual circuit. So I will try to do everything that you teach me in simulator first. I think the program has got enough parts for me to simulate this circuit.
5. I intend to build this circuit for pc. (Data coming from PC). So I believe I need to use uC; however, I just need a concept to create the 16 bit SIPO circuit then I think it okay for me.

Thanks in advance

Last edited by kingster; 6th September 2009 at 02:15 AM.
kingster is offline  
Old 6th September 2009, 02:39 PM   #6
Default

you would need to search for a 74HC595 circuit.
you can also use a 74HC164, which does not have a latch and saves two pins (if you do not have enough pins in your circuit)

If you need 16 bits, you can cascade two shift registers together.

here are some links:
Arduino - ShiftOut
Extending a microcontroller's I/O
.:8 More Leds:. (74HC595 Shift Register) - CIRC05

Good Luck
johnsmith123 is offline  
Old 6th September 2009, 02:45 PM   #7
Default

Quote:
Originally Posted by kingster View Post
4. I'm trying to simulate the circuit in a computer program before I build my actual circuit. So I will try to do everything that you teach me in simulator first. I think the program has got enough parts for me to simulate this circuit.

5. I intend to build this circuit for pc. (Data coming from PC). So I believe I need to use uC; however, I just need a concept to create the 16 bit SIPO circuit then I think it okay for me.
have a look at this link. you can download a model of a 74HC595 for proteus.
http://www.edaboard.com/ftopic79312.html

if you are using the serial port, you don't need a microcontroller. You can toggle DTR and RTS pins to send the data. Latching can be done via TXD pin. You should probably use a max232 circuit.

Last edited by johnsmith123; 6th September 2009 at 02:47 PM.
johnsmith123 is offline  
Old 7th September 2009, 12:51 PM   #8
Default

Thanks. I'm trying to create the circuit now and I'm curious about the maximum bit that a shift register can do. For my case now is to make a 16 bit shift register, but what would be the maximum bit that a shift register can take? Possible to make it like say few thousand bits? Or it will only be able to hold for few hundreds bits?

Last edited by kingster; 9th September 2009 at 11:28 AM.
kingster is offline  
Old 9th September 2009, 07:27 AM   #9
Default

I have some questions about this register, it is a 74HC595, but I don't understand the name for each pin. Can anyone explain that for me?



What mean by RCK, SRCK, SRCLRBAR, GBAR and QHS?

Thanks alot.

Last edited by kingster; 9th September 2009 at 07:29 AM.
kingster is offline  
Old 9th September 2009, 08:11 AM   #10
Default

Quote:
Originally Posted by kingster View Post
I have some questions about this register, it is a 74HC595, but I don't understand the name for each pin. Can anyone explain that for me? ]

What mean by RCK, SRCK, SRCLRBAR, GBAR and QHS?

Thanks alot.
hi,
Look at this image.
Where did you get that diagram.?
Attached Thumbnails
serial in parallel out shift register-image1.png  
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 9th September 2009, 11:03 AM   #11
Default

Hi,

Thanks for the details, I got that diagram in micro cap. By the way, what is the latch and shift clocks? and also what is the purpose to use them? Can I fit in both with the same clock pulse? So in order to keep the circuit working, both GBAR and SRCLRBAR must be remained as logic "1" ? If I intend to make a 16 bits SIPO circuit, is that I need to fit QHS to the SER input in the next 74HC595?

Thanks
kingster is offline  
Old 10th September 2009, 07:58 AM   #12
Default

Quote:
Originally Posted by kingster View Post
Hi,

Thanks for the details, I got that diagram in micro cap. By the way, what is the latch and shift clocks? and also what is the purpose to use them? Can I fit in both with the same clock pulse? So in order to keep the circuit working, both GBAR and SRCLRBAR must be remained as logic "1" ? If I intend to make a 16 bits SIPO circuit, is that I need to fit QHS to the SER input in the next 74HC595?

Thanks
hi,
Get the datasheet for the 74HC595 from Datasheet Archive - Free Datasheet Search Engine - PDF Datasheets - Data Sheet - Datasheet - Application Note - Free Texas Instruments Samples

Anytime you start working on a new device, get the datasheet and study it.
Understanding the datasheet will save you hours of grief.

BTW: the 'BAR' part of the 'label' just means that the signal is active LOW.
Usually written so, /SRCLR , /G or with a bar over the label.
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 10th September 2009 at 07:59 AM.
ericgibbs is offline  
Old 11th September 2009, 03:23 PM   #13
Default

Hi,

Thanks for the details about that, any idea about the maximum bit that a single serial in parallel out shift register can handle? Is that possible to get a register to have a 64 or 128 or more bits shift in one single shift register? Thanks.
kingster is offline  
Old 11th September 2009, 03:31 PM   #14
Default

Quote:
Originally Posted by kingster View Post
Hi,

Thanks for the details about that, any idea about the maximum bit that a single serial in parallel out shift register can handle? Is that possible to get a register to have a 64 or 128 or more bits shift in one single shift register? Thanks.
Some S/R's do have that length, but not all the outputs are on pins.!

Look at the HEF4031 and HEF4517 and HEF4557

or you can connect any number of 8 bit S/R's in series.
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 12th September 2009 at 07:54 AM.
ericgibbs is offline  
Old 12th September 2009, 06:15 AM   #15
Default

Hi,

Thanks, I'll get the data sheet of HEF4031, 4517 and 4557. Any problem will post another question here.
kingster is offline  
Reply

Tags
parallel, register, serial, shift

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
16 bit serial in parallel out shift registers forder Electronic Projects Design/Ideas/Reviews 14 2nd March 2009 09:17 AM
64bit shift register with parallel load yugatharan Electronic Projects Design/Ideas/Reviews 5 14th May 2007 06:55 PM
Shift register mstechca General Electronics Chat 1 19th December 2005 12:45 AM
74165 Prallel in serial out shift register ee04jjn Electronic Projects Design/Ideas/Reviews 5 23rd March 2005 06:16 PM
Using Shift Register toyracer Electronic Projects Design/Ideas/Reviews 5 13th November 2003 02:19 PM



All times are GMT. The time now is 08:59 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker