is there a similar IC to the Attiny85 with less i/O and cheaper? - Page 1
Forum section: electronics / projects

author: bigjoncoop
author_rank: Regular Contributor
timestamp: August 27, 2021, 04:21:36 am
content: is there a similar IC to the Attiny85 with less i/O and cheaper?A lot of times I only use 2 I/O pins on the ATTINY85 and was wondering if there's a cheaper IC that I can still program the same why with just less I/O pins?

author: grrmachine
author_rank: Contributor
timestamp: August 27, 2021, 05:23:25 am
content: I use a lot of cheap 8-bit controllers from Holtek. They have a lot of functionality for the cost and I put a lot of them into high volume cost-controlled products. Especially the ones with flash like HT66F0021, HT68F if you could access them and get the programmer it would be ideal for a hobbyist.https://www.holtek.com/producthome/-/pid/402/422There have some dirt cheap OTP versions available and also look at Padauk, they have some open programmer developed and the chips are available at LCSC.

author: WattsThat
author_rank: Frequent Contributor
timestamp: August 27, 2021, 05:30:29 am
content: Hard to answer without more details. In AVR? The general response is not really. The 25 with less memory should be cheaper but... You may not find any of the older AVR parts to be any cheaper than the 84/85 as they are at or nearing end of life and that’s where the volume is.To move to the newer, cheaper tinyAVR-0/1/2 parts, you’ll need a UPDI programmer. You can build one from an Arduino Nano/mini in a pinch. There you’ll find some 6 pin surface mount parts.

author: RoGeorge
author_rank: Super Contributor
timestamp: August 27, 2021, 06:21:54 am
content: Quote from: bigjoncoop on August 27, 2021, 04:21:36 amMaybe ATtiny13? But I think the smallest pin count is 8.From other producers I've heard Padauk has some dirt-cheap MCUs, only a few cents. There are some threads about Padauk MCUs on the EEVblog, IDK which one to recommendhttps://www.eevblog.com/forum/microcontrollers/padauk-pfs154-getting-started/Quote from: WattsThat on August 27, 2021, 05:30:29 amIf that's the same as the so called debug wire, I've made one out of a USB to serial adapter and a diode. It works as a hardware debugger, with hardware breakpoints, memory change/inspect, GDB, GUI from Eclipse and all the fancy debugging features:https://www.eevblog.com/forum/microcontrollers/avr-(arduino)-linux-debug/

author: Miyuki
author_rank: Frequent Contributor
timestamp: August 27, 2021, 08:56:09 am
content: Attiny 4/5/9 are way cheaper in SOT-23-6 (about $0.35) - The Tiny Programming Interface (TPI)Or that new ATTINY202 in SOIC8 (about $0.425) - Single Pin Unified Program Debug Interface (UPDI)

author: MarkR42
author_rank: Regular Contributor
timestamp: August 27, 2021, 02:16:16 pm
content: The Attiny10-tshr is currently unavailable anywhere. However, the Attiny5-tshr is in the same series and there appears to be some stock in the supply chain.I really enjoyed programming the attiny4/5/9/10 series it's a lot of fun having 32 bytes of memory and very little flash. But my firmware all fitted in and was written completely in C (no assembly!)

author: Jeroen3
author_rank: Super Contributor
timestamp: August 27, 2021, 02:23:06 pm
content: Quote from: MarkR42 on August 27, 2021, 02:16:16 pmProgramming a tiny10 in C requires so much compiler tuning. Basically you cannot have any function calls. Because it can't fit a stackframe. Fun though.Like the 8051 days.

author: RoGeorge
author_rank: Super Contributor
timestamp: August 27, 2021, 03:47:30 pm
content: IIRC, the GCC-AVR has a setting for stack size. Other compilers should be able to set that, too.

author: MarkR42
author_rank: Regular Contributor
timestamp: September 15, 2021, 10:15:53 am
content: The tiny10 does not need super-tuning, I wrote my firmware in C with loads of function calls and it's still only 390 bytes and does not use much (any?) stack.I enabled link-time optimisation and used "static" prefix for most things. The compiler seems to have inlined everything.

author: bingo600
author_rank: Super Contributor
timestamp: September 15, 2021, 04:45:04 pm
content: Quote from: RoGeorge on August 27, 2021, 06:21:54 amThis is the best Pada threadhttps://www.eevblog.com/forum/blog/eevblog-1144-padauk-programmer-reverse-engineering/

author: jmelson
author_rank: Super Contributor
timestamp: September 19, 2021, 12:01:28 am
content: Quote from: RoGeorge on August 27, 2021, 06:21:54 amYes, I used the ATtiny13A in a project, 8 pin SOIC, it worked great. I used the Sparkfun "tiny programmer" to program it from USB. That programmer cost about $16. The ATtiny13A can run off 5 V, too.Jon

author: westfw
author_rank: Super Contributor
timestamp: September 20, 2021, 04:14:53 am
content: QuoteThe tiny0/1/2 are pretty nice chips - lots of peripherals and significantly cheaper than a tiny85. While there aren't any "less pins" options, there are a bunch of "smaller package" options.And UPDI is pretty nice compared to previous program/debug protocols.QuoteThe 6pin parts are NOT tiny0/1/2. Affectionately known as "brain dead" chips, they have tiny memories and half the registers of regular AVRs, and essentially no peripheralsAlso, you'll need a "TPI" programmer, which are less widely implemented than either ISP or UPDI.Not recommended, unless you really need that SOT23-6 package.