Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micro 8088 default turbo option #25

Open
TzOk83 opened this issue Dec 30, 2022 · 5 comments
Open

Micro 8088 default turbo option #25

TzOk83 opened this issue Dec 30, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@TzOk83
Copy link

TzOk83 commented Dec 30, 2022

I've noticed that the default CPU clock set for Micro 8088 is 9.54 MHz, 4 RAM WS and this is not good, as it will fail on boards with 14.3MHz quartz. 7.15 MHz, 0 RAM WS would be much safer.

Is there any option to switch the "Turbo Mode" ON and OFF?

@640-KB
Copy link
Owner

640-KB commented Dec 30, 2022

Yes, the speed is hot-key switchable during run time with the ctrl-alt-+ key stroke, which toggles between the default speed of 9.54MHz, 4 RAM WS and 7.15 MHz, 0 RAM WS.

This behavior is in fact customizable by changing TURBO_TYPE = TURBO_REV to TURBO_TYPE = TURBO_STD in the Configuration for micro_8088, which will make the startup speed be the "non-Turbo" 7.15 MHz, 0 RAM WS and the ctrl-alt-+ speed be the 9.54MHz, 4 RAM WS.

Alternately the FE_CPU_CFG value can be customized too for the default speed if it was ever desired to be something other than the current default of 011b for 7.15 MHz, 0 RAM WS or 100b for 9.54MHz, 4 RAM WS.

Your suggestion makes a lot of sense though to have an option so that boards with the slower quartz will work properly, which could look like either a separate image - perhaps the high-speed boot in the "high" image and the low-speed boot in the "low" image or possibly a configurable byte in the Flash image. Would that do the trick?

Thanks for the testing and the suggestion! Let me work on this a bit and I'll post an updated image.

@TzOk83
Copy link
Author

TzOk83 commented Dec 30, 2022

Actually, for me, after changing crystal to 28.64MHz it switches between 9.54MHz and 4.77MHz, but that's completely fine. I may or may not have sth to do with the fact I'm using a Proton PT8010AF chipset, as the Faraday FE4010A is impossible to buy.

@640-KB
Copy link
Owner

640-KB commented Jan 10, 2023

That's interesting. Perhaps the PT8010AF has slightly different speed register settings. How does it work on the micro_8088 BIOS?

@TzOk83
Copy link
Author

TzOk83 commented Jan 10, 2023

On Micro8088 BIOS I have all 3 speeds (4.77MHz, 7.15MHz & 9.54MHz) available. I have verified clock frequency, with a frequency counter.

@640-KB
Copy link
Owner

640-KB commented Jan 11, 2023

I just looked back at the code and toggling between highest and lowest (4.77) was what I intended (I just forgot that's how it worked). I'll look into what it would take to add three state toggling for it.

@640-KB 640-KB added the enhancement New feature or request label Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants