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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/13/08 20:16
Read: times


 
#156668 - Some Comments might help
Responding to: ???'s previous message
Comments in the area in question might help.
I suspect your code is Very inefficient. But I doubt that is the issue. First int should only be used for signed numbers on the 8052 since it has no hardware support for signed. Your intermediate calculation are truncated.
frequency= (a_dec * 100000UL) +(b_dec*10000UL) + (c_dec*1000U)+(d_dec*100U)+(e_dec*10U)+(f_dec);


you may need a cast (((unsigned long)a_dec * 100000UL)

List of 14 messages in thread
TopicAuthorDate
serial communication            01/01/70 00:00      
   Have you tried the simulator?            01/01/70 00:00      
   Some Comments might help            01/01/70 00:00      
      what happened to indentions ???            01/01/70 00:00      
         Readability            01/01/70 00:00      
            there is a famous story            01/01/70 00:00      
   My head hurts            01/01/70 00:00      
   6 Ways to Write (& post) More Comprehensible Code            01/01/70 00:00      
      Re: 6 Ways to Write (& post) More Comprehensible            01/01/70 00:00      
   a personal opinion            01/01/70 00:00      
      Problem aided by bigger screen...            01/01/70 00:00      
         key word 'modest' I totally agree            01/01/70 00:00      
      Blank Lines: My Opinion            01/01/70 00:00      
         Avoided? Feed the wolves with him            01/01/70 00:00      

Back to Subject List