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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/29/03 16:28
Read: times


 
#42514 - RE: AD-conv. and averages, tricks needed...
Responding to: ???'s previous message
OK Kari, you ACTUALLY dont have a problem. It is your problem of migrating from HLL to a low level language like assembly code.

Going back to your description, all you need is one sample per hour and using a moving average method at a sampling rate of 0.5 secs ( I am just guessing ) you will need about 8 secs or so to get in about 16 samples at the change of the hour... using Hans code.

Now at the end of the day if you have managed to add these 24 averaged values to a 16 bit location, the worst case value will be 0x17E8 and you have to divide this by 24 to get the mean - not a difficult task again. And if you want to retain precision just multiply the average by 10 and adjust your decimal after the division. So where is the problem ?

Raghu

List of 19 messages in thread
TopicAuthorDate
AD-conv. and averages, tricks needed...            01/01/70 00:00      
   RE: AD-conv. and averages, tricks needed...            01/01/70 00:00      
      RE: AD-conv. and averages, tricks needed...            01/01/70 00:00      
   Read data reliably            01/01/70 00:00      
   RE: AD-conv. and averages, tricks needed...            01/01/70 00:00      
      RE: AD-conv. and averages, tricks needed...            01/01/70 00:00      
         RE: AD-conv. and averages, tricks needed...            01/01/70 00:00      
         RE: AD-conv. and averages, tricks needed...            01/01/70 00:00      
            RE: AD-conv. and averages, tricks needed...            01/01/70 00:00      
   Is the code for 8052?            01/01/70 00:00      
   RE: AD-conv. and averages, tricks needed...            01/01/70 00:00      
      RE: AD-conv. and averages, tricks needed            01/01/70 00:00      
         RE: AD-conv. and averages, tricks needed            01/01/70 00:00      
            RE: AD-conv. and averages, tricks needed            01/01/70 00:00      
         RE: AD-conv. _ Steve            01/01/70 00:00      
            RE: AD-conv. _ Steve            01/01/70 00:00      
            RE: AD-conv. _ Steve            01/01/70 00:00      

Back to Subject List