I have a 16 bit register (0-15). I want to store a 10 bit number in bits 5-14 as bits 0-4 are reserved. When I use the left shift operator the number multiplies by 32, therefore when I read the register I have stored a different value. Is there a way around this?



LinkBack URL
About LinkBacks


