MogensB wrote:
I have just built the fantastic SC126 kit. I have read about the Z180 clock multiplier feature, which should be able to "overclock" the CPU to 36 MHz (gaining double speed I would expect)?
RomWBW sets the base address for the Z180's registers to 0xC0 (note the "IO=0xC0" in "SC126 Z8S180-N @ 18.432MHz IO=0xC0, ")As a result the correct addresses are:0x1E + 0xC0 = 0xDE0x1F + 0xC0 = 0xDF
It works perfectly now. I had completely missed the fact that the IO addresses for the control registers are relocatable in the Z180...
And, as suggested, I had to bump the memory wait state to 1, to get it running.
Regards,
MogensB
The I/O waitstate must also be increased by one.
The original settings in ROMWBW are for 20 MHz.
Hello everyone... In the past few days I have been working on a utility to overclock the CPU for CP/M... It alters CPU settings, WAIT states, and the UART settings to set the baud rate for 115K. Feel free to play around with the code.If anyone can give my advice as to what I could improve on I would be very greatfull thanks!Its not 100% reliable and every now and again the system will do something strange like freeze up ocasionally or after running a CP/M application it will not return to the command prompt, or sometimes cause a CP/M panic! sometimes the system will stop reading the SD card so no files can be accessed.
Nick wrote:Hello everyone... In the past few days I have been working on a utility to overclock the CPU for CP/M... It alters CPU settings, WAIT states, and the UART settings to set the baud rate for 115K. Feel free to play around with the code.If anyone can give my advice as to what I could improve on I would be very greatfull thanks!Its not 100% reliable and every now and again the system will do something strange like freeze up ocasionally or after running a CP/M application it will not return to the command prompt, or sometimes cause a CP/M panic! sometimes the system will stop reading the SD card so no files can be accessed.Hi Nick,You’re going to want to store the stack in a DEFW, otherwise using EQU is just defining a value (rather than allocating storage). Having it set to 0 is just going to overwrite what’s in 0xFFFE/F (I can’t remember offhand what RomWBW stores there).
... note that RomWBW has a utility app called SETCPU ...
I have made changes to the code from your advice and now everything is running perfectly.
My thinking is that the internal CPU clock is divided by 4 so the bus speed is really 9.216Mhz when running at 36.864Mhz PHI clock, so I'm confident it will be fine like this.