This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

struct pointing to RTC in far memory location.

I have a Real Time Clock (RTC) located at address 0x180000

I would like to create a struct of the RTC registers and map it to 0x180000 where the RTC registers start, located in far xdata memory or (HDATA).

I want to access the RTC such as

 RTC.Month = 8; 

Would I use the FVAR or far * in some way to accomplish this?

Thanks for your help..

0