mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-06-19 09:05:48 -04:00
RTCの初期値がBCDになっていなかった
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@69 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
c30f9cad91
commit
c31ec53407
14
trunk/rtc.c
14
trunk/rtc.c
@ -31,13 +31,13 @@ void RTC_init( void )
|
||||
RTCC1 = 0b11000000; /* アラーム割り込み有効&動作開始 */
|
||||
RTCC2 = 0b10000000; /* インターバル:32k/2^6=2ms、RTCDIV出力なし */
|
||||
|
||||
SEC = 0;
|
||||
MIN = 0;
|
||||
HOUR = 15;
|
||||
DAY = 1;
|
||||
WEEK = 0;
|
||||
MONTH = 11;
|
||||
YEAR = 9;
|
||||
SEC = 0x00;
|
||||
MIN = 0x00;
|
||||
HOUR = 0x15;
|
||||
DAY = 0x01;
|
||||
WEEK = 0x00;
|
||||
MONTH = 0x11;
|
||||
YEAR = 0x09;
|
||||
|
||||
ALARMWW = 0x7F;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user