cancel
Showing results for 
Search instead for 
Did you mean: 

About reading RTC counter

johnny
Associate II
Posted on September 18, 2006 at 11:40

About reading RTC counter

2 REPLIES 2
johnny
Associate II
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

hichem2
Associate II
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,