Keil Logo Arm Logo

Discussion Forum

RTC

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
mohan147 kumar
Posted
9-Aug-2003 07:33 GMT
Toolset
C51
New! RTC
how can i set the real time clock (RTC) in 8052 by using c51
Read-Only
Author
Christopher Holland
Posted
11-Aug-2003 14:10 GMT
Toolset
C51
New! RE: RTC
Uhm,

The Clock address is at external data. meaning it is a xdata.

You probably need to set up some kind of addressing using a Gal22V10 to put the clock at some external address.

Once you do that, you do something like...

//Clear Alarm Bit
Data = XBYTE[CLOCK_ADDRESS + REGISTER_C_OFFSET];

Once you get past that part, I have been reading about how you can set the segment. So you can access the Clock, without using Xbyte, but that is later on.

HTH,

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.