Nov 9, 2006 #1 T tom_hanks Full Member level 5 Joined Aug 28, 2003 Messages 243 Helped 14 Reputation 28 Reaction score 1 Trophy points 1,298 Activity points 1,571 hi, I have two counter in uC...8 bit now i want to acheive a biggeer value of counting in C... what is possible way to acheive the bigger value of counting for C & uC... tom
hi, I have two counter in uC...8 bit now i want to acheive a biggeer value of counting in C... what is possible way to acheive the bigger value of counting for C & uC... tom
Nov 9, 2006 #2 A Anno Advanced Member level 4 Joined Feb 8, 2006 Messages 106 Helped 14 Reputation 28 Reaction score 0 Trophy points 1,296 Location South Africa Activity points 1,899 counting in C... what are these declared as ? int? make it a long int .
Nov 9, 2006 #3 T tom_hanks Full Member level 5 Joined Aug 28, 2003 Messages 243 Helped 14 Reputation 28 Reaction score 1 Trophy points 1,298 Activity points 1,571 Re: counting in C... i declare it as volatile unsigned char ms_100_count;
Apr 11, 2007 #4 S shabab Member level 3 Joined Apr 3, 2007 Messages 57 Helped 3 Reputation 6 Reaction score 0 Trophy points 1,286 Activity points 1,537 Re: counting in C... Define Array of Char as long as you want then make a function that increament in array
Re: counting in C... Define Array of Char as long as you want then make a function that increament in array
Jun 14, 2007 #5 D dilraj.n Advanced Member level 4 Joined Feb 2, 2007 Messages 104 Helped 14 Reputation 28 Reaction score 7 Trophy points 1,298 Activity points 1,730 Re: counting in C... declare it as unsigned long ms_100_count; so u can count upto 0xFFFFFFFF
Jun 18, 2007 #6 B booklog Junior Member level 3 Joined Jun 22, 2006 Messages 30 Helped 3 Reputation 6 Reaction score 0 Trophy points 1,286 Activity points 1,441 Re: counting in C... If you want still bigger declare it as long long type, which is i think 8 bytes long
Re: counting in C... If you want still bigger declare it as long long type, which is i think 8 bytes long