about the 32khz osc of LPC1830

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

about the 32khz osc of LPC1830

ソリューションへジャンプ
1,363件の閲覧回数
zhubin
Contributor I

Hello friends,

   I want to use the alarm timer to wake up from Deep-Sleep(LPC1830) . According to DataSheet,the Alarmtimer is connected directly to the 32kHz OSC. So my question is  whether the 32kHz is external clock or internal clock? If it is a external clock should i connected a 32.768kHz Crystal oscillator to RTCX1/RTCX2 ?

I initialize the alarm timer like this:

LPC_CREG->CREG0 &= ~((1 << 3) | (1 << 2));
LPC_CREG->CREG0 |= (1 << 1) | (1 << 0);

LPC_ATIMER->DOWNCOUNTER = 2048;
LPC_ATIMER->PRESET = 1024;

but the DOWNCOUNTER  doesn't count ·······

0 件の賞賛
返信
1 解決策
1,113件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi,

Yes you need to connect an external 32.768kHz Crystal oscillator to RTCX1/RTCX2.

LPCOpen contains an example using alarm timer.

LPCOpen Software for LPC18XX|NXP 

Have a great day,
Soledad

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

2 返答(返信)
1,114件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi,

Yes you need to connect an external 32.768kHz Crystal oscillator to RTCX1/RTCX2.

LPCOpen contains an example using alarm timer.

LPCOpen Software for LPC18XX|NXP 

Have a great day,
Soledad

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,113件の閲覧回数
zhubin
Contributor I

Thank you so much

0 件の賞賛
返信