Where to order IC's
#1
Posted 23 March 2011 - 01:30 PM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#2
Posted 23 March 2011 - 01:42 PM
#3
Posted 23 March 2011 - 01:47 PM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#4
Posted 23 March 2011 - 01:56 PM
#5
Posted 23 March 2011 - 02:07 PM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#6
Posted 23 March 2011 - 02:38 PM
http://www.nxp.com/d...74HC_HCT165.pdf
Just connect the Q7 (serial out) of the first chip to the DS (serial in) to the second chip. The second chip will be connected as usual to the N.
Also, just tie together the clocks, thus the PL's (=SS).
The problem is that the serial out is *NOT* three-state, so you cannot connect other devices on the same MISO, due collision. If that's not a probelm, your job is done.
Cheers
#7
Posted 23 March 2011 - 03:16 PM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#8
Posted 23 March 2011 - 07:26 PM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#9
Posted 23 March 2011 - 10:05 PM
Thanks again, Mario!
I succeeded to bind 3 74HC595's in serie to control 24 leds. yay
Only downside is that I have some big modifications to do to my code. I suppose it starts with Ctrl+A and then Del.
Just comment it out with a note as to why until your done writing your code. you may end up reusing parts of it later or at least you'll have a record of what you tried.
http://jarrodsinclair.wordpress.com//
#10
Posted 23 March 2011 - 10:17 PM
Ic74HC595 IcOut1 = new Ic74HC595(SPI_Devices.SPI1, Pins.GPIO_PIN_D10); Ic74HC595 IcOut2 = IcOut1.LinkedSlave(); Ic74HC595 IcOut3 = IcOut2.LinkedSlave(); // Observant readers will notice the pins are prefixed GPO instead of GPIO. // This is because the pins can only function as output pin. OutputPortShift[] pin = { new OutputPortShift(IcOut1, Ic74HC595.Pins.GPO_PIN_D0, false), new OutputPortShift(IcOut1, Ic74HC595.Pins.GPO_PIN_D1, false), new OutputPortShift(IcOut1, Ic74HC595.Pins.GPO_PIN_D2, false), new OutputPortShift(IcOut1, Ic74HC595.Pins.GPO_PIN_D3, false), new OutputPortShift(IcOut1, Ic74HC595.Pins.GPO_PIN_D4, false), new OutputPortShift(IcOut1, Ic74HC595.Pins.GPO_PIN_D5, false), new OutputPortShift(IcOut1, Ic74HC595.Pins.GPO_PIN_D6, false), new OutputPortShift(IcOut1, Ic74HC595.Pins.GPO_PIN_D7, false), new OutputPortShift(IcOut2, Ic74HC595.Pins.GPO_PIN_D0, false), new OutputPortShift(IcOut2, Ic74HC595.Pins.GPO_PIN_D1, false), new OutputPortShift(IcOut2, Ic74HC595.Pins.GPO_PIN_D2, false), new OutputPortShift(IcOut2, Ic74HC595.Pins.GPO_PIN_D3, false), new OutputPortShift(IcOut2, Ic74HC595.Pins.GPO_PIN_D4, false), new OutputPortShift(IcOut2, Ic74HC595.Pins.GPO_PIN_D5, false), new OutputPortShift(IcOut2, Ic74HC595.Pins.GPO_PIN_D6, false), new OutputPortShift(IcOut2, Ic74HC595.Pins.GPO_PIN_D7, false), new OutputPortShift(IcOut3, Ic74HC595.Pins.GPO_PIN_D0, false), new OutputPortShift(IcOut3, Ic74HC595.Pins.GPO_PIN_D1, false), new OutputPortShift(IcOut3, Ic74HC595.Pins.GPO_PIN_D2, false), new OutputPortShift(IcOut3, Ic74HC595.Pins.GPO_PIN_D3, false), new OutputPortShift(IcOut3, Ic74HC595.Pins.GPO_PIN_D4, false), new OutputPortShift(IcOut3, Ic74HC595.Pins.GPO_PIN_D5, false), new OutputPortShift(IcOut3, Ic74HC595.Pins.GPO_PIN_D6, false), new OutputPortShift(IcOut3, Ic74HC595.Pins.GPO_PIN_D7, false) }; while (true) { // Loops all leds to the right for (var OutputPortCount = 0; OutputPortCount < pin.Length; ++OutputPortCount) { pin[OutputPortCount].Write(true); Thread.Sleep(50); pin[OutputPortCount].Write(false); } // Loops all leds back to the left for (var OutputPortCount = pin.Length - 2; OutputPortCount > 0; --OutputPortCount) { pin[OutputPortCount].Write(true); Thread.Sleep(50); pin[OutputPortCount].Write(false); } }
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users