Over 8-bit EEPROM usage
Posted: Sun Apr 25, 2010 7:45 pm
I'm playing with the sample EEPROM code and can't fully wrap my head around how the registers work.
The code incluides:
First, what does the & 0xFF mean?
I know that >> means to shift right but don't have the fundamental idea of what it means. If you had a 32-bit value, how would the code look then?
Just trying to get a very basic understanding of how it works. Obviously, I'm extremely new.
The code incluides:
Code: Select all
Data_In = DIN & 0xFF
Data_In2 = DIN >> 8
I know that >> means to shift right but don't have the fundamental idea of what it means. If you had a 32-bit value, how would the code look then?
Just trying to get a very basic understanding of how it works. Obviously, I'm extremely new.