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

Timers (or revising clock) #1

Open
HeathenUK opened this issue Sep 25, 2023 · 1 comment
Open

Timers (or revising clock) #1

HeathenUK opened this issue Sep 25, 2023 · 1 comment

Comments

@HeathenUK
Copy link
Contributor

HeathenUK commented Sep 25, 2023

Hi Paul,

Really appreciate all the work you've put into bringing this toolchain up, it's made my work (as someone who prefers C to BASIC or ASM but who struggles with the dated Zilog toolchain) much, much more productive.

At the moment you make use of the MOS centisecond timer (which is at half resolution) in order to provide the underlying "millis" for time.h, which is a neat way of using an existing resource and works perfectly for many uses. However, I'm working on porting my audio demo code to your toolchain and that depends on much tighter timers (for me, it needs to be at least ~50us per tick).

Would you be willing to consider adapting Jeroen's existing ez80f92 timer code (here and here) to offer a higher resolution underlying timebase? Being selfish as I say it'd be great if clock() could return a figure based around the microsecond range (albeit at a lowish resolution ticking up by 25 every 25us or similar).

Regards,

Greg

@HeathenUK
Copy link
Contributor Author

Late addendum: I've just noticed that the underlying CE toolchain has fairly full timer control, but clearly targeting a different register map.

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