If there's any other info you guys need, I can share it first thing in the morning. Here's the code, I hope you guys can shed some light.Įdit: Forgot to say I'm using the Atmega328p, external clock at 16MHz, unprogrammed divide by 8. He says there shouldn't be any delays, and I do agree, but it won't progress without them. The two push buttons are used to set our real time clock (RTC). So with two push buttons we need a total of 5 pins. The I2C bus has two lines: SDA (serial data) and SCL (serial clock), an addition rest pin is required for the SSD1306 OLED. If it's off in Proteus, how could it possibly grab it? I digress. The DS1307 RTC as well as the SSD1306 OLED shares the same I2C bus which minimizes the pin used. Prof said Proteus would do that a great deal, to a much worse degree, but that it should still grab the time (since the DS1307 is initialized from PC clock). This ends up making each second in Proteus equal 1.5 seconds in real time. The time elapses on Proteus ends up going super slow, and although the date and time is right, it freezes at that point (sometimes after starting up the program, I have to delete the variables from the watch window and re-add them to get them to work, but that might be besides the point). Jam digital dengan tampilan seven segmen dan LCD menggunakan RTC DS1307 dan mikrokontroler AVR atmega 8535 Maskuri Pati Indonesia 23:37:00 Daripada bengong gak ada kerjaan (lagi libur) pas baca-baca blog kawan ternyata ada yang membahas jam digital dengan tampilan LCD. I think I've done this in a nice and structured way (for my skill level), but the problem is that if I take out all delays, it won't work. 3 Langkah-langkah membuat program CVAVR mengakses Modul RTC DS3231. What I'm trying to do is to store the time and date into variables, and view this through the watch window. I'm using Proteus software and I2C with the DS1307 RTC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |