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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/11/07 15:23
Read: times


 
#130657 - look at the I2C document...
Responding to: ???'s previous message
... or any I2C EEPROM document on how the START and STOP is properly sequenced. You create a mess in your I2C_STOP routine:
I2C_STOP:
	SETB SCL   ;you should first make sure SDA is low
	CLR SDA    ;if SDA was high, this is a START - some memories might not like it
	NOP
	SETB SDA   ;this is a STOP, but...
	NOP
	CLR SCL   ;this is a mess - after STOP you are not supposed to put SCL low
	RET


You might want to check the proper sequencing also in I2C_START, I did not check (not to spoil your fun... :-) )

JW


List of 13 messages in thread
TopicAuthorDate
I2C clock freq.            01/01/70 00:00      
   Incorrect            01/01/70 00:00      
   release SDA bit            01/01/70 00:00      
      My Code            01/01/70 00:00      
         bingo! I guessed it!            01/01/70 00:00      
            No Change...            01/01/70 00:00      
               Please can you comment your code            01/01/70 00:00      
               Define Bad            01/01/70 00:00      
                  Why?            01/01/70 00:00      
                     'scope            01/01/70 00:00      
                     'scope            01/01/70 00:00      
                        New Image            01/01/70 00:00      
                           look at the I2C document...            01/01/70 00:00      

Back to Subject List