Hallo Josef,
dieser code
Code:
$crystal = 16000000
$regfile = "m128def.dat"
$hwstack = 128 ' default use 32 for the hardware stack
$swstack = 128 'default use 10 for the SW stack
$framesize = 128 'default use 40 for the frame space
Config Graphlcd = 240 * 128 , Dataport = Portc , Controlport = Porta , Ce = 5 , Cd = 4 , Wr = 1 , Rd = 0 , Reset = 6 , Fs = 7 , Mode = 6
Config Dcf77 = Pind.1 , Debug = 1 , Inverted = 1 , Check = 0 , Update = 1 , Updatetime = 30 , Switchpower = 1 , Powerpin = Pind.4 , Powerlevel = 1 , Timer1sec = 0 , Timer = 1
Enable Interrupts
Config Date = Dmy , Separator = .
Cls
Cursor Off
Do
Locate 1 , 1 : Lcd Time$ ; " " ; Date$
Locate 2 , 1 : Lcd Time(dcf_sec) ; " " ; Date(dcf_day)
Locate 3 , 1 : Lcd Bin(dcf_status) ; " " ; Bin(dcf_bits)
Locate 4 , 1 : Lcd Bdcf_impuls ; " " ; Bdcf_pause
Loop
End
compiliert zu 40 ticks. Dann habe ich keine Probleme mit den '1'. Wenn ich timer1sec=1 schreibe, compiliert er zu 50 ticks.
Gruß
Rolf
Lesezeichen