Author Topic: cheap and basic microcontroller  (Read 8587 times)

0 Members and 1 Guest are viewing this topic.

Offline abhimanyu

  • Contributor
  • Posts: 8
cheap and basic microcontroller
« on: August 28, 2010, 10:10:17 am »
hi
i have experience of using atmega 16/32/.. series microcontrollers
i have used spi programming through usbasp and parallen db25 port, adc, i/o functions of atmega

now i need a microcontroller with the following specifications:
1 adc channel 8 bit
3 i/o pins
easy to make its hardware as i will not be able to purchase evaluation board
AS CHEAP AS IT CAN BE
ram:512 kb
non volatile flash 512 kb
 
can i get some suggestions
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 16642
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: cheap and basic microcontroller
« Reply #1 on: August 28, 2010, 10:15:23 am »
PIC 12F615 it's about the most feature full of the 12F' series without spending serious money
 

alm

  • Guest
Re: cheap and basic microcontroller
« Reply #2 on: August 28, 2010, 10:34:53 am »
Most specs are pretty basic, but 512kB ram / flash is a lot, I don't think you'll find many 8-bit micros that can do that, might have to move up to 16-bit or even 32-bit for that. Apart from that, almost any micro would do. If you have the experience and tools for AVR, I'd start looking for those, since you wouldn't need to spend as much time studying the documentation, and don't have to invest in a programmer. Apart from the RAM/flash requirements, something like an ATtiny13 or ATtiny25/45/85 would do, all are available in DIP-8. For 512kB RAM/flash, you'd probably need to look at ARM/AVR32/PIC32, which are usually not cheap or available in DIP.
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 12856
  • Country: gb
    • Mike's Electric Stuff
Re: cheap and basic microcontroller
« Reply #3 on: August 28, 2010, 02:06:30 pm »
hi
i have experience of using atmega 16/32/.. series microcontrollers
i have used spi programming through usbasp and parallen db25 port, adc, i/o functions of atmega

now i need a microcontroller with the following specifications:
1 adc channel 8 bit
3 i/o pins
easy to make its hardware as i will not be able to purchase evaluation board
AS CHEAP AS IT CAN BE
ram:512 kb
non volatile flash 512 kb
 
can i get some suggestions

Do you really mean 512k ram and rom? If so your choices are somewhat limited, and it will come with somewhat more than 4 IO pins, cost a lot more than an ATMega and definitely won't be in a DIP package..!
Quote
PIC 12F615 it's about the most feature full of the 12F' series without spending serious money
12F617 is a significant improvement on the 615 as it has self-programming and double the flash/ram for around the same price. However if you really need 512 bytes RAM you'll need to look further up market. RAM is quite expensive in silicon-area terms, which is why you don't see low-end parts with lots of it.
 

Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 16642
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: cheap and basic microcontroller
« Reply #4 on: August 28, 2010, 02:11:56 pm »
well I'm looking into the 12F683, what was the improvement on the '615 that the '617 made ?
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 12856
  • Country: gb
    • Mike's Electric Stuff
Re: cheap and basic microcontroller
« Reply #5 on: August 28, 2010, 02:31:04 pm »
well I'm looking into the 12F683, what was the improvement on the '615 that the '617 made ?
Self-programming.
Flash can be updated via whatever interface your product has.
Also, the 615 has no eeprom, the 617 allows storage of nonvolatile data in flash.


Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 16642
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: cheap and basic microcontroller
« Reply #6 on: August 28, 2010, 02:44:31 pm »
cool i may look into that, I've only just done my first ISP project
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 10444
  • Country: my
  • reassessing directives...
Re: cheap and basic microcontroller
« Reply #7 on: August 28, 2010, 03:21:55 pm »
« Last Edit: August 28, 2010, 03:26:01 pm by shafri »
It's extremely difficult to start life.. one features of nature.. physical laws are mathematical theory of great beauty... You may wonder Why? our knowledge shows that nature is so constructed. We simply have to accept it. One could describe the situation by saying that... (Paul Dirac)
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 16642
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: cheap and basic microcontroller
« Reply #8 on: August 28, 2010, 03:27:01 pm »
atTiny85... http://cgi.ebay.com.my/ATtiny85-20PU-Atmel-AVR-20MHz-PDIP-MCU-ATtiny-85-AT85-/250625114025?pt=UK_BOI_Electrical_Components_Supplies_ET
if you meant 512 bytes ram n flash. 512KB is to program Windows Application :D and the processor is NOT cheap!


Jeez someones taking the piss or atmel are horribly exspensive. the 12F615 is much cheaper:

http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=180546121357
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 10444
  • Country: my
  • reassessing directives...
