Giter Site home page Giter Site logo

Comments (9)

gyurco avatar gyurco commented on August 29, 2024

It'll also affect SDRAM timings, not sure if the current controller can cope with that. Also it shouldn't clash with VIC II memory access, so if 2MHz is enabled, VIC II should be disabled. Then the VIC memory cycle can be used for the 8502.

from mist-board.

harbaum avatar harbaum commented on August 29, 2024

As far as i understand this would not need ram timing changes. Instead the cpu just also gets the vic memory slots assigned. The vic would then just display garbage while the cpu is running at 2 Mhz which also happens on the real c128 in c64 mode.

So in thery there shouldn't be many things to change. But i am not sure it's worth tje effort and even less the confusion this option may cause with many users.

from mist-board.

gyurco avatar gyurco commented on August 29, 2024

Yepp, probably it's enough to have a second cpuEnable together with enableVic, but set cpuHasBus to 1 in the VIC II cycle, too.

from mist-board.

gyurco avatar gyurco commented on August 29, 2024

Experimented with turbo mode, but at the end you have to switch back to 1 MHz mode if the CPU does IO to CIA, SID, etc... because at 2MHz these can miss reads and writes. And also have to adjust these peripherals CE (do the clock stretching). The result however was not very reliable, so at the end I gave up on this.

from mist-board.

juri74 avatar juri74 commented on August 29, 2024

i had a quick look at c128 schematics, looks like the cpu is always clocked at 2mhz, i have to verify this with an oscilloscope, the 2mhz line go to MMU too, then there are some logic chips that drive the RDY signal of cpu, i think that when in 1mhz mode the cpu is somehow halted for 1 cycle, so it is acting like is feeded with 1 mhz clock. i found this interesting article about pheriperal driving with 2mhz 6502
http://6502.org/mini-projects/rdy-generation/index.html

from mist-board.

gyurco avatar gyurco commented on August 29, 2024

Halting with RDY is not the same as giving it a 1 MHz clock, for example RDY doesn't stop a write cycle.

from mist-board.

juri74 avatar juri74 commented on August 29, 2024

ok i investigated a little further, the cpu is not actually clocked @2mhz forever, and when the cpu is "forced" @2mhz (for example using FAST command on c128) it do not stay @2mhz forever, the clock line return @1Mhz during dynamic ram refresh and during i/o access. some interesting infos are found in C128 service manual (pag 33 and 34):
http://zetaweb.org/web/manuals/C128%20Service%20Manual.pdf

from mist-board.

gyurco avatar gyurco commented on August 29, 2024

That make sense, actually that's what I deduced. But not trivial to implement.

from mist-board.

gyurco avatar gyurco commented on August 29, 2024

I finally added this feature. Looks like the 1541 doesn't work with it, I wonder if it's the same with a C128 - 1541 combo.

from mist-board.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.