3 ms·
The Microtouch is using an ATMega32u4, which I think is this one: http://search.digikey.com/us/en/products/ATMEGA32U4-AU/ATMEGA32U4-AU-ND/1914602 http://search.
by kragen 15y ago
The Microtouch is using an ATMega32u4, which I think is this one: http://search.digikey.com/us/en/products/ATMEGA32U4-AU/ATMEGA32U4-AU-ND/1914602 http://search.digikey.com/us/en/products/ATMEGA32U4-AU/ATMEG..., which Digi-Key lists for US$3.79 each in quantity 25. An ARM alternative would be the LPC2103, such as http://search.digikey.com/us/en/products/LPC2103FBD48,151/568-2094-ND/857682 http://search.digikey.com/us/en/products/LPC2103FBD48,151/56..., US$4.95 in quantity 25.
That's a real difference, but the Adafruit retail price of this device is US$70. But the ARM chip is, at least on paper, dramatically more capable:
The AVR has an 8-bit ALU and runs up to 16MIPS (12MIPS in this case) and has 32K of Flash and 2.5K of RAM. The ARM has a 32-bit ALU, runs up to 70MIPS, has 32K of Flash, and 8K of RAM.
So for boosting the price from US$70 to US$71 or US$72, it would seem that you get three times the RAM and six times the compute cycles.
Newer ARM chips like the LPC1114 http://search.digikey.com/us/en/products/LPC1114FHN33%2F302:5/568-5152-ND/2507870 http://search.digikey.com/us/en/products/LPC1114FHN33%2F302:... are US$2.25, 50MHz (and I assume 50MIPS), 32K/8K, Cortex-M0.
So there must be something I'm missing. What am I missing? Are the LPC2103 and LPC1114 a lot harder to integrate into existing designs? Is it that much harder to get ARM machine code out of GCC? Is the LPC very power-hungry? Does the LPC need some kind of expensive and complicated support circuitry? I'm out of my depth here. Help me out.
- kragen 15y agoI've been reading more of his blog. He's been doing some amazing things with the LPC111x family, like this offline Wikipedia reader http://rossum.posterous.com/wikipedia-homebrew-device-features-cortex-m0 http://rossum.posterous.com/wikipedia-homebrew-device-featur... and this video game console that generates composite video signals in software http://rossum.posterous.com/20131601 http://rossum.posterous.com/20131601. So I wonder if maybe he used the AVR instead of the ARM just because it was an earlier design.