Clock Stretching...

ncoplin_at_orbeng.com
Date: 2004-02-06 09:24:59

Hi All,

I'm familiar with the concept of clock stretching, but struggling with the
implementation....

>>Background:
All the IO chips in a C64 are 1MHz rated, even mostly so for the C128. If
one was to have a faster processor (or external access from say a PC), then
any read/writes to these locations would have to be done at 1MHz still.

>>Problem:
Obviously a read/write to the I/O area can be detected (off one of the 74139
chips or the PLA) but if the clock cycle is not aligned with the edge of the
system clock (Phi2) then any stretching will not only get you as far as the
time remaining. For example if you are already 200ns into the Phi2 high,
then the most you can stretch the clock is the remaining 300ns. 

Is the only way to do this properly to: 
1) hold the process off for the current (incomplete) cycle
2) do the action on the next clock cycle where you will have the whole phase
available?

I must admit I've never properly understood what the C128 manual says about
how it was done on that machine.

Any suggestions?
- Nick


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Your Engineering Solutions Provider
http://www.orbeng.com.au/orbital/engineeringServices/engServices.htm
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PLEASE TAKE NOTE:

The contents of this email (including any attachments) may be
privileged and confidential. Any unauthorised use of the contents
is expressly prohibited. If you have received this email in error,
please advise us immediately (you can contact us by telephone
on +61 8 9441 2311 by reverse charge) and then permanently
delete this email together with any attachments. We appreciate
your co-operation.

Whilst Orbital endeavours to take reasonable care to ensure
that this email and any attachments are free from viruses or other
defects, Orbital does not represent or warrant that such is explicitly
the case

(C) 2003: Orbital Engine Company (Australia) PTY LTD and its
affiliates



       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.