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
RE: RTC
Christopher Holland
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.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.