i want to make frequency counter using LCD
Discussion in "PIC Microcontroller Discussion" started by kingrosekhan123 Apr 11, 2013.
Thu Apr 11 2013, 01:44 am
please help me in making frequency counter ccp module.
please give me ideas..
i ahve short time to complete it please..
please give me ideas..
i ahve short time to complete it please..
Thu Apr 11 2013, 03:37 am
char *freq = "00000.00"; //what is meant by it..
freq[0] = (freq2write/10000000) + 48;
freq[1] = (freq2write/1000000)%10 + 48; what is mean by these commands...
freq[2] = (freq2write/100000)%10 + 48;
freq[3] = (freq2write/10000)%10 + 48;
Mon Apr 15 2013, 05:00 pm
is basically conversion of freq2write from integer to ascii which is stored in freq array.
48 is ascii code of digit '0'. whatever digit you get by dividing and taking mod is then added to 48 to get ascii character of that digit. e.g. 4 + 48 gives you ascii value of digit '4'
48 is ascii code of digit '0'. whatever digit you get by dividing and taking mod is then added to 48 to get ascii character of that digit. e.g. 4 + 48 gives you ascii value of digit '4'
Powered by e107 Forum System