Well i am sorry for posting in wrong format. I am new to this Embedded Domain and Programming Field. For u guys like pro every thing will be silly, but for me even displaying a single character in LCD is a big think.And moreover I m learning now n i would mind getting embarrassing.
As u said i ve debugged the program and i m now getting the count properly. but i don't how to count only once when the led turned off .
if(LED1 == 0) { value++; Count = value; UserMessageStorage[4]= Count/100; Count=(Count-(UserMessageStorage[4]*100)); UserMessageStorage[4]+=0x30; UserMessageStorage[5]= Count/10; Count=(Count-(UserMessageStorage[5]*10)); UserMessageStorage[5]+=0x30; UserMessageStorage[6]= Count%10; UserMessageStorage[6]+=0x30; TotalCount[0] = UserMessageStorage[4]; TotalCount[1] = UserMessageStorage[5]; TotalCount[2] = UserMessageStorage[6]; SerTx(TotalCount[0]); SerTx(TotalCount[1]); SerTx(TotalCount[2]); LED1 = 1; }
Please help me .. thanks for ur information . its really useful MR.Mark