![]() The at24c256 can work on fast mode(fscl(max)=400khz) and ds1307 can work on standard mode (fscl(max)=100khz) but as i said before i incorrectly define fscl=400khz but the ds1307 works for 1 month and after it, it is stops working so now i don`t know that the cause of malfunctioning is the above problem or any other thing. In this file u can see just the i2c bus configuration that i used in my project as you see i have atmega16 as a master device and at24c256 eeprom and ds1307 rtc as slave devices that is connected in the bus. When i checked the program another time i noticed that i incorrectly defined the i2cdelay=1 (means fscl=400khz) and the ds1307 can work only on fscl(max)=100khz but the only thing that i couldn`t understand is that if the ds1307 can not work on fscl=400khz how does my project work for about one month? I have a project that in it i use ds1307 for getting time and having some proccess on it according to a specified time my program is written in bascom and my proccessor is Atmega16 my project works fine for about one month but after this period of time my ds1307 stops working and due to this problem my project is down. When i checked the program another time i noticed that i incorrectly defined the i2cdelay=1 (means fscl=400khz) and the ds1307 can work only on fscl(max)=100khz but the only thing that i couldn`t understand is that if the ds1307 can not work on fscl=400khz how does my project work for about one month? Is it possible that another problem might cause the ds1307 not working. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |