Hallo zusammen,
an ein bisschen Quältext solls nicht hängen. Ist eigentlich nur eine
geringfügige Änderung eines Bsp.textes von Josef Franz Vögel im
Bascom.
$regfile = "M169DEF.DAT" ' Butterfly
Config Clock = Soft
Disable Interrupts
'configure the date format
Config Date = Ymd , Separator = - '
ANSI-Format
'This sample does not have the clock started so interrupts are not
enabled
' Enable Interrupts
'dim the used variables
Dim Lvar1 As Long
Dim Mday As Byte
Dim Bweekday As Byte , Strweekday As String * 10
Dim Strdate As String * 8
Dim Strtime As String * 8
Dim Bsec As Byte , Bmin As Byte , Bhour As Byte
Dim Bday As Byte , Bmonth As Byte , Byear As Byte
Dim Lsecofday As Long
Dim Wsysday As Word
Dim Lsyssec As Long
Dim Wdayofyear As Word
Do
' Example 1 with internal RTC-Clock
_sec = 12 : _min = 30 : _hour = 18 ' Load
RTC-Clock for example - testing
Lsecofday = Secofday()
Print "Second of Day of " ; Time$ ; " is " ; Lsecofday
Loop
Mit diesem Code macht's im Simulator und im Butterfly keine
fortlaufende Zeit.
Gruß Sebastian