lpc1853 RTC

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

lpc1853 RTC

885件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dodge55 on Tue Feb 10 14:33:50 MST 2015
Are there any examples on the RTC setup?  I can't seem to get the RTC branch clock started and so my RTC never starts.  I'm 100% sure some of my clock or RTC registers aren't setup properly.  But, I can't find any code examples that use the RTC, Keil or otherwise.

Sutton
ラベル(1)
0 件の賞賛
返信
5 返答(返信)

762件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by embd02161991 on Tue Mar 31 23:17:11 MST 2015
Hi,

There is a RTC example in LPCOpen software package.It is under the 'periph' folder.
That can be a starting point.
RTC needs to be initialized only once and does not require to be initialized again.

You can find the package here : http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc18xx-packages-0

Thanks,
NXP Technical Support
0 件の賞賛
返信

762件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jeff3103747 on Mon Mar 30 23:10:17 MST 2015
It still isn't clear how to setup RTC. The manual doesn't help either.

For example, my RTC is backed up using battery, so after MCU reset, what should I do? What should be the sequence? Do I still call Chip_RTC_Init? If I do, does this disrupt RTC time?

Thanks! :-)
0 件の賞賛
返信

762件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Wed Feb 11 15:30:42 MST 2015

Quote: dodge55
I've looked there.  I haven't found any RTC code.



:quest:

void Chip_RTC_ResetClockTickCounter(LPC_RTC_T *pRTC);
void Chip_RTC_Enable(LPC_RTC_T *pRTC, FunctionalState NewState);
void Chip_RTC_CntIncrIntConfig(LPC_RTC_T *pRTC, uint32_t cntrMask, FunctionalState NewState);
void Chip_RTC_AlarmIntConfig(LPC_RTC_T *pRTC, uint32_t alarmMask, FunctionalState NewState);
STATIC INLINE void Chip_RTC_SetTime(LPC_RTC_T *pRTC, RTC_TIMEINDEX_T Timetype, uint32_t TimeValue);
STATIC INLINE uint32_t Chip_RTC_GetTime(LPC_RTC_T *pRTC, RTC_TIMEINDEX_T Timetype);
void Chip_RTC_SetFullTime(LPC_RTC_T *pRTC, RTC_TIME_T *pFullTime);
void Chip_RTC_GetFullTime(LPC_RTC_T *pRTC, RTC_TIME_T *pFullTime);
STATIC INLINE void Chip_RTC_SetAlarmTime(LPC_RTC_T *pRTC, RTC_TIMEINDEX_T Timetype, uint32_t ALValue);
STATIC INLINE uint32_t Chip_RTC_GetAlarmTime(LPC_RTC_T *pRTC, RTC_TIMEINDEX_T Timetype);
void Chip_RTC_SetFullAlarmTime(LPC_RTC_T *pRTC, RTC_TIME_T *pFullTime);
void Chip_RTC_GetFullAlarmTime(LPC_RTC_T *pRTC, RTC_TIME_T *pFullTime);
STATIC INLINE void Chip_REGFILE_Write(LPC_REGFILE_T *pRegFile, uint8_t index, uint32_t value);
STATIC INLINE uint32_t Chip_REGFILE_Read(LPC_REGFILE_T *pRegFile, uint8_t index);
void Chip_RTC_CalibCounterCmd(LPC_RTC_T *pRTC, FunctionalState NewState);
STATIC INLINE void Chip_RTC_CalibConfig(LPC_RTC_T *pRTC, uint32_t CalibValue, uint8_t CalibDir);
STATIC INLINE void Chip_RTC_ClearIntPending(LPC_RTC_T *pRTC, uint32_t IntType);
STATIC INLINE IntStatus Chip_RTC_GetIntPending(LPC_RTC_T *pRTC, uint32_t IntType);
STATIC INLINE void Chip_RTC_EV_Config(LPC_RTC_T *pRTC, RTC_EV_CHANNEL_T ch, uint32_t flag);
STATIC INLINE void Chip_RTC_EV_SetMode(LPC_RTC_T *pRTC, RTC_EV_MODE_T mode);
STATIC INLINE uint8_t Chip_RTC_EV_GetStatus(LPC_RTC_T *pRTC);
STATIC INLINE void Chip_RTC_EV_ClearStatus(LPC_RTC_T *pRTC, uint32_t flag);
STATIC INLINE FlagStatus Chip_RTC_EV_GetChannelStatus(LPC_RTC_T *pRTC, RTC_EV_CHANNEL_T ch);
STATIC INLINE void Chip_RTC_EV_ClearChannelStatus(LPC_RTC_T *pRTC, RTC_EV_CHANNEL_T ch);
STATIC INLINE uint8_t Chip_RTC_EV_GetCounter(LPC_RTC_T *pRTC, RTC_EV_CHANNEL_T ch);
void Chip_RTC_EV_GetFirstTimeStamp(LPC_RTC_T *pRTC, RTC_EV_CHANNEL_T ch, RTC_EV_TIMESTAMP_T *pTimeStamp);
void Chip_RTC_EV_GetLastTimeStamp(LPC_RTC_T *pRTC, RTC_EV_CHANNEL_T ch, RTC_EV_TIMESTAMP_T *pTimeStamp);
void Chip_RTC_Init(LPC_RTC_T *pRTC);
void Chip_RTC_DeInit(LPC_RTC_T *pRTC);

0 件の賞賛
返信

762件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dodge55 on Wed Feb 11 15:06:55 MST 2015
I've looked there.  I haven't found any RTC code.
0 件の賞賛
返信

762件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Tue Feb 10 14:50:18 MST 2015
LPCOpen  :quest:

http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc18xx-packages-0
0 件の賞賛
返信