At 05:15 AM 1/16/2004, Lucian Copat wrote: >Hello to all Piclisters, > >I am designing a circuit which uses 3 shift-registers to spare some >microcontroller inputs. I actually use 74HC165 as a shift register, but >I found also CD4021. In practice, I found out that the data pin of each >register cannot be tied to a common data bus. Is there a solution to do >this ? (for 3 shift-registers, tie the Q7 data out pin to the same data >bus D0 pin, which is also common to other circuits). The shift registers are daisy-chained: the serial data out of one device connects to the serial data input of the next. You mention CD4021: ground the 1st device's DS input (pin 11), connect Q8 (pin 3) of that chip to the DS input of the 2nd chip, and so on. The last chip's Q8 pin goes to the PIC. Connect all the clock pins together and to the PIC, do the same for the P/S lines. To use: pulse the P/S line high to load the shift registers with the parallel data, then clock the data out. dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 19 years of Engineering Innovation (1984 - 2003) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics