RTC

how can i set the real time clock (RTC) in 8052 by using c51

Parents
  • 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,

Reply
  • 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,

Children
No data
More questions in this forum