Need help with Programming
pathikgohil85
Posts: 21
I am working on my code where I have difficulties with combine different binary number and assign to one variable.
Ex : CONFIG VAR BYTE = 000111
according to my logic each bit will stored in different ram location from 0 to 5. Now I have to Check each and every digit from RAM and assign to variable CONFIG. It has to be bit wise operation.
Note : I am using SPSTR so my string will store each value in ram. I have to retrieve it and make single variable again.
can anybody explain me about it?
Thanks a lot. Have a good day.
Regards,
Pathik
Ex : CONFIG VAR BYTE = 000111
according to my logic each bit will stored in different ram location from 0 to 5. Now I have to Check each and every digit from RAM and assign to variable CONFIG. It has to be bit wise operation.
Note : I am using SPSTR so my string will store each value in ram. I have to retrieve it and make single variable again.
can anybody explain me about it?
Thanks a lot. Have a good day.
Regards,
Pathik
Comments
You can do the same thing with hexadecimal values except that you have to handle the characters from "0" to "9" separately from the characters "A" to "F" which get converted into digits from 10 to 15 and the multiplication factor is 16.
I can make my Basic stamp work on 115.2 k with all the guidance provided by people on forum. Special thanks to all.
Pathik Gohil