lpcware

RTC Init

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by Cusko on Fri Aug 09 03:20:10 MST 2013
My program breaks in a function RTC_Init() from the lpc18xx library, more exactly on this part:
do
{
/* Reset RTC clock*/
RTCx->CCR = RTC_CCR_CTCRST | RTC_CCR_CCALEN;
}
while(RTCx->CCR!=(RTC_CCR_CTCRST | RTC_CCR_CCALEN));

Could it be hardware related? I have external crystal 32kH.
Thanks.

Outcomes