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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/04/03 18:05
Read: times


 
#35623 - RE: Problem: 89c52 with 24c65
Bert , does your code resemble something like this.
I dug this out of a a project I did in 1997 , and it worked okay.


#define HIGH_U8(U16) ((U8)(U16>>8))
void write_ext_eeprom(U16 address, U8 data) {

i2c_start();
i2c_write(0xa0);
i2c_write(HIGH_U8(address));
i2c_write(address);
i2c_write(data);
i2c_stop();
delay_ms(11);
}


U8 read_ext_eeprom(U16 address) {
U8 data;

i2c_start();
i2c_write(0xa0);
i2c_write(HIGH_U8(address));
i2c_write(address);
i2c_start();
i2c_write(0xa1);
data=i2c_read();
i2c_stop();
return(data);
}



List of 36 messages in thread
TopicAuthorDate
Problem: 89c52 with 24c65            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
Bart (or whatever)            01/01/70 00:00      
RE: bart complaint            01/01/70 00:00      
RE: Bart (or whatever)            01/01/70 00:00      
RE: Bart (or whatever)            01/01/70 00:00      
24c65 upper addressing problem(s)            01/01/70 00:00      
RE: bart complaint            01/01/70 00:00      
RE: 24c65 upper addressing problem(s)            01/01/70 00:00      
RE: 24c65 upper addressing problem(s)            01/01/70 00:00      
RE: bart complaint            01/01/70 00:00      
RE: bart complaint            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: unfortunately            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      
RE: Problem: 89c52 with 24c65            01/01/70 00:00      

Back to Subject List