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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/19/06 18:00
Read: times


 
#126759 - here is explanation
Responding to: ???'s previous message
all variables declared as byte , PM ,Hours.

PM = Hours Or &B00100000 //
I2cstart // bus started
I2cwbyte &HD0 //1307 slave address
I2cwbyte &H02 //hours register
I2cwbyte Pm // entering to bit 6 of reg 02
I2cstop // bus termination

when I read bit 5 of hour register it returns 0 always which is AM .

List of 10 messages in thread
TopicAuthorDate
RTC question 1307dallas            01/01/70 00:00      
   which tries?            01/01/70 00:00      
      here is explanation            01/01/70 00:00      
         who asked for an 'explanation'?            01/01/70 00:00      
         Bit 5 or 6 ?            01/01/70 00:00      
   here it is snippets            01/01/70 00:00      
      Address of Seconds REG -- correction            01/01/70 00:00      
      which assembler/compiler 'understand' this?            01/01/70 00:00      
   How to post code            01/01/70 00:00      
   Dallas DS1307 - where to start            01/01/70 00:00      

Back to Subject List