Skip to main content
Visitor II
September 18, 2006
Question

About reading RTC counter

  • September 18, 2006
  • 2 replies
  • 795 views
Posted on September 18, 2006 at 11:40

About reading RTC counter

    This topic has been closed for replies.

    2 replies

    johnnyAuthor
    Visitor II
    September 18, 2006
    Posted on September 18, 2006 at 05:54

    Hi,

    In STR71xLib (rtc.h) the 32 bit RTC counter is read with two consecutive 16 bit reads. Isn't there a risk that the counter changes between theese two reads?

    /Johnny

    Visitor II
    September 18, 2006
    Posted on September 18, 2006 at 11:40

    Hi hinkenl,

    In the STR71x device the RTC provides a set of continuously running counters driven by the 32 kHz external crystal.

    By the way the RTC counter register can be read without any problem.

    With regards,