When does the AY reload its counters?

Probably the most technical forum around. It does not have to be coding related, or assembly code only. Just talk about how you can use the AY chip to do cool sounding things :)
Post Reply
ThomH
Pilot Officer
Posts: 71
Joined: Thu Oct 13, 2016 9:55 pm

When does the AY reload its counters?

Post by ThomH » Mon Oct 24, 2016 3:04 pm

Suppose I've set the divider for channel 0 to be 1024, and there are 63 tone ticks — i.e. 1008µs — until the tone output next toggles. I then set the divider to 15. When should I expect the next change in output level?

Phrased differently: assuming a straightforward divider -> counter, counter -> zero implementation, when does the AY reload its tone counters? Possibilities:
  • only after reaching zero;
  • whenever a divider is set;
  • shortly after a divider is set;
  • only when the fine or coarse part of a divider is set;
  • some other time entirely.
Or does the assumption not hold up?

Godzil
Squad Leader
Posts: 756
Joined: Sat May 21, 2011 7:21 pm
Location: Between UK and France
Contact:

Re: When does the AY reload its counters?

Post by Godzil » Wed Jan 04, 2017 8:42 pm

I would say that the AY will re-get the values from the registers on each external clock edge.
What would probably happen is that the timer is not reset but will use the new parameters.

I think it can be tested by using maybe a slower clock (even if a sub 50Mhz scope would be enough) and do the test by setting the registers and watching the output.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests