Replies: 5 comments 1 reply
-
|
You are factoring in the expected power consumption of the WDT there? The other thing - make sure all pins are in a defined state, no floating pins. Transitions on the input buffers can use a small amount of power. I also notice you're leaving timer0 enabled, is that intended? For minimum power usage, you'd want to turn off power to timer0 (disable millis from tools menu too in this case) The 861 uses the 4 least significant bits of the PRR: 0x08 is timer1 which I see you are shutting off. 0x04 is timer0, which you are not, 0x02 is the USI which you are not, and 0x01 is the ADC. I reckon you'd want to disable millis from the menu option, and set |
Beta Was this translation helpful? Give feedback.
-
|
One thought.... ah, how do I say this.... Why are you using rather old 861V
with it's bizarre timers, unique limitations and decade-old design, when
you're not using any of it's unique features (mostly at this point, the
high speed timer and 3-phase BLDC/bridge control capabilities, which are
still unmatched with no sign of that changing) ... and you need serial and
I2C on a part with on a part with no hardware serial port and a terribad
USI peripheral instead of a real I2C interface? Do you have piles of these
kicking around or something?
Because like... you can check off all the features (including a
differential ADC with programmable gain, seen on a new AVR for the first
time in like 8 years, hardware I2C & SPI and not one but two hardware
serial ports) with none of the drawbacks, power usage at least as low, and
get 4 times the flash and 6 times the RAM for around the same price on a
20-pin tinyAVR available in SOIC20 with the recently released tinyAVR
2-series, ex 3226, 1626, 826, 426)? It seems like there's no real reason
for you to use the 861 here,,, Arduino support for the modern tinyAVRs is
available through my megaTinyCore. They've also got a pile of other cool
features, most of which have arduino library wrappers. That and DxCore are
the reason updates are so much less frequent on ATTinyCore now....
…On Fri, Jan 7, 2022 at 6:23 AM jzobac ***@***.***> wrote:
Hi,
thanks, will try. I have migrated sketch from atmega328p, not all is yet
done. I doesn't known if I will need millis or not, I will (wish to) use
software serial and I2C.
Here are my fuses
avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as D7
avrdude: safemode: efuse reads as FF
http://eleccelerator.com/fusecalc/fusecalc.php?chip=attiny861&LOW=62&HIGH=DF&EXTENDED=FF&LOCKBIT=FF
BOD disabled, 1Mhz.
jzobac
—
Reply to this email directly, view it on GitHub
<#638 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW7A25E33FYSU26OXNTUU3ELJANCNFSM5LMQVRGQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
--
____________
Spence Konde
Azzy’S Electronics
New products! Check them out at tindie.com/stores/DrAzzy
GitHub: github.com/SpenceKonde
ATTinyCore <https://github.com/SpenceKonde/ATTinyCore>: Arduino support for
all pre-2016 tinyAVR with >2k flash!
megaTinyCore <https://github.com/SpenceKonde/megaTinyCore>: Arduino support
for all post-2016 tinyAVR parts!
DxCore <https://github.com/SpenceKonde/DxCore>: Arduino support for the AVR
Dx-series parts, the latest and greatest from Microchip!
Contact: ***@***.***
|
Beta Was this translation helpful? Give feedback.
-
|
Easy answer :), I'm not able to get them. Attiny85V is unavailable maybe 5 years (only batch of 1000+ is maybe). New Attiny's are with no chance to get them in THT. And you write on the github "don't buy them in china, most of them are fakes". OK will revert back to Arduino Pro Mini - power usage seems to be little more than of an ATtiny861V (and in TME they have listed that has I2C) same in gme If you will send from EU, I will buy batch of 20 Tinny's. And if they prove that are good and I can work with them, than more. Customs in czech are terrible. jzobac |
Beta Was this translation helpful? Give feedback.
-
|
Mouser seems to have a few AT85V in stock. |
Beta Was this translation helpful? Give feedback.
-
|
I have contacted Mouser with question - from where they ship from and after 4 days no response. For me not good partner to buy something. Have ordered Attiny3224 (from TME), but when I look to datasheet, the power consumption is +- equal to Atmega328p, I don't see benefits of new attinys. See just one, 2x HW UART, that's for me useful, one for application and second for debug. But this is only useful for development, thus for production use is Atmega328p good enough (and for development is enough sw serial too). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have try some magic, but get only 620uA in normal operation (datasheet says 300uA) and 3.7uA in sleep (datasheet says 0.1uA).
Fuse configuration I will write later (I'm not at home).
And if someone known how to internally read VCC, it would be great too.
jzobac
Beta Was this translation helpful? Give feedback.
All reactions