bitwise operators tutorial

hello

i'm an experienced programmer but all high level/gui stuff and as i delve into arduino programming i'm seeing some pretty crazy operators that i have since learnt are 'bitwise operators'

i've never had much use for them so i'm not up to speed, could anybody point me towards some good tutorials?

thanks
jim

... I have a good understanding of boolean logic and binary and hexadecimal number systems and I realise these operators work at a bit level but I guess I'm more interested in their application with microcontrollers, they seem to come up very often.

Jim

Hello

This was the first hit by google "bitwise operators tutorial"

I had read lots of tutorials, but they seemed as abstract as the concepts. While it is easy to understand the basic concepts, it took a real world need and some sample code to understand it better.

For this reason, I created this sample program with lots of comments to help understand bitwise operations in a real world example.

See my response here .. the second set of code has lots of comments to help understand this usage of bitwise operations.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1278540765/1#1

I did this really to help me understand it better too :slight_smile: Any input is welcome.

thanks bpeter, i didn't use google because i was looking for recommendations although the link was helpful

thanks marklar, i'll have a look at your tutorial sounds interesting, i have a real world example to work through, i'm adapting the arduinome firmware for other purposes (arduinomes are arduino based clones of the http://monome.org in case you didn't know)

jim