Urgent : For setting RTCCR register

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

Urgent : For setting RTCCR register

1,882 次查看
roop
Contributor I

Hi all,

 

I am using a MCF52213 microcontroller, I want implement a RTC module for that I am setting RTCCR register. When I read this register  it always display zero value.

 

Please help me to resolve this problem.

 

Regards,

Roop

标签 (1)
0 项奖励
回复
4 回复数

1,135 次查看
mjbcswitzerland
Specialist V

Hi Roop

 

There are several discussions about the RTC in the V2 MCU devices in the forum. Try the following: http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&message.id=7891&query.id=76784#M...

 

Regards

 

Mark

 

0 项奖励
回复

1,135 次查看
roop
Contributor I

hi,

 

 

I not able set RTCCR register. In link u are you are tell about the secret bit  , I want to set this bit.

 

Actually I want to set RTCCR register but any value  I write in this register it always give me a zero value.This register is access in any supervisor mode as written in dataset of MCF52213. Is any special setting is required to write  this register ?

 

0 项奖励
回复

1,135 次查看
mjbcswitzerland
Specialist V

Hi

 

Have you first enabled the RTC by setting the enable bit (0x80) inthe RTCCTL register?

Do you also have a voltage connected to the Vbat pin?

 

Regards

 

Mark

 

0 项奖励
回复

1,135 次查看
roop
Contributor I

 

A voltage connected to the Vstby and to RTC module we write in RTCCTL =0x80 but when we read this value itis also give zero.

 

We are also set other register of RTC module and read this registers, they all return zero value .

 

Coluld you please explain why we are not able to write into any regrister related to RTC ?

 

 

0 项奖励
回复