Is there a list somewhere that shows what is supported with regards to the attiny component? I tried some code from actual attiny projects but I can only get a few of them to work. External interrupts seem to work but I can't get any timers, watchdog or sleep modes to work.
5 comments
-
Permanently deleted user Official comment Excellent question! *Most* of the ATtiny is implemented, but there isn't a public list of what is not supported. Timers should work fine. I have used them in a number of projects. I can't speak for watchdog & sleep modes off the top of my head. Can you reply with pointers to non-working projects? I'd be happy to try to get those to work too.
-
Robert Blomqvist Thanks for answering! Glad to hear most parts are implemented, maybe I'm just doing something wrong then.
Here is an example with a simple hardware counter, TCNT1, with Overflow interrupt enabled. I cannot get the ISR to execute: https://goo.gl/Rivvkp
Here is another example that configures a watchdog timer and then goes to deep sleep, however I don't see the device going to sleep and like the above example the ISR never executes: https://goo.gl/az3VWi
It would be very nice to have the power down modes simulated in Tinkercad, with somewhat accurate current reduction as compared to an active chip!
Bonus question: Can we set the clock frequency of the attiny by defining F_CPU or is it always running in a specific clock, and if so what is it? If I'm not mistaken an untouched chip runs with 8Mhz with a prescaler of 8 - so 1Mhz.
Best,
Robert -
Robert Blomqvist Hello, just checking in to see if the above have been looked at. Best regards,
-
Cleared Sorry for the delay in getting back to you. I looked into it, and found that you are correct. Sleep and the watchdog timer are currently unsupported. Also, SPI appears to be unsupported. As for the clock speed of the ATtiny. It is set to 8MHz in order to support the neopixel library.
-
Cleared Are there any plans to add support for the missing features? As far as I can see the watchdog timer still isn't supported on Arduino Uno, and I assume the other variants as well.