-
Notifications
You must be signed in to change notification settings - Fork 297
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
Issues with tone() on ATTiny861 #665
Comments
|
In my tests, I recorded OCR1C (which is being used as top in this configuration) was initially set to 255 (which is wrong) and then get set to 3 (which is even wronger). Conclude that Tone needs serious work (unpleasant work too because it requires incessant testing. Rgjt now I have not the faintest idea why it is doing what it is doing and I have not looked at that code in years. |
Sdding "Help wanted" - can anyone figureout what the devil is going on here:?!!!?! |
Hi everyone. I don't have the time to tackle this further, but hopefully someone can pick up where I left off: Disassembly of '84 example ZIP containing an HTML-rendered diff of the two |
Thanks on two fronts - both regarding this issue, and goddamn, that online dissassemler is cool AF! DxC 1.5.0 is almost ready for release, at which point I can come back to this and finally get 2.0.0 out the door. Note that comparing the dissembly is less useful than one might hope, because the timers being used are very very different peripherals. The tiny 861 has two timers. |
No kidding. the closest web-based tool I was previously familiar with was Compiler Explorer, but I figured someone had to have made a web-based disassembler. Turns out yes, and it kicks ass!
WTF
Sounds like a good plan haha. Assuming you mean that If so, my understanding is that there are three ways No worries if you don't know off the top of your head, just trying to give future contributors some food for thought. |
No no, timer0 IS the less wacky timer!!! Timer1 is far wierder! (and is good at generating tones, while timer0 is not well suited for that |
Discussed in #664
Originally posted by AvilanHauxen February 7, 2022
Hi.
I have a project that I am moving from an ATTiny84 to an ATTiny861, and I am experiencing some issues when using tone().
When using a t861, it seems only part of the very first sound is auditable and everything afterwards is barely auditable and muffled.
When using the same sketch and wiring with a t84 everything sounds as expected.
I've tried using different chips and piezos and have tried with just about every pin.
The following is my testing sketch;
Arduino IDE 1.8.19
ATtinyCore 1.5.2
The text was updated successfully, but these errors were encountered: