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

[D] should vonsim have a clock speed slider? #45

Open
facundoq opened this issue Sep 10, 2023 · 0 comments
Open

[D] should vonsim have a clock speed slider? #45

facundoq opened this issue Sep 10, 2023 · 0 comments

Comments

@facundoq
Copy link
Collaborator

The clock device is generally set to work at a fixed rate in a computer. While that rate for real computers is less than 1 second, since that would be too low a resolution, the rate is usually a fixed value that indicates time.

I think that changing the speed of time in general can be tricky, because vonsim users are usually learning still about clock speeds, and being able to modify the way real time is measured as well as the simulation speed can cause them to confuse each other.

Also, what's the use case? In most cases, you'll want to speed up the clock to wait less for a timer interrupt when testing the code. However, in many cases, you can do that just as easily by decreasing the value of comp. Of course in some cases you may want the clock speed to be faster, for example to see what happens when cont increases past 255. In that case you can also initialize cont with a larger value. Can't think of other cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant