??? 03/26/08 18:02 Read: times |
#152574 - 24 bit number comparison in a 8 bit mc |
I am using C8051F044R for my project.
There is a need to find out if the value read and stored in 3 variables is greater than 0649C6h . Please can someone give me tips on how to go about it? Basically I read the port 3 times and get 3 bytes, let us say, 05h,45h,44h which correspond to "054544h" and I will have to see if the above value is greater than 0649C6h. Since C8051F044R is a 8 bit micro-controller we can process only 8 bits at a time. But 0649C6h or 054544h is a 24 bit number. I need some help on 24 bit number comparison in a 8 bit micro-controller. I did search the forum for sample code and did not find any. Thanks |
Topic | Author | Date |
24 bit number comparison in a 8 bit mc | 01/01/70 00:00 | |
assembler or C | 01/01/70 00:00 | |
How about this? (union, C-compiler, assembler) | 01/01/70 00:00 | |
helpful! | 01/01/70 00:00 | |
OT: shifting 32 bit | 01/01/70 00:00 | |
re: OT: shifting 32 bit | 01/01/70 00:00 | |
Thanks![]() | 01/01/70 00:00 |