???????(??) RTC ???? - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

???????(??) RTC ????

Description:

RTC . RTC Real Time Clock. - IC - – PowerPoint PPT presentation

Number of Views:78
Avg rating:3.0/5.0
Slides: 17
Provided by: edut1550
Category:
Tags: rtc

less

Transcript and Presenter's Notes

Title: ???????(??) RTC ????


1
???????(??)RTC ????
  • ???? ???
  • ???? ???
  • ???
  • ???

2
RTC ??
  • RTC Real Time Clock
  • ?? - ???IC?????????
  • ?? - ??????????
  • ?? ??????

3
S3C2440 ? RTC
  • ?? ??????
  • ????
  • ????
  • ??????(ms??)

4
S3C2440 ? RTC
  •  

5
S3C2440 ? RTC ???
6
BCD ??
  • BCD Binary Coded Decimal

??? 8421-BCD? ?3-BCD? 2421-A?
(M10) D C B A C3 C2 C1 C0 a3 a2 a1 a0
0 0 0 0 0 0 0 1 1 0 0 0 0
1 0 0 0 1 0 1 0 0 0 0 0 1
2 0 0 1 0 0 1 0 1 0 0 1 0
3 0 0 1 1 0 1 1 0 0 0 1 1
4 0 1 0 0 0 1 1 1 0 1 0 0
5 0 1 0 1 1 0 0 0 0 1 0 1
6 0 1 1 0 1 0 0 1 0 1 1 0
7 0 1 1 1 1 0 1 0 0 1 1 1
8 1 0 0 0 1 0 1 1 1 1 1 0
9 1 0 0 1 1 1 0 0 1 1 1 1
7
S3C2440 RTC ?????
  • ?? ??????????
  • ???????
  • ?? 8??????2?BCD??
  • ?????00?????

8
S3C2440 RTC ???
  • ?? ??????
  • ??RTCON???
  • ?? ???????????

9
S3C2440 RTC ????
  •  

10
S3C2440 RTC ???????
  • ?? ????RTC?????
  • ????????????????
  • ?? ??????????????

11
S3C2440 RTC ???(RTCON)
??? ?? R/W ?? ???
RTCCON 0x57000040(L) R/W RTC ????? 0x0
RTCCON 0x57000043(B) (by byte) RTC ????? 0x0
12
S3C2440 RTC ???(RTCON)
  • ?? rRTCCON 1 //?? RTC??
  • rRTCCON 1 //?? RTC??

RTCCON ?? ?? ????
CLKRST 3 RTC ?????? 0
CLKRST 3 0???,1?? 0
CNTSEL 2 BCD???? 0
CNTSEL 2 0?? BCD ??,1?? 0
CLKSEL 1 BCD ???? 0
CLKSEL 1 0XTAL (1/2)15????,1?? 0
RTCENT 0 ??RTC?? 0
RTCENT 0 0??,1?? 0
13
S3C2440 RTC ???(TICNT)
??? ?? R/W ?? ???
TICNT 0x57000044(L) R/W ????????? 0x0
0x57000047(B) (by byte)
TICNT ?? ?? ????
TICK INT ENABLE 7 ???????? 0
TICK INT ENABLE 7 0??,1?? 0
TICK TIME COUNTER 60 ???????(1127) 000000
60 ???????,?????????????? 000000
14
S3C2440 RTC ???(BCDXX)
  • ?? rDCDSEC 0x15 //?RTC?????15
  • sec rDCDSEC //?RTC?????sec

??? ?? R/W ??
BCDSEC 0x57000070 R/W ??RTC?????
BCDMIN 0x57000074 R/W ??RTC?????
BCDHOUR 0x57000078 R/W ??RTC?????
BCDDAY 0x5700007C R/W ??RTC?????
BCDDATA 0x57000080 R/W ??RTC?????
BCDMON 0x57000084 R/W ??RTC?????
BCDYEAR 0x57000088 R/W ??RTC?????
15
???(DNW)??
  • ??? S3C2440 ? GPIO
  • Port_Init()
  • ????? num
  • Uart_Init(num)
  • ???????
  • Port_Init(0,speed)
  • ??????????(?printf)
  • Uart_Printf(d,f,x,int1,float,int2)

16
??
  • ?? S3C2440 RTC
  • ? S3C2440 RTC ?? 2010/4/20 110030
  • ?? S3C2440 RTC
  • ? S3C2440 RTC ??????????
  • ????????
  • ?????? (LED ??) ????
  • ???????
Write a Comment
User Comments (0)
About PowerShow.com