FastPwmPin icon indicating copy to clipboard operation
FastPwmPin copied to clipboard

Support for Megatinycore

Open stevecolt opened this issue 3 years ago • 2 comments

Hi, I'm using your code on a 328 with no problem, but would really like to port to an ATTINY1614 using https://github.com/SpenceKonde/megaTinyCore These chips are really good and work very well with the above. Do you have any plans to support more chips, and what is the chance of the above being included? Many thanks Steve

stevecolt avatar Nov 29 '21 14:11 stevecolt

Hello @stevecolt, thank you for bringing this ATtiny to my attention. I'm not familiar with this chip yet and I don't have one in my collection, (nor any other new series ATtiny with the single pin UPDI),

As prompted by your issue, I did download its datasheet and had a quick look. From first sight, the features of this chip are quite interesting indeed. For providing fast PWM, It has quite a bunch of high resolution timer/counters with some interesting aspects that the older ATtiny's don't have. I still need to take a closer look at the documentation and at Spence Konde's undoubtedly excellent piece of work.

I usually get my chips via the slowboat from Ali, but only saw some offerings that are quite a bit beyond the price range of the older ATtinys. Is $50 for ten pcs the usual price for these MCU's? The prices that Spence Konde mentions on his page are quite a bit lower. Where did you order your chips? As it stands now I won't be able to contribute a new version to support this chip on short notice, but I'm definitely interested to include support as soon as I can put my hands on one and set up a development environment.

In the meanwhile I was wondering whether you are a programmer yourself. The basic function of the library is to wrap setting some Timer registers to make the chip output a PWM signal on a specific pin. If you look at the source code of the library, you can see it's not very complicated and I have included quite a bit of comment attempting to explain what the code does. The Links in the readme point to material by people that explain the fundamentals much better than I can...

maxint-rd avatar Nov 29 '21 16:11 maxint-rd

Hi Maxint, Spence does some development boards at reasonable prices, but I chose a Curiosity Nano from Microchip https://uk.rs-online.com/web/p/microcontroller-development-tools/2155981/ I didn't have a lot of luck using an FTDI as UDPI programmer, but these boards work a treat, and I use one with the link cut as a programmer for my other boards. The 1614 is around 70p here in UK from the likes of RS, Mouser, Farnell etc, doesn't need a xtal, whats not to like!!! Ive used them in an application that had 2 comparators going into a micro, and it was pretty much the same price as a dual comparator with all the resistors required. Only problem is of course at the moment they are very hard to get hold of!!! Please keep me posted if you do manage to get hold of one, and update your library. Thanks Steve

On Mon, 29 Nov 2021 at 16:20, Maxint R&D @.***> wrote:

Hello @stevecolt https://github.com/stevecolt, thank you for bringing this ATtiny to my attention. I'm not familiar with this chip yet and I don't have one in my collection, (nor any other new series ATtiny with the single pin UPDI),

As prompted by your issue, I did download its datasheet and had a quick look. From first sight, the features of this chip are quite interesting indeed. For providing fast PWM, It has quite a bunch of high resolution timer/counters with some interesting aspects that the older ATtiny's don't have. I still need to take a closer look at the documentation and at Spence Konde's undoubtedly excellent piece of work.

I usually get my chips via the slowboat from Ali, but only saw some offerings that are quite a bit beyond the price range of the older ATtinys. Is $50 for ten pcs the usual price for these MCU's? The prices that Spence Konde mentions on his page are quite a bit lower. Where did you order your chips? As it stands now I won't be able to contribute a new version to support this chip on short notice, but I'm definitely interested to include support as soon as I can put my hands on one and set up a development environment.

In the meanwhile I was wondering whether you are a programmer yourself. The basic function of the library is to wrap setting some Timer registers to make the chip output a PWM signal on a specific pin. If you look at the source code of the library, you can see it's not very complicated and I have included quite a bit of comment attempting to explain what the code does. The Links https://github.com/maxint-rd/FastPwmPin#links in the readme point to material by people that explain the fundamentals much better than I can...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/maxint-rd/FastPwmPin/issues/6#issuecomment-981792012, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ5FYLRVNYXPDQN4MNKUAH3UOOR4BANCNFSM5I7H4HZQ . 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.

stevecolt avatar Nov 29 '21 21:11 stevecolt