Hi all,
Could some one explain the difference between a bitwise AND "$" compared to a conventional AND.
Thanks, Paul
Hi all,
Could some one explain the difference between a bitwise AND "$" compared to a conventional AND.
Thanks, Paul
$ mean that you'll test hexadecimal value
$0f = decimal 15 = 00001111 binary
binary %
Hexadecimal $
Conventional 'AND' is use for condition statements like IF
IF (PORTB=$FF) AND (PORTA.1=1) then
Bitwise AND '&' is to process logical stuff
Let's say PORTB= $F3
Myvar = PORTB & $0F
Result of MyVar will be $03
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks