This was my first option, but for some reason the eeprom does not store the data this way.Just use:
I2CWRITE SDA,SCL,CTW,ADDR,[TEMP]
Actually, with the 12F675 chip this eeprom works well with :
Code:I2CWRITE SDA,SCL,CTW,ADDR,[temp.highbyte] pause 10 ADDR=ADDR+1 I2CWRITE SDA,SCL,CTW,ADDR,[temp.lowbyte]
But not with the 16F88.
I got it working with :
The problem now is for the lenght of the tempe value when over 125ºCCode:I2CWRITE SDA,SCL,CTW,ADDR.highbyte,addr.lowbyte,[tempe] pause 10 ADDR=ADDR+1 I2CWRITE SDA,SCL,CTW,ADDR.highbyte,addr.lowbyte,[tempe]
.


 
						
					 
			 
			 
			 
					
					

 
 
		 
				
				
				
				
			

Bookmarks