۱۶-مرداد-۱۳۹۲, ۲۱:۲۱:۳۸
سلام/من به یه خط ازبرنامه برخوردم که بدون نوشتن رو حافظهeeprom از اون فراخونی کرده میشه توضیح بدین چرا این طوریه////برنامه تو بسکامه/اینم برنامش/وچرا از200شروع کرده؟
کد php:
$regfile = "m8def.dat"
$crystal = 1000000
Config Clock = Soft
Config Date = Ymd , Separator = /
Config Portb = Input
Ad Alias Pinb.0
Seet Alias Pinb.1
De Alias Pinb.2
Save Alias Pinb.7
Mad Alias Pinb.6
Mde Alias Pinb.5
Delet Alias Pinb.4
Config Timer1 = Counter , Edge = Rising
Enable Interrupts
Dim A As Byte , W As Byte , X As Word , G As String * 16 , M As Byte , _
H As Byte , Mi As Byte , S As Byte , Y As Byte , Mo As Byte , D As Byte , _
O As Bit , F As Byte , Oo As Bit , K As Bit
Counter1 = 0
Main:
Readeeprom Counter1 , 200
Waitms 5
Readeeprom _hour , 201
Waitms 5
Readeeprom _min , 202
Waitms 5
Readeeprom _sec , 203
Waitms 5
Readeeprom _year , 204
Waitms 5
Readeeprom _month , 205
Waitms 5
Readeeprom _day , 206
Waitms 10