![]() ![]() ![]() 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. If it's off in Proteus, how could it possibly grab it? I digress. 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). 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. 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. |