Welcome, Guest. Please login or register.

Author Topic: RTC double writes?  (Read 860 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
RTC double writes?
« on: March 04, 2014, 11:38:48 PM »
When looking at the trapdoor memory interface on an A500, I notice that there are back to back double writes happening to the RTC clock chip on the A501 module.

With the four-bit databus that is being used, I highly suspect that there's some BYTE to nibble conversion happening in Agnus/Gary.

For instance, the RTC address will stay the same, but the databus will first write "wrong" data or "0"-data, and then the second write containing the actual correct value.

You see a low-going pulse for /XCLKWR, then a delay (217ns?), and then another low-going pulse for /XCLKWR.

Note that this works absolutely fine in practice, but something goofy is going on.  Unless there's some requirement that I can't find in the datasheet with the RTC chip to clear the value with "0" prior to writing it?

This is happening with each RTC register.

If I had access to the source code for the amigados "setclock" command, I could probably figure it out soon enough.  I could disassemble it, but not sure how cryptic that would be.

Thanks
 

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
Re: RTC double writes?
« Reply #1 on: March 05, 2014, 08:04:02 PM »
For reference, I've added a trace to my A501 Replacement project page.

http://www.techtravels.org/amiga/amigablog/?page_id=942#RTC_Traces