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:13
Modified:
  10/19/06 18:23

Read: times


 
#126761 - here it is snippets
Responding to: ???'s previous message
//this snippet is being used to set bit 5 to PM
Pm = Hours Or &B00010000 // ORed
I2cstart // Generate start
I2cwbyte &HD0 // Slave adsress
I2cwbyte &H02 // Address of hour REG
I2cwbyte Pm // set bit 5
I2cstop

// this routine displays the bits status
If Hours.5 = 0 Then
Ampm1 = "AM" // AM logic lo
Else
Ampm1 = "PM" // PM logic hi

End If


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