| ??? 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 |
| Topic | Author | Date |
| 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 |



