Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/19/01 15:39
Read: times


 
#15058 - RE: Counting bits
Hi J.,

adding of bits not allowed in C51. The bits must be XORed :


#include <reg51.h>

bit par16( unsigned int w )
{
bit p8;

ACC = w;
p8 = P;

ACC = w >> 8;
return P ^ p8;
}


Peter


List of 8 messages in thread
TopicAuthorDate
Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      

Back to Subject List