Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
01/03/12 22:12
  01/03/12 22:17

Read: 434 times

#185293 - Check some small things
Responding to: ???'s previous message
Anil Kumar said:

sample[0] = f;
if (TH0 < 10)
if (scale > 9)

Look at the code Here you first make TH0 = 0 & then you check the condition for TH0 < 10 which is always satisfied.Check your code for that view point.

I didn't get how you calculate the freq. but one thing I want to point out is TH0 & TL0 will become 0 after crossing 65535 (TH0TL0) count. at that time you should increment another counter to store how much roll over occurs while working with higher frequencies.

learn also how to post source code from

List of 7 messages in thread
frequency counter      Anil Kumar      01/03/12 02:41      
   Care for details      Per Westermark      01/03/12 02:55      
      frequency counter      Anil Kumar      01/03/12 04:28      
         Still not correctly posted code. Still arbitrary floats...      Per Westermark      01/03/12 04:48      
         Check some small things      Maunik Choksi      01/03/12 22:12      
            typical      Erik Malund      01/04/12 07:42      
   what a mess      Erik Malund      01/03/12 03:41      

Back to Subject List