counting with uLong numbers
Posted: Tue May 22, 2012 4:17 am
i have a project that i want to count higher numbers than 65535, the next level is ulong which counts over 4 billion numbers, if i count at a 1khz frequency will there be any issues? it seems a bit insane, how many registers does it take to be able to count to 4.2 billion anyway, 4 registers isnt it (256x256x256x256)? .....question two, in program i have a commanded count in a 16 bit uint variable that goes to 65535, i have the screen to show "error" with numbers above 32767, can i command a number with a 16 bit integer using numbers below 65535 but compare the accumulated count using a 32 bit number in the 16 bit range? reason why i need a 32 bit number is because in another menu option i free count numbers, then save the number and data into memory to later recall the data to recreate that menu options tests, this number can go into the 100,000 ranges.... i hope you guys can make sense out of the way its written since the flowchart is too big to post