RTC not updating correctly with PulseOut

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
kurakaira
Posts: 77
Joined: 21 March 2007, 1:21 AM
Location: Finland

RTC not updating correctly with PulseOut

Post by kurakaira »

The RTC does not get updated correctly on native mode devices when using PulseOut .
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
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: RTC not updating correctly with PulseOut

Post by dkinzer »

kurakaira wrote:The RTC does not get updated correctly on native mode devices when using PulseOut.
Thanks for letting us know. The cause of the problem has been determined and it has been corrected. An updated version of the compiler, v4.3.2, is available on the Downloads Page.
- Don Kinzer
Post Reply