Posting after a long break.
Anyway, I suppose you are a bit familier with microcontrollers and what they do. So this post is all about choosing microcontroller for your project.
See, before selecting any microcontroller you should point out some things:
Ex. Say you are using POT as Analog input (1 ADC pin required) and connected it to a Speaker which has PWM as input(1 PWM pin required). For this you can choose ATtiny45 or 85 which has 8 pin interface with 6 pin usable. Theres no need to select ATmega controllers.
2. The SPEED and POWER funda:
So before selecting and buying microcontrollers just go to ATmel site check all the datasheets for the childs of family and you will be able to select perfect one for your project.
One more thing to be noted is, when you buy a uC it comes with 1MHz internal clock pre-programmed. So, if you want to use 8MHz internal RC oscillator you have to set the fuses of uC. Similary for external crystal too.
3. Another is SPACE:
Here we concider 3 main Memories.
EEPROM memory. If you are reusing too much data and storing it again you should keep check on the amount of data you are using and then the EEPROM to store it. (Use EEPROM only when you are storing Database values as the memory access time is higher.)
SRAM. If you dealing with big Strings or Floating point numbers choose the uC who have enough RAM to process your data readily.
SO thats all about Selection. We will start work Shortly. Till then Enjoy..!! :)
Anyway, I suppose you are a bit familier with microcontrollers and what they do. So this post is all about choosing microcontroller for your project.
See, before selecting any microcontroller you should point out some things:
- The pin numbers and device interfaced:
- Number of Inputs and Outputs required.
- Types of Input and Output. (Analog, PWM, Digital)
Ex. Say you are using POT as Analog input (1 ADC pin required) and connected it to a Speaker which has PWM as input(1 PWM pin required). For this you can choose ATtiny45 or 85 which has 8 pin interface with 6 pin usable. Theres no need to select ATmega controllers.
2. The SPEED and POWER funda:
- Speed required for your project. Like if it is using math library and you are using Multiplication in your code. You should select the higher speed controllers. For simple button interface any low speed grade controller will work.
- Here theres a twist, ATmel provides wide variety in selection of controller. Say your application works on low voltage and you still want speed.
- For Ex. If you want a 16MHz at 5v and you buy ATmega8L (L stands for low voltage compaitability). Then you are going to face probelm as ATmega8 supports 16MHz at 5v. But ATmega8L supports only 12MHz at 5v and 8 MHz at 3.3v. And also ATmega8 dont work at 3.3v logic.
So before selecting and buying microcontrollers just go to ATmel site check all the datasheets for the childs of family and you will be able to select perfect one for your project.
One more thing to be noted is, when you buy a uC it comes with 1MHz internal clock pre-programmed. So, if you want to use 8MHz internal RC oscillator you have to set the fuses of uC. Similary for external crystal too.
3. Another is SPACE:
Here we concider 3 main Memories.
- FLASH
- EEPROM
- SRAM
EEPROM memory. If you are reusing too much data and storing it again you should keep check on the amount of data you are using and then the EEPROM to store it. (Use EEPROM only when you are storing Database values as the memory access time is higher.)
SRAM. If you dealing with big Strings or Floating point numbers choose the uC who have enough RAM to process your data readily.
SO thats all about Selection. We will start work Shortly. Till then Enjoy..!! :)