Hello! Problem solved. It is my fault. >> i1 = 1024; >> i2 = i1 >> 2; >> c1 = (unsigned char)i1>>2; >> >> Why c1 = 0? Must be c1 = 256! i1 = 1023; ! i2 = i1 >> 2; c1 = (unsigned char)i1>>2; c1 = 255 ! -- Best regards, Roman Antoshchenkov mailto:djantoxa@rambler.ru
Message
Re[2]: [AVR-Chat] logical shift operation
2009-06-27 by Антощенков Роман Викторович