74F675A problem
where'd find chip? thought had been obsoleted.
anyway, defining pins following names on page 2 of datasheet:
si = datapin
shcp = clockpin
stch = latchpin
cs = chipselect
rw = connect gnd write usage
then write data part:
a potential problem serial data clocked in clockpin going high low.
would have @ how shiftout() written , see if equivalent of this:
digitalwrite (datapin, next_data_bit);
digitallwrite (clockbit, low);
digitalwrite (clockbit, high);
and if you'd okay.
i prefer use spi.transfer() , use atmega hardware shift stuff out faster, think has mode lets select data valid on falling clock edges, instead of rising clock edges.
anyway, defining pins following names on page 2 of datasheet:
si = datapin
shcp = clockpin
stch = latchpin
cs = chipselect
rw = connect gnd write usage
then write data part:
code: [select]
digitalwrite (chipselect, low); // select part data transfer
digitalwrite (latchpin, low); // set move data output register
shiftout (datapin, clockpin, msbfirst, highbyte (your_int_data) ); // shift in data
shiftout (datapin, clockpin, msbfirst, lowbyte (your_int_data) );
digitalwrite (latchpin, high); // move data output register on low high edge
digitalwrite (chipselect, high); // deselect chip
a potential problem serial data clocked in clockpin going high low.
would have @ how shiftout() written , see if equivalent of this:
digitalwrite (datapin, next_data_bit);
digitallwrite (clockbit, low);
digitalwrite (clockbit, high);
and if you'd okay.
i prefer use spi.transfer() , use atmega hardware shift stuff out faster, think has mode lets select data valid on falling clock edges, instead of rising clock edges.
Arduino Forum > Using Arduino > LEDs and Multiplexing > 74F675A problem
arduino
Comments
Post a Comment