Hello Everybody,
I want to settup shift registers TPIC6B595N to communicate with Arduino Nano V3 with SPI communication. The shematic of how I wired everything up si here:
After this, I upload this code on Arduino:
#include
const byte LATCH = 10;
void setup ()
{
SPI.begin ();
}
void loop ()
{
digitalWrite (LATCH, LOW);
SPI.transfer (0xFF);
digitalWrite (LATCH, HIGH);
delay(1000);
digitalWrite (LATCH, LOW);
SPI.transfer (0x00);
digitalWrite (LATCH, HIGH);
}
As you can see from code, I just want to test addressing of all shift register outputs to high and then waith for 1000 ms and then turn the outputs off. But nothing happens, ON LED diode doesnt blink.
Does anybody have an idea what I missed of skipped ? What can be wrong here?
Here is datasheet of shift registers: http://www.ti.com/lit/ds/symlink/tpic6b595.pdf