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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/20/09 12:17
Read: times


 
#171793 - Convention is no code in .H files
Responding to: ???'s previous message
The convention is to use a .H file for declarations and function prototypes.

Use .C files for the actual code. The .C file will #include any relevant .H files.

Your project will consist of several .C files.

If you read the data sheet for the DS1307, you will see that most of the registers return data in BCD. So performing decimal arithmetic will produce garbage.

David.

List of 5 messages in thread
TopicAuthorDate
89V51 and DS1307            01/01/70 00:00      
   Convention is no code in .H files            01/01/70 00:00      
      Timer not ticking            01/01/70 00:00      
         Read the data sheet.            01/01/70 00:00      
            Nice decomposition.            01/01/70 00:00      

Back to Subject List