-
Whats the cheapest off brand of MCUs i can get?
Posted by
BiOzZ
on 15 Apr, 2013 01:24
-
i want 100 count of some REALLY cheap yet somewhat reliable micro controllers to stick on some PCB business cards
my only needs are it needs to be a microprocessor with on board memory and all of that, it needs to be an architecture that exists more than in the one product, and a decent english or russian datasheet, dip/SOIC package ... maybe SSOP or TQFP ... OH and can be programmed in something other than an $10,000 dev platform ...
i searched digikey and mouser and newarc but im sure there is something out there they can not be bothered to stock!
-
#1 Reply
Posted by
c4757p
on 15 Apr, 2013 01:27
-
Depends highly on what you need! Considering "microcontroller" can be anything from 8 bytes (yes, bytes) of RAM to many kB, with anything from just GPIO to a massive collection of peripherals, that's a hard question to answer.
-
#2 Reply
Posted by
mariush
on 15 Apr, 2013 01:33
-
-
#3 Reply
Posted by
BiOzZ
on 15 Apr, 2013 01:35
-
Thats whats making this search so hard ... i will work my needs around the MCU ... im just looking for bottom dollar
-
#4 Reply
Posted by
c4757p
on 15 Apr, 2013 01:39
-
i will work my needs around the MCU ... im just looking for bottom dollar
I don't think you understand. Can you work your needs around
this? Because you can get 100 of them for $34. But I suspect it's not quite sufficient.
You really need to come up with at least a bare minimum of features, RAM, whatever.
(No, Mouser data entry oompa-loompas, that does
not have a USB interface. It's barely capable of printing the word "USB" on a serial LCD, if you're good at writing small code.
)
-
#5 Reply
Posted by
BiOzZ
on 15 Apr, 2013 01:45
-
Ah yes perfect thank you! just 2 of these will do me fine per card!
-
#6 Reply
Posted by
BiOzZ
on 15 Apr, 2013 01:46
-
and yes i have become quite good at writing small ASM code ... tho i need to brush up
-
#7 Reply
Posted by
c4757p
on 15 Apr, 2013 01:48
-
Wait, really? What are you doing with them?
Be careful with that one. You need to figure out how you're going to program it - it's only got 6 pins, you know (even the DIP-8 version leaves two unconnected).
-
#8 Reply
Posted by
mariush
on 15 Apr, 2013 01:49
-
BiOzZ, you can get microcontrollers that have only 6 pins and 2 i/o ports, just enough to light a few leds or do some bitbanging, or you can spend 10-15 cents more and get a good all around chip.
For example here something that looks ok :
http://www.digikey.com/product-detail/en/PIC16F1503-I%2FSL/PIC16F1503-I%2FSL-ND/27720410.62$ a piece... 72 bytes of ram, 3.5 kb of flash memory, about 10 i/o pins, i2c, spi so you can interact with other ICs, it's flexible, versatile etc
if you think your code will be smaller and can fit in 1.5k , then by all means, you could go for a pic16f505 but this one's only 1.5 KB of flash, no i2c, no spi ... but at 0.54$
http://www.digikey.com/product-detail/en/PIC16F505-I%2FSL/PIC16F505-I%2FSL-ND/613196or go even lower at 0.46$ and get a pic16f54 :
http://www.digikey.com/product-detail/en/PIC16F54-I%2FSS/PIC16F54-I%2FSS-ND/613200but what's the point of having 12 io pins when you only have 678 bytes of flash and 25 bytes of ram? you'd really have to work really hard at writing assembler to squeeze stuff in. Probably not worth the savings.
Instead of using two of those pic10 chips, you might as well get one of those pic16 that's a bit more expensive but not quite as expensive as 2 pic10 and you're done.
-
#9 Reply
Posted by
BiOzZ
on 15 Apr, 2013 02:01
-
Wait, really? What are you doing with them?
Be careful with that one. You need to figure out how you're going to program it - it's only got 6 pins, you know (even the DIP-8 version leaves two unconnected).
ill just make a dropper programming rig, program them than solder it on
and im not 100% sure what there fictions will be but now i have the MCU i can build out from there
BiOzZ, you can get microcontrollers that have only 6 pins and 2 i/o ports, just enough to light a few leds or do some bitbanging, or you can spend 10-15 cents more and get a good all around chip.
For example here something that looks ok :
http://www.digikey.com/product-detail/en/PIC16F1503-I%2FSL/PIC16F1503-I%2FSL-ND/2772041
but what's the point of having 12 io pins when you only have 678 bytes of flash and 25 bytes of ram? you'd really have to work really hard at writing assembler to squeeze stuff in. Probably not worth the savings.
i have been programming for years and i cant even begin to think of how good of a programmer you will have to be to utilize 12 i/os with 25 bytes of ram to do anything more than flash some LEDs
but c4757p's suggestion has the pins, ram and power consumption i can work with
not to mention a funny small foot print
this will be a fun exercise!
tho i am now tempted to also get a few of the PIC16F1503's just to see what i can make one do!
-
#10 Reply
Posted by
c4757p
on 15 Apr, 2013 02:03
-
but c4757p's suggestion has the pins, ram and power consumption i can work with
not to mention a funny small foot print
Small is for damn sure! They are literally the same size as a small surface mount transistor, with three more pins squeezed on. The fact that they can fit a CPU, flash ROM and RAM in there absolutely boggles my mind.
-
#11 Reply
Posted by
BiOzZ
on 15 Apr, 2013 02:12
-
Small is for damn sure! They are literally the same size as a small surface mount transistor, with three more pins squeezed on. The fact that they can fit a CPU, flash ROM and RAM in there absolutely boggles my mind.
Tech today is amazing ... i would not even notice it when looking at a PCB!
this is going to be fun!
-
#12 Reply
Posted by
MacAttak
on 15 Apr, 2013 03:54
-
Should be a fun project. I've tinkered with the really tiny Atmel microcontrollers and it was an interesting process. I had a hell of a time getting something worthwhile to fit in under 1K of flash - so you've got your work cut out for you with a mcu that only has 384 B
-
#13 Reply
Posted by
Psi
on 15 Apr, 2013 03:58
-
Cheapest will probably be those 4bit china mcus you sometimes see in throwaway stuff.
But i doubt you will find them on digikey.
You don't want to go too cheap for business card micros.
If they fail to work it doesn't give a good impression of you.
-
#14 Reply
Posted by
westfw
on 15 Apr, 2013 08:57
-
The last time I looked, the Freescale rs08 series looked to be doing especially well in terms of bang per buck. Relatively pleasant architecture, too.
These days there's quite a bit under 0.50...
No 0.25 chip like the tiny11 was briefly, though...
-
#15 Reply
Posted by
amyk
on 15 Apr, 2013 10:40
-
Take a look at the STC 8051s... current prices are around $0.20USD and the smallest one has more flash than the smallest PIC:
http://www.stc-51.com/stc15f100.php(Part number probably not a coincidence...)
-
-
PIC10F200 is probably the cheapest generally accessible MCU in that volume
-
#17 Reply
Posted by
nctnico
on 15 Apr, 2013 11:53
-
i want 100 count of some REALLY cheap yet somewhat reliable micro controllers to stick on some PCB business cards
my only needs are it needs to be a microprocessor with on board memory and all of that, it needs to be an architecture that exists more than in the one product, and a decent english or russian datasheet, dip/SOIC package ... maybe SSOP or TQFP ... OH and can be programmed in something other than an $10,000 dev platform ...
i searched digikey and mouser and newarc but im sure there is something out there they can not be bothered to stock!
Look for TI's MSP430. Very cheap and extremely low power.
-
#18 Reply
Posted by
westfw
on 15 Apr, 2013 15:21
-
http://www.stc-51.com/stc15f100.php
OK, I'm intrigued. Are there any links to actually buy those that aren't dead or leading to a "no longer available" page?
(OMG, the blinking text...)
-
#19 Reply
Posted by
AndreasF
on 15 Apr, 2013 18:23
-
-
#20 Reply
Posted by
alm
on 15 Apr, 2013 19:10
-
$0.48/100 is not particularly cheap, in my opinion. Both Microchip and Atmel have devices around the $0.30 mark, for example the ATtiny13 for $0.34/100.
-
#21 Reply
Posted by
nctnico
on 15 Apr, 2013 19:34
-
Price is not everything. Everybody likes to think the cheapest parts make the cheapest solution. In reality an MSP430 is a real 16 bit architecture and the development tools including a proper C compiler (GCC) are completely free. The PIC C compiler costs $1195. So your 100 PICs will cost ($1195+ $34)/100=$12.29 each. The architecture of 8 bit PICs is so archaic that you need to write C with a twist. Not so for the MSP430 so its easier to port / re-use your code later on.
A large portion of the cost of a circuit containing a microcontroller goes into developing the embedded firmware. Keeping your code portable makes the investment in software keep its value.
-
#22 Reply
Posted by
AndyC_772
on 15 Apr, 2013 19:49
-
The fully optimising compiler might cost that, so use the free one - or write in assembler if need be.
-
#23 Reply
Posted by
nctnico
on 15 Apr, 2013 20:08
-
In that case writing the software may take 3 times longer or you need a more expensive device with a bigger flash. So instead of spending 20 hours you may end up spending 60 hours. Even at $40 per hour that will cost you $16 per controller extra.
-
#24 Reply
Posted by
AndyC_772
on 15 Apr, 2013 20:27
-
Or it might just work perfectly well. Every design I've done for the last couple of years has compiled, fitted and worked with no problems at all that were down to using the free compiler. The choice of device has always come down to some factor other than compiled code size or speed.
-
#25 Reply
Posted by
alm
on 15 Apr, 2013 20:28
-
The ATtiny13 I mentioned works with the same free GCC compiler. Cheap programmers are also available.
-
-
The fully optimising compiler might cost that, so use the free one - or write in assembler if need be.
Or the trial version of the free one - shouldn't take anywhere near 30 days to fill a device that small!
-
-
Could you please make the design open source? I would send you a postcard! There needs to be more novel oshw projects. Like Dave's power supply.
-
#28 Reply
Posted by
westfw
on 16 Apr, 2013 16:07
-
One of the things that this conversation highlights is that when you get to the point where a couple of cents per part is a "significant" price, the supplier may make more of a difference than the chip. I can't find $0.34 ATtiny13s, and I can't find those STC-51 chips anywhere.
One of the "off" brands that show up occasionally is Holtek, who sells some sort of PIC clones.
But I have no idea where you might be able to buy ~100 of them...
-
#29 Reply
Posted by
nctnico
on 16 Apr, 2013 18:35
-
The fully optimising compiler might cost that, so use the free one - or write in assembler if need be.
Or the trial version of the free one - shouldn't take anywhere near 30 days to fill a device that small!
But what do you do when the client calls after three months asking to make some changes?
-
#30 Reply
Posted by
mrflibble
on 16 Apr, 2013 18:42
-
But what do you do when the client calls after three months asking to make some changes?
Use the free non-optimizing compiler, since the code that one produced fits as well.
-
#31 Reply
Posted by
mariush
on 16 Apr, 2013 19:13
-
The fully optimising compiler might cost that, so use the free one - or write in assembler if need be.
Or the trial version of the free one - shouldn't take anywhere near 30 days to fill a device that small!
But what do you do when the client calls after three months asking to make some changes?
Or trick the evaluation expiration... Install the compiler in a virtual machine (emulated windows), disable updating time and all that so that windows won't update time when rebooting, turn off windows and make a copy of the emulator's hard drive image somewhere. Whenever the compiler expires, replace the active hard drive image with a copy of your original hard drive image from back then.
You'll be constantly frozen at that first day of evaluation.
But then again, if you go to so much trouble, you might as well crack the compiler, there are keygens and patches available on the internet.
-
#32 Reply
Posted by
AndyC_772
on 16 Apr, 2013 19:24
-
But what do you do when the client calls after three months asking to make some changes?
Exactly like I said:
Every design I've done for the last couple of years has compiled, fitted and worked with no problems at all that were down to using the free compiler.
Seriously... you're pretending like the free compiler is so useless as to not even be worth considering, and I don't get why. It works, I use it, both for personal stuff and professionally, and there have been no instances where the full version of the compiler would have allowed me to use a cheaper device.
If you need the full version then fine, I can see that in some cases it might be beneficial - but don't assume it's always necessary.
[edit]: another option, of course, is to buy the full compiler
if you then need it to fulfil the client's later request, and
if the value of that work covers its cost.
-
#33 Reply
Posted by
westfw
on 16 Apr, 2013 22:59
-
I had the distinct impression that the original poster was willing to tightly hand-code in assembler.
Or even machine code, if that would save 30% or so in the cost department. It wasn't that long ago where this wouldn't be too odd; I think I have still some programming pads around with 1802 assembler partially hand-translated to hex with the idea that it would be keyed into a computer via the keypad...
(Although, I also have (much more recently) a bunch of (OTP) 4-bit CPUs for which there doesn't seem to be a free assembler available. I find that really, really, sad.)
Another idea for C on Microchip PIC8: use one of the third-party compilers that generates better code for free, at least for limited program size. Or JAL.
-
#34 Reply
Posted by
ve7xen
on 16 Apr, 2013 23:40
-
Not much more than the PIC10 but a hell of a lot more useful, STM8. STM8S003F3P6 is readily available for $0.35/pc @ 100pcs (from AvNet) or cheaper if you can handle QFN. It's an 8KB flash, 1KB RAM 20 pin device with ADC and some peripherals (serial, timers etc.). If you're okay with not using GCC there is a free 8k limited compiler available from Cosmic Software. You should be able to use the cheap STM8SDISCOVERY board to program/debug it.
-
#35 Reply
Posted by
amyk
on 18 Apr, 2013 15:21
-
-
-
PIC10F320 vs a regular DIP8 package. They are tiny!
-
#37 Reply
Posted by
lewis
on 24 Apr, 2013 19:43
-
But what do you do when the client calls after three months asking to make some changes?
Mikroelektronika's compiler/IDE is completely free, and still fully optimised, for anything under 8K code size, but it doesn't support PIC10. It'll do the smaller PIC12's though and there isn't much difference in MCU cost.
Programming in C on a PIC10 is almost completely pointless anyway, you might as well do it in assembly using MPLAB, which is of course free. Due to hardware limitations you couldn't possibly write PIC10 code complex enough that the time savings become worthwhile in C, unless you're in a REAL hurry.
As for programming, include some bare SMD pads which correspond to the ICSP pins on the Pickit2. Then, make a little bit of veroboard with a 0.1" header on one end and five of these
http://uk.farnell.com/multicomp/p100-h-250-g/plunger-serrated/dp/1568268?Ntt=156-8268 on the other. You stick the header in in the pickit and press the spring plungers (pogo pins) onto the corresponding pads on your PCB, and program. No need to waste time inserting the tiny bastard SOT23 packages in a programming socket, and no need to pay Microchip to program the PICs for you prior to SMD placement.
Complete development cost? About $40 (or $4 for the pogo pins if you already have a pickit).
-
#38 Reply
Posted by
amyk
on 25 Apr, 2013 10:54
-
PIC10F320 vs a regular DIP8 package. They are tiny!
I'm guessing you haven't seen the bare die yet... because you'll say that again if you do.
-
-
Programming in C on a PIC10 is almost completely pointless anyway, you might as well do it in assembly using MPLAB, which is of course free. Due to hardware limitations you couldn't possibly write PIC10 code complex enough that the time savings become worthwhile in C, unless you're in a REAL hurry.
It depends entirely on the functionality. The code size penalty of small C programs when carefully written often isn't much (well under 2x) although the compiler cost vs. time saved tradeoff becomes smaller, but can still be worthwhile.
Unless you're doing high volumes, it's often cheaper overall to just spend a little more on silicon with more memory to save coding time squeezing stuff in.
-
-
PIC10F320 vs a regular DIP8 package. They are tiny!
I'm guessing you haven't seen the bare die yet... because you'll say that again if you do.
At this end of the price range, the packaging actually makes a big difference in cost price too
DIP8 is 20% more expensive than SOT-23.
-
#41 Reply
Posted by
Stonent
on 16 May, 2013 15:46
-
-
#42 Reply
Posted by
Rasz
on 16 May, 2013 16:22
-
There is whole Chinese market of wonderful ICs not available to us
Smart card readers/usb flash controllers/SD card controllers for example - Somehow small chinese shops can get their hands on bare dies and full datasheet for those devices. Getting something like this outside Asia will cost thousands of dollars for joining licensing cartels/standard consortiums, not to mention proving you already have a company making hundreds of thousands of similar devices and signing NDAs.
-
#43 Reply
Posted by
amyk
on 17 May, 2013 07:20
-
There is whole Chinese market of wonderful ICs not available to us
Smart card readers/usb flash controllers/SD card controllers for example - Somehow small chinese shops can get their hands on bare dies and full datasheet for those devices. Getting something like this outside Asia will cost thousands of dollars for joining licensing cartels/standard consortiums, not to mention proving you already have a company making hundreds of thousands of similar devices and signing NDAs.
It's all about knowing the right people