Re: Overclocking the c64



Christian Lott wrote:

I'm just trying to get more info on the dot clock. I want to know if I interface it to the PC bus if I'm going to have to play along with the c64's exact timing or if I can regulate my own clock, faster or slower as needed?

What do you mean with "interface it to the PC bus" ? What exactly is that interface going to do and what kind of "PC bus" did you have in mind?


Since you are talking about the dot clock it appears you intent to use the cartridge port of the C64. That is going to be quite tricky. From the electrical point of view the cartridge port is unbuffered and not designed to carry signals over more than just a few inches at best. To maintain signal integrity over a longer distance you would need at least some buffering and extra ground lines.

Even if you manage to maintain the signal integrity, you have to worry about the PC side. There is no hope whatsoever to directly interface with the PCI bus; the PCI bus is in too many ways too different. It is not just a matter of voltages or logic level (which would be relatively easy to fix). The PCI bus relies on reflections to swing the signal up to a certain level. This puts stringent requirements on the impedance and the capacitive load of any device connected to the PCI bus. For example attaching a cable of less than a feet is enough to screw thing up really bad. At the logical level the PCI bus is multiplexed and protocol based, which is radically different from how the C64 address/databus works. The only reasonable way to connect cartridge port of the C64 would be using an I/O board with sufficient I/O's.

Even with an I/O card you are not there yet. One of the biggest problem would be timing on the PC side. Even though the 6510 run at only 1 MHz, anything connected to cartridge port *must* respond not just within 1uS but actually well within 500nS (just check out the timing diagrams of the 6510 and 6567). Practically speaking that would mean that the I/O lines on the PC side should be sampled and processed at least every 200nS and preferably faster. You can forget about multitasking OSes like Windows or Linux being able to achieve that timing (consider that the timing requirements of the IEC bus is much, much more relaxed and even that is quite hard to achieve on these OSes). Even realtime OSes like Vxworks, RTLinux or RTAI are not able to meet these requirements. The only way to respond fast enough is if the PC runs only one program hat handles the I/O lines without any OS that could cause interference.

Coming back to your question if one could slowdown/speedup the C64 clock: the 64'er magazine once published a schematic for genlock which did exactly that. It replaced the crystal with a PLL circuit, so it could get the C64 video signal in sync with the external video signal. I did hear however that even though this circuit modified the clock frequency only by a few percent it still occasionally crashed the C64. One could slowdown the CPU of the C64 by asserting the DMA line on the cartridge port, this prevents the CPU from accessing the bus. But unfortunately this doesn't affect the bus speed itself, so it cannot be used to slowdown the C64 if the PC cannot keep up.

Almost nothing is really impossible, but this would come pretty close.

Christian Lott/ Let's get serious guys.

I think most responses in this thread were reasonably serious. .



Relevant Pages

  • Re: Overclocking the c64
    ... >> I'm just trying to get more info on the dot clock. ... > What do you mean with "interface it to the PC bus"? ... > cartridge port of the C64. ...
    (comp.sys.cbm)
  • Re: SPI Bus Specification
    ... SPI bus. ... I know that this bus is very loose. ... timing data on the bus. ... I did find a Freescale doc that shows the clock phasing an polarity, ...
    (comp.arch.embedded)
  • Re: Building Block Computer (Was Re: 16-bit C64/128?)
    ... extended SPI/I2C bus. ... internal C64 bus. ... I assumed that if the clock is fast enough and you had serial to ... with serial clock 16x the system clock. ...
    (comp.sys.cbm)
  • 74 Bus w/ 78 FI stalls at idle when warm
    ... I've got a 74 bus with a 78 FI retrofit. ... it will stall out at idle -- i.e. stopping at ... Timing is perfect. ... it stalls when rolling to a stop once it's warm. ...
    (rec.autos.makers.vw.aircooled)
  • Re: ISA Bus termination question
    ... It's very possible that termination may ... not really a timing signal for the bus. ... the read and write strobes are the timing signals that should be ...
    (sci.electronics.design)

Loading