I ve been doing a lots of my research for the best procesor to do large sums. is the arm betta fior it? can the x51 do any thing more than 7 bit? you tell me the answers.
The largest numbers the 8051 can accumulate will depend on how much RAM your specific 8051 will have - internally or externally.
Allowing 1kB for a number, you would be able to handle 2^8192 or 10^2466.
Now, exactly why do you wonder which processor that is best suited for handling large sums?
I dont think you got the right answer. the x51 is 8 bit but one is for the positive and one is for the negitive. so only 7 bits is small. 1000 is to large to fit 7 bit. Erik said arm can hold large numbers and can do larger sums.
Erik said arm can hold large numbers and can do larger sums that, of course is true; however ANY processor can do that, the only difference is how long it takes to calculate them.
Erik
PS I have no ised if it is me being quoted, if so, I would like a link
One byte can handle -128 to +127. Or 0 to 255. Two bytes can handle -32768 to +32767 or 0 to 65535. ... 1024 bytes can handle -2^8191-1 to +2^8191 which is about -10^2465 to +10^2465.
10^2465 is a one followed by 2465 zero!1000000000000000000000000000000000000000000000000000000000000000000000000000... ...0000000000000000
Many pocket calculators can compute numbers between -10^99 to +10^99 with a 4-bit or 8-bit processor. The 8051 is an 8-bit processor so it can work with just as large numbers as a normal technical pocket calculator can.
The trick is that you split the number into multiple bytes, just like you split a number into multiple digits (0..9) when you compute a sum in your head or on paper. Only the amount of memory in the processor, or the size of the paper, will limit how big numbers you can work with.
View all questions in Keil forum