How to interface 74hc595 ?

Status
Not open for further replies.
74hc595 + arduino

use this code

void sen_data(unsigned char c)
{
unsigned char i,k;
LATCH =0;
SCK = 0;
for(i=0;i<8;i++)
{
DI = ( C & 0x80)?1:0;
SCK = 1;
c = c << 1;
SCK = 0;
}
LATCH = 1;
 

    jit_singh_tara

    Points: 2
    Helpful Answer Positive Rating
    V

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…