Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Interfacing / Re: Can I share the clock wire for some Shift register on: June 03, 2010, 04:10:28 pm
I found the reason... It's my fault...

In fact for the 74HC165, the pinMode for the DATA pin is INPUT, and for the two other 74HC595, the pinMode for the DATA pin is OUTPUT.

In my software, I initialized the pinMode in the constructors of the classes and I never changed them after...

I tried to common the Data pin for the two 74HC595, and that's work fine.
If I want to common the Data pin withe the 74HC165, I need to change the pinMode for the DATA pin, each time...

So, I will use for my 3 Shift Registers 6 wires: it's not so bad  smiley

Thanks for your help.
2  Forum 2005-2010 (read only) / Interfacing / Re: Can I share the clock wire for some Shift register on: June 03, 2010, 03:47:09 pm
When I common the clock wires, that's work fine, but I cannot common the Data wires  smiley-sad
3  Forum 2005-2010 (read only) / Interfacing / Re: Can I share the clock wire for some Shift register on: June 03, 2010, 02:40:27 pm
I don't want to chain them because I don't want to change the 3Wires LCD library. I just want to use them independently.

So, as you said, I will common the clock and the data wire and use independent latches.

Thanks you very much. I win 2 others wires.
4  Forum 2005-2010 (read only) / Interfacing / Re: Can I share the clock wire for some Shift register on: June 03, 2010, 02:24:39 pm
http://twitpic.com/1tlybb/full
5  Forum 2005-2010 (read only) / Interfacing / Can I share the clock wire for some Shift register on: June 03, 2010, 02:23:34 pm
Hi,

I searched information on this forum without success for my project.
Perhaps that somebody who have some knowledge in electroni can help me. Thanks in advance.

My problem is simple.
- I have a Shit Register 74HC595 to manage a LCD screen (I use the LCD3Wires library)
- I have a Shift Register 74HC595 to manage some LEDs
- I have a Shift Register 74HC165 to manage some buttons

For each Shift Register, I use 3 wires (Clock, Latch and Data), so a total of 9 wires  :'(

I think that it's possible to optimize that and use less wires but I don"t want to use the I2C port.

I thought that I can use the same wire for the 3 Shift registers. If it's possible, it will be a good deal for me because with 7 wires, I could manage my LCD, 8 Leds and 8 Buttons.

Do you thing that's possible?

Here is a schematic of my dream:  h t t p : // twitpic.com/1tlybb/full

Perhaps,a better solution exist?
Thanks in advance.
Pages: [1]