andrewgodfrey
New Member
Hi.
I am planning to design a countdown timer with a picaxe 18x ,7 segment displays and a DS1307 real time clock chip.
As I do not yet have a DS1307,I have been experimenting with the Picaxe VSM program.
The program below has replaced the sample program that comes with the VSM program called "AXE110 datalogger.bas", and I have been using the schematic of the same name.
When I run the program, the lcd display shows hours:min:sec.
But the seconds value can suddenly jump several seconds and count to 100 instead of only 59.
Have I made a mistake with my program, or is there a bug in the VSM simulator?
Thanks,
Russell.
I am planning to design a countdown timer with a picaxe 18x ,7 segment displays and a DS1307 real time clock chip.
As I do not yet have a DS1307,I have been experimenting with the Picaxe VSM program.
The program below has replaced the sample program that comes with the VSM program called "AXE110 datalogger.bas", and I have been using the schematic of the same name.
When I run the program, the lcd display shows hours:min:sec.
But the seconds value can suddenly jump several seconds and count to 100 instead of only 59.
Have I made a mistake with my program, or is there a bug in the VSM simulator?
Code:
i2cslave %11010000, i2cslow, i2cbyte
writei2c 0,($00,$00,$1,$03,$25,$12,$03,$10) 'Set time to 1:00:00 am on 25/12/03
Showtime:
readi2c 0,(b0,b1,b2)
serout 6,t2400,(254,128,#b2,":",#b1,":",#b0)
goto Showtime
Thanks,
Russell.