Re: cheap and basic microcontroller
« Reply #9 on: August 28, 2010, 03:42:22 pm »
i think that seller guy put the price too high. i agree for a 8 pin DIP, $3 is too much! thats the sad thing about atmel... less availability. not much seller to compete, and currently there are 2 sellers only in ebay (both from UK, will take hell to ship to my country)
It's extremely difficult to start life.. one features of nature.. physical laws are mathematical theory of great beauty... You may wonder Why? our knowledge shows that nature is so constructed. We simply have to accept it. One could describe the situation by saying that... (Paul Dirac)
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 12856
  • Country: gb
    • Mike's Electric Stuff
Re: cheap and basic microcontroller
« Reply #10 on: August 28, 2010, 03:44:27 pm »
even cheaper at Farnell
12F617 is about half the cost of any of the 8 pin ATTinys
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 16642
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: cheap and basic microcontroller
« Reply #11 on: August 28, 2010, 03:47:50 pm »
even cheaper at Farnell
12F617 is about half the cost of any of the 8 pin ATTinys

looks like PIC is the way to go then. eBay is handy for small quantities, here in the UK Farnell want a minimum order of £20 which often means I end up spending more than i planned to especially when the price breaks for higher quantities look attractive, after all I can always offload my surplus on eBay  ;)
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 10444
  • Country: my
  • reassessing directives...
Re: cheap and basic microcontroller
« Reply #12 on: August 28, 2010, 04:00:03 pm »
no wonder its more expensive (by several cents)... its a 20MHz capable "fetcher" compared to 12f615 5MHz "runner". the guy is already familiar with AVR instructions he said, why not?
forgot to mention... its a 512B RAM too... vs 64B pic615.
« Last Edit: August 28, 2010, 04:06:49 pm by shafri »
It's extremely difficult to start life.. one features of nature.. physical laws are mathematical theory of great beauty... You may wonder Why? our knowledge shows that nature is so constructed. We simply have to accept it. One could describe the situation by saying that... (Paul Dirac)
 

Offline Zad

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: gb
    • Digital Wizardry, Analogue Alchemy, Software Sorcery
Re: cheap and basic microcontroller
« Reply #13 on: August 28, 2010, 04:39:00 pm »
Prices changes quite a lot from country to country, as the OP is in India, my recommendation would be to get hold of a local electronics magazine and browse the adverts in there.

Offline Simon

  • Global Moderator
  • *****
  • Posts: 16642
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: cheap and basic microcontroller
« Reply #14 on: August 28, 2010, 05:32:06 pm »
no wonder its more expensive (by several cents)... its a 20MHz capable "fetcher" compared to 12f615 5MHz "runner". the guy is already familiar with AVR instructions he said, why not?
forgot to mention... its a 512B RAM too... vs 64B pic615.

what does that mean ?

perhaps the atmel has an internal 20 MHz oscilator versus the pic having an 8MHz (not 5) internal oscilator and capable of 20 MHz only with an external crystal ?
 

Offline sigxcpu

  • Regular Contributor
  • *
  • Posts: 61
  • Country: ro
Re: cheap and basic microcontroller
« Reply #15 on: August 28, 2010, 10:33:05 pm »
4cycles per instruction on pic ;)
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 12856
  • Country: gb
    • Mike's Electric Stuff
Re: cheap and basic microcontroller
« Reply #16 on: August 28, 2010, 11:26:06 pm »
For the very low-end apps that these parts are targeted at, CPU speed is rarely an issue - in fact you may often want to run slow to save power - cost and permutation of peripherals is generally the most critical thing.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 16642
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: cheap and basic microcontroller
« Reply #17 on: August 29, 2010, 06:34:35 am »
For the very low-end apps that these parts are targeted at, CPU speed is rarely an issue - in fact you may often want to run slow to save power - cost and permutation of peripherals is generally the most critical thing.

yea I have an application that I actually have to put a 3.8ms delay into the program loop and thats at 4 MHz
 

Offline abhimanyu

  • Contributor
  • Posts: 8
Re: cheap and basic microcontroller
« Reply #18 on: August 29, 2010, 10:11:51 am »
i know u all are going to kill me after this
it was 512 bytes
sorry
i promise this is not going to happen again
 

alm

  • Guest
Re: cheap and basic microcontroller
« Reply #19 on: August 29, 2010, 02:07:55 pm »
ATtiny85 seems to be the best match in the AVR family. The 512bytes SRAM it the only thing preventing you from moving to a cheaper device like ATtiny25 or 13A. The ATtiny85 (in PDIP or SOIC) is $1.35-1.40 in small quantities (25+) at Mouser or Digikey, something like $2.20 in onsies.

I'm sure there are other devices from other manufacturers that would satisfy your specs, there's probably a cheaper PIC option out there, which would work just as well. The parametric product tables or parametric search at Digikey/Mouser are your friends. Just factor in the extra cost for development tools and possibly extra time for studying the different architecture (mainly peripherals as long as you're doing C).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf