S3C2440의 RTC의 레지스터에서 초/분/시간의 값을 읽어와서 1초마다 display하게 했습니다.

분명히 초의 시간은 1초마다 올라가고, 59초 다음 분도 증가하는데..

Date 명령어로 읽어온값과 RTC의 레지스터값을 읽은값과 차이가 많이 나고 있습니다.

 

혹시..이런 경험 하신분 계신가요?

 

-------- 로그 데이터 입니다. 59초 다음 1분 증가하고 바로 멈춘고, date 명령어를 실행한 결과입니다  ---------

 

 

 read time : 42,31,10,3,12,200,0,0,0
 read time : 43,31,10,3,12,200,0,0,0
 read time : 44,31,10,3,12,200,0,0,0
 read time : 45,31,10,3,12,200,0,0,0
 read time : 46,31,10,3,12,200,0,0,0
 read time : 47,31,10,3,12,200,0,0,0
 read time : 48,31,10,3,12,200,0,0,0
 read time : 49,31,10,3,12,200,0,0,0
 read time : 50,31,10,3,12,200,0,0,0
 read time : 51,31,10,3,12,200,0,0,0
 read time : 52,31,10,3,12,200,0,0,0
 read time : 53,31,10,3,12,200,0,0,0
 read time : 54,31,10,3,12,200,0,0,0
 read time : 55,31,10,3,12,200,0,0,0
 read time : 56,31,10,3,12,200,0,0,0
 read time : 57,31,10,3,12,200,0,0,0
 read time : 58,31,10,3,12,200,0,0,0
 read time : 59,31,10,3,12,200,0,0,0
 read time : 0,32,10,3,12,200,0,0,0
 read time : 1,32,10,3,12,200,0,0,0
 read time : 2,32,10,3,12,200,0,0,0
 read time : 3,32,10,3,12,200,0,0,0

[root@falinux dev-rtc]$ date
Wed May 19 14:25:26 UTC 2010
[root@falinux dev-rtc]$