about the 32khz osc of LPC1830

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

about the 32khz osc of LPC1830

跳至解决方案
905 次查看
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 解答
655 次查看
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 回复数
656 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

655 次查看
zhubin
Contributor I

Thank you so much

0 项奖励
回复