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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/10/06 13:36
Read: times


 
#115933 - Three issues
Responding to: ???'s previous message
Veena, your use of RTC in this instance was extremely confusing. From what I understand we have two 'RTCs' - one is the timer internal to the microprocessor and the other for timekeeping connected via the i2c bus.

http://www.maxim-ic.com/appnotes....umber/3300

The above appnote should give you some guidance on how to access the information in the DS1307 RTC conencted via the i2c bus. The operations performed via the i2c bus are the same regardless of which microprocessor you're using however the actual method of accessing the i2c bus can differ between microcontrollers. Some microcontrollers have i2c hardware (such as yours) whereas others use port pins and software to perform the i2c operations. You can choose which method you wish to use. Be aware that not all i2c clock chips are the same - you need to target your code to a particular type, so using code for a philips RTC is useless if you're using a Dallas DS1307.

So, to solve your problem, there are three issues:
1/ the RTC inside the microprocessor
2/ the i2c interface
3/ the DS1307




List of 23 messages in thread
TopicAuthorDate
How to enable the oscillator in RTC?            01/01/70 00:00      
   I2C Code            01/01/70 00:00      
   SMBus include SCL and SDA lines            01/01/70 00:00      
      derivative or deviate?            01/01/70 00:00      
      I2C RTC            01/01/70 00:00      
         be careful            01/01/70 00:00      
   I2C program and controller            01/01/70 00:00      
      since you are using a derivative (F120)            01/01/70 00:00      
         I used the Code Architect....Erik Sir,            01/01/70 00:00      
            Lost in confusion.            01/01/70 00:00      
               the confooosion is ...            01/01/70 00:00      
   To display time            01/01/70 00:00      
      is reading that tough, evidently it must            01/01/70 00:00      
   I2C RTC Interfacing with 8051            01/01/70 00:00      
      horsefeathers            01/01/70 00:00      
   My position in this I2C RTC....            01/01/70 00:00      
      yes, after 15 minutes            01/01/70 00:00      
      Three issues            01/01/70 00:00      
   yes,after 15 minutes...            01/01/70 00:00      
      More specifically....            01/01/70 00:00      
      use the debugger            01/01/70 00:00      
   Thank you ...            01/01/70 00:00      
      Persistance wins again            01/01/70 00:00      

Back to Subject List