Giuseppe
11-16-2009, 09:50 AM
Hey guys. I have been looking into the functions of shift register and I am confused about one detail, how would a BS2 send a bit of data after each clock pulse? I am interested in connecting a bs2 to a shift register (8 bit, SIPO) and then connect the data out to the LEDs of a seven segment display to show numbers. Now correct me if I am wrong, shift registers basically just take one bit after one clock pulse.
My understanding of a SIPO 4 bit. I dont want to use a 8 bit example since its more typing.
1011 [0000]
The 1011 is the data "waiting" to be shifted into the blank slots of the register. So one clock pulse will have [1000], another one after that will become [1100] and so on right? But how hows the bs2 send the 1011 in this example to the data in pin? Does it send it to the register through a SEROUT command in 4 bit strings and the register "holds" onto it until it is shifted? Or do I simply have to change the state of a general bs2 output pin to LOW of HIGH? If it is just switching from LOW to HIGH, wouldn't that be a pain to code?
Simple example code would be cool to show either concept.
My understanding of a SIPO 4 bit. I dont want to use a 8 bit example since its more typing.
1011 [0000]
The 1011 is the data "waiting" to be shifted into the blank slots of the register. So one clock pulse will have [1000], another one after that will become [1100] and so on right? But how hows the bs2 send the 1011 in this example to the data in pin? Does it send it to the register through a SEROUT command in 4 bit strings and the register "holds" onto it until it is shifted? Or do I simply have to change the state of a general bs2 output pin to LOW of HIGH? If it is just switching from LOW to HIGH, wouldn't that be a pain to code?
Simple example code would be cool to show either concept.