Esculapio Flores

TO Peg,rhinocerohead and Bigmac,please help !

Discussion created by Esculapio Flores on Jul 26, 2006
Latest reply on Aug 18, 2006 by Esculapio Flores
Hi guys!.
 
Could you help to understand what does these code lines do?
 
Let`s suppose KBD_MAX_ROW=4
 
 1) temp = (1 << KBD_MAX_ROW) - 1   Is this code line equal to 7 (0111)?
 
 
  2)Let`s suppose KBD_COL_DDR= DDRA  and KBD_COL_PORT =PORTA
   
    KBD_COL_DDR  |= temp;            What is the meaning of this notation?
    KBD_COL_PORT &= ~temp;       What is the meaning of this notation?

 
Thanks
 
Ganimides
 

Outcomes