| ??? 12/11/03 08:53 Read: times |
#60420 - RE: problems on reading at24c01 Responding to: ???'s previous message |
Hi Michael, I think there is no problem with passage of time between write and read because,before memorise data, I stop the RTC(TR0=0) ,memorise data and then TR0=1. I believe that my problem could be that in my RTC I use variables like SUBSECONDS,SECONDS,MINUTES, HOURS which I memorise them in at24c01 and if my routine for reading is wrong,using the same names when read the memory ,they are up-dated with momen- -tary values from RTC!Is that possible? By the way,do you believe this routine it's cor- -rect: unsigned char i2c_read(void) { unsigned char index,input_data; index=SDATA; input_data=0x00; for(index=0;index<8;index++) { input_data<<=1; SCLK=HIGH; input_data |=SDATA; SCLK=LOW; } return input_data; } Thank you, Stefan |
| Topic | Author | Date |
| problems on reading at24c01 | 01/01/70 00:00 | |
| RE: problems on reading at24c01 | 01/01/70 00:00 | |
| RE: problems on reading at24c01 | 01/01/70 00:00 | |
| RE: problems on reading at24c01 | 01/01/70 00:00 | |
RE: problems on reading at24c01 | 01/01/70 00:00 | |
| RE: problems on reading at24c01 | 01/01/70 00:00 | |
| RE: problems on reading at24c01 | 01/01/70 00:00 |



