??? 03/01/09 01:01 Read: times |
#162957 - I don't see Responding to: ???'s previous message |
what's wrong in your code. You have used the XBYTE macros to access the RTC. This is fine and it maps your RTC into XDATA space. Since P2.5 is the RTC !CS, all the addresses in your macros are valid with CS low. Whenever the macro is executed, the Chip is Selected irrespective of what you do with the rtcce sbit. Were you not to use the XBYTE macros, the rtcce sbit would matter. But, in that case, you would also need to manipulate the RD and WR signals.
I can suggest you write P2 = 0xFF at the start of your program and never touch it again. Just delete the line with rtcce = 0 etc since you don't need it. The macros will work fine and there will be no memory contention unless you have other devices that map onto the 8xxxH space. |
Topic | Author | Date |
RTC DS12c887 Chip select | 01/01/70 00:00 | |
WHY ON EARTH | 01/01/70 00:00 | |
with the help of Xbyte or XDATA | 01/01/70 00:00 | |
Speaking the Truth....... | 01/01/70 00:00 | |
I don't see | 01/01/70 00:00 | |
what you said is true. but there is another | 01/01/70 00:00 | |
Even with !CS == 1 ?? | 01/01/70 00:00 | |
I have done that before posting this thread! | 01/01/70 00:00 | |
How fast multimeter | 01/01/70 00:00 | |
actually.. | 01/01/70 00:00 | |
I just saw it | 01/01/70 00:00 | |
then I am in real trouble | 01/01/70 00:00 | |
replace the XBYTE with ... | 01/01/70 00:00 | |
sorry but... | 01/01/70 00:00 | |
or | 01/01/70 00:00 | |
Play with the ports | 01/01/70 00:00 | |
thank god | 01/01/70 00:00 | |
sorry I could not reply due to my ill health | 01/01/70 00:00 | |
it is | 01/01/70 00:00 | |
and Erik one last..![]() | 01/01/70 00:00 |