Discussion in "PIC Microcontroller Discussion" started by    kingrosekhan123    Apr 11, 2013.
Thu Apr 11 2013, 01:44 am
#1
please help me in making frequency counter ccp module.
please give me ideas..

i ahve short time to complete it please..
Thu Apr 11 2013, 03:37 am
#2
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
#3
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'

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

ytaletjkca
Wed May 15 2024, 09:45 am
MildredWoumb
Wed May 15 2024, 04:07 am
NaKrutkADamb
Wed May 15 2024, 12:03 am
MichaelGot
Tue May 14 2024, 04:08 pm
FrankTrelm
Tue May 14 2024, 10:39 am
BillyTum
Tue May 14 2024, 09:08 am
Loganbag
Tue May 14 2024, 04:05 am
MichaelMog
Tue May 14 2024, 03:58 am