Using the example from the help file(below). The clock doesn't increment.
[code:1:c40252cd25]
$regfile = "m2560def.dat" ' specify the used micro
$crystal = 16000000 ' used crystal frequency
$baud = 115200 ' use baud rate
$hwstack = 200
$swstack = 220
$framesize = 250
Enable Interrupts
'[now init the clock]
Config Date = Mdy , Separator = / ' ANSI-Format
Config Clock = Soft 'this is how simple it is
'The above statement will bind in an ISR so you can not use the TIMER anymore!
'assign the date to the reserved date$
'The format is MM/DD/YY
Date$ = "11/11/05"
'assign the time, format in hh:mm:ss military format(24 hours)
'You may not use 1:2:3 !! adding support for this would mean overhead
'But of course you can alter the library routines used
Time$ = "23:59:50"
Print "Hello RTC!"
wait 5
Do
Waitms 500
Print Date$ ; Spc(3) ; Time$
Loop
[/code:1:c40252cd25]
Reading threads here from Luciano, the following code link does work
http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=5729
I am looking at this trying to figure out what resources, if any, are being used to inhibit the clock in the first example but works with Luciano's and I am coming up short.
Any ideas?
TIA,
Mark
[b:c40252cd25][color=red:c40252cd25](BASCOM-AVR version : 2.0.7.6 )[/b:c40252cd25][/color:c40252cd25]
↧