Search found 2 matches

by datik
31 May 2011 08:57
Forum: mikroBasic Wish List
Topic: CRC for DS1820
Replies: 13
Views: 16954

Re: CRC for DS1820

I can't get the following to work : temp7 := 4 ; if (testbit(PORTB, temp7) <> (p4int.temp7 > 0)) then // If this port changed, start counting You're mixing bit logic with booleans - first part of the expression resuts in 0 or 1, while the second in 0 and 255 (boolean false and true). Use if PORTB.t...
by datik
27 May 2011 12:16
Forum: mikroBasic Wish List
Topic: CRC for DS1820
Replies: 13
Views: 16954

Re: CRC for DS1820

beeing aware this is an old line i try to ask here, because its the only thing i found regarding my trouble :) I can't get the following to work : temp7 := 4 ; if (testbit(PORTB, temp7) <> (p4int.temp7 > 0)) then // If this port changed, start counting p4int is a declared varible of byte. What i wan...

Go to advanced search