Jump to content



0

7800/6502 Hardware Questions


31 replies to this topic

#26 supercat OFFLINE  

supercat

    Quadrunner

  • 6,367 posts

Posted Mon May 8, 2006 10:39 PM

View PostBryan, on Mon May 8, 2006 6:21 PM, said:

Well, the 2600 was an exercise in low parts count, so they used the 6507 as-is, rather than adding clock logic. Besides, the net effect is pretty much the same. The opcode fetch cycle after WSYNC is strobed will be extended until READY is lifted.

I wouldn't suggest using another chip to gate the clock. I was suggesting using the TIA to do it (since it's already responsible for generating the CPU's clock to begin with).

#27 EricBall OFFLINE  

EricBall

    Dragonstomper

  • 711 posts
  • Location:Markham, Ontario, Canada

Posted Tue May 9, 2006 10:33 AM

View Postsupercat, on Tue May 9, 2006 12:39 AM, said:

I wouldn't suggest using another chip to gate the clock. I was suggesting using the TIA to do it (since it's already responsible for generating the CPU's clock to begin with).
Which would then screw up the RIOT timers which use the same clock signal. (A problem on the 7800 which down-shifts the clock signal when accessing the TIA and RIOT versus RAM/ROM/MARIA.)

#28 jbanes OFFLINE  

jbanes

    River Patroller

  • 3,074 posts
  • Coming soon to a natural satellite near you...

Posted Tue May 9, 2006 12:24 PM

View PostEricBall, on Tue May 9, 2006 11:33 AM, said:

Which would then screw up the RIOT timers which use the same clock signal. (A problem on the 7800 which down-shifts the clock signal when accessing the TIA and RIOT versus RAM/ROM/MARIA.)

Which brings up a question that's really been bugging me. Does the 6502 downshift even for accesses like reading the Joystick Position, or is the lower clocking only triggered when you write to the TIA's ports? I've been crossing my fingers that it's the latter, because the former would make the chip incredibly erratic; but I'm concerned that I may just be practicing wishful thinking.

#29 PacMan OFFLINE  

PacMan

    Chopper Commander

  • 151 posts
  • Slowly getting there....
  • Location:A Galaxy far far away

Posted Wed May 17, 2006 3:16 AM

View Postjbanes, on Tue May 9, 2006 8:24 PM, said:

View PostEricBall, on Tue May 9, 2006 11:33 AM, said:

Which would then screw up the RIOT timers which use the same clock signal. (A problem on the 7800 which down-shifts the clock signal when accessing the TIA and RIOT versus RAM/ROM/MARIA.)

Which brings up a question that's really been bugging me. Does the 6502 downshift even for accesses like reading the Joystick Position, or is the lower clocking only triggered when you write to the TIA's ports? I've been crossing my fingers that it's the latter, because the former would make the chip incredibly erratic; but I'm concerned that I may just be practicing wishful thinking.

The clock is always shifted down when when accessing the TIA and RIOT. I noticed that when implementing the RMT player on my 7800 using the XBoard and found that the POKEY was shifting the entire song down in pitch when holding a button down (= my stupid program). It went away with some clever programming :D

/P

#30 jbanes OFFLINE  

jbanes

    River Patroller

  • 3,074 posts
  • Coming soon to a natural satellite near you...

Posted Wed May 17, 2006 7:52 AM

View PostPacMan, on Wed May 17, 2006 4:16 AM, said:

The clock is always shifted down when when accessing the TIA and RIOT. I noticed that when implementing the RMT player on my 7800 using the XBoard and found that the POKEY was shifting the entire song down in pitch when holding a button down (= my stupid program). It went away with some clever programming :D

Ack! That is not good. Not good at all. :|

I'm really starting to dislike the 7800...

#31 supercat OFFLINE  

supercat

    Quadrunner

  • 6,367 posts

Posted Wed May 17, 2006 4:38 PM

View PostEricBall, on Tue May 9, 2006 11:33 AM, said:

View Postsupercat, on Tue May 9, 2006 12:39 AM, said:

I wouldn't suggest using another chip to gate the clock. I was suggesting using the TIA to do it (since it's already responsible for generating the CPU's clock to begin with).
Which would then screw up the RIOT timers which use the same clock signal. (A problem on the 7800 which down-shifts the clock signal when accessing the TIA and RIOT versus RAM/ROM/MARIA.)

I would have given the TIA output two clock signals. One would have been fed to the RIOT, and would run continuously; the other would have been fed to the 6507 and gated with the hblank-wait latch.

#32 supercat OFFLINE  

supercat

    Quadrunner

  • 6,367 posts

Posted Sat May 17, 2008 12:33 AM

View Postsupercat, on Wed May 17, 2006 5:38 PM, said:

I would have given the TIA output two clock signals. One would have been fed to the RIOT, and would run continuously; the other would have been fed to the 6507 and gated with the hblank-wait latch.

Necro-posting...

Having looked some at the inner workings of the 6507, I don't think such an approach would have been a good idea. There's a lot of flying-signal logic in there; stopping the clock for 64us might cause some of the flying bits to fall on the floor.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users