Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Timer3/4 in Arduino Micro board #18

Closed
joonghochoe opened this issue May 7, 2021 · 5 comments
Closed

Timer3/4 in Arduino Micro board #18

joonghochoe opened this issue May 7, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@joonghochoe
Copy link

Is your feature request related to a problem? Please describe.

In Atmega32u4 datasheet, 16 bit Timer3 and 10 bit Timer4 can be used. But in your TimerInterrupt code, Timer3 and 4 is disabled for ATMEGA_32U4. Is there a reason to disable it?

Describe the solution you'd like

I am working on a project using Timer3 from Arduino Micro. Just now, I am using Timer 3 by modifying the code, but is there any reason not to use it?

@khoih-prog
Copy link
Owner

Thanks for your interest in the library.

I'll definitely have a look and add to the library.

1, 16-bit Timers/Counters (Timer/Counter3) similar to Timer/Counter1. Much easier.
2. 10-bit High Speed Timer/Counter4. Requiring some small work and test.

There is no good reason at all, just something just slipping out of my mind when I did this.

@khoih-prog khoih-prog added the enhancement New feature or request label May 7, 2021
@khoih-prog
Copy link
Owner

I'd appreciate it if you could help create a PR for this to save me some time.
I'll help on the way if you need it.

@khoih-prog
Copy link
Owner

Hi @joonghochoe

Thanks for your enhancement request, the new TimerInterrupt release v1.5.0 has just been published, with your Contribution noted in Contributions and Thanks.

Please help do some rigorous tests on Timer3 and Timer4 for ATmega32u4 and ATmega16u4 as I currently have no such boards to test yet

Looking forward to receiving more Contributions from you.

Thanks and Regards,


Releases v1.5.0

  1. Add Timer3 and Timer4 support to ATmega32U4 and ATmega16U4.
  2. Add Timer auto-selection to examples.

@joonghochoe
Copy link
Author

When I used version 1.5.0, Timer 3 worked fine. Thanks.

@khoih-prog
Copy link
Owner

khoih-prog commented May 11, 2021

Good news. If you have time, could you please help testing Timer4. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants