RTC not updating correctly with PulseOut
Posted: 23 March 2015, 3:39 AM
The RTC does not get updated correctly on native mode devices when using PulseOut .
I've seen this problem with 328n , ZX24s and ZX24u .
I've seen this problem with 328n , ZX24s and ZX24u .
Code: Select all
Option TargetDevice ZX24s ' Works fine with ZX24r
Dim SeppoS as single
Sub Main()
Do
Debug.Print fmt(Timer,1);" ";
If Timer - SeppoS >= 0.25 then
Debug.Print
Debug.Print "Timing : ";Timer-SeppoS
SeppoS = Timer
End if
Call PulseOut(0,0.02,0)
Loop
End Sub