metron9
09-20-2006, 08:52 PM
As I said in another post, I was going to play with shift registers and I setteles on the CD74HC164E
http://www.datasheetcatalog.com/datasheets_pdf/C/D/7/4/CD74HC164E.shtml
The datasheet is not totally clear to me so please correct my assumptions below
Q0 theu Q7 output
CP clock line
MR resets all to low
VCC and GND or course
Here is where I think I understand it
DS1 and DS2
Use either one for data input but set the other one to logic HIGH to enable the shift register
I see using the shiftout command in the basic stamp (I have leds on outputs) that it works but when the data is shifted into the device all of the output lines get a short high pulse of about 60uS. I understand if the number is 128 for example, the first bit shifted out is a 1, so Q0 is set high aparantly for the time it takes the clock to shift the next bit in, a number of 254 would have Q0 high for 60 * 7 uS during the shifting in.
By making the non dataline DS1 or DS2 LOW while the shift in nothing gets shifted in so it must be held high for the shift register to take data.
Is there a way to eliminate this short pulse on outputs that will be 0 during the shift in of data?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think outside the BOX!
http://www.datasheetcatalog.com/datasheets_pdf/C/D/7/4/CD74HC164E.shtml
The datasheet is not totally clear to me so please correct my assumptions below
Q0 theu Q7 output
CP clock line
MR resets all to low
VCC and GND or course
Here is where I think I understand it
DS1 and DS2
Use either one for data input but set the other one to logic HIGH to enable the shift register
I see using the shiftout command in the basic stamp (I have leds on outputs) that it works but when the data is shifted into the device all of the output lines get a short high pulse of about 60uS. I understand if the number is 128 for example, the first bit shifted out is a 1, so Q0 is set high aparantly for the time it takes the clock to shift the next bit in, a number of 254 would have Q0 high for 60 * 7 uS during the shifting in.
By making the non dataline DS1 or DS2 LOW while the shift in nothing gets shifted in so it must be held high for the shift register to take data.
Is there a way to eliminate this short pulse on outputs that will be 0 during the shift in of data?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think outside the BOX!