mardi 5 juillet 2016

Binary AND operator in If statement condition

I Didn't understand this piece of code. Any help?

    for(j = 0x40; j > 0; j = j >> 1) 
    {
     if(0xC9 & j)
       LED = 1;
     else
       LED = 0;
     delay_us(10);
       CLK = 1;
     delay_us(10);
       CLK = 0;
    } 

Aucun commentaire:

Enregistrer un commentaire