Showing posts with label EMBEDDED SYSTEM TUTORIALS(AVR). Show all posts
Showing posts with label EMBEDDED SYSTEM TUTORIALS(AVR). Show all posts

Tuesday, November 27, 2012

EMBEDDEDD SYSTEMS TUTORIAL2- REQUIREMENTS




Hii friends I am here with my second article on embedded systems, this time we are going to discuss about the requirements for starting our journey with AVR. There are a few hardware and software requirements to start with. After arranging all these we will be able to start our first project.



HARDWARE REQUIRED

 
1.A PROGRAMMER –


 A programmer is required to burn our hex file (if you are not aware with hex file dont worry we will discuss about it in next tutorial) into our microcontroller in my tutorial series I am using USBASP programmer . USBASP is a low cost programmer its easily available in market or you can buy it online from any trusted site . it can be implemented on a circuit board ( I will post another tutorial on making your own USBASP programmer later) but I will advice to buy it from somewhere.

2.A TARGET BOARD –

A target board can be your own development boards with ISP header to connect and disconnect the programmer ( though in my tutorials I will use bread board or hand made circuits but if you are a newbie you can purchase a AVR development board from any electronic shop or trusted sites ..its easily available) or you can make your own .


3.A PC/ Laptop with windows98 or BETTER THAN THAT.


                                                  And of course our AVR MCU.



SOFTWARE REQUIRED-



1. AVR STUDIO 4 


It is  GUI IDE for AVR,  you can download it by   CLICKING HERE   its totally free..:P 


2. WIN AVR


It is free C compiler from AVR , can be downloaded by  CLICKING HERE .

 
3. PROGRAMMING SOFTWARE


We will need a software to burn our hex file to MCU for this we need a programming software . There are many softwares like avrdude, pony prog, extreme burner but I am using PROGISP in my projects you can download it BY  CLICKING HERE  its totally free.


            So these are the basic requirements for starting , arrange all the stuff and wait for next tutorial where we will compile our code ,burn hex file to MCU and will make our first blinking led project. In case you are not able to arrange it, no problem I will show you how you can simulate your microcontroller projects on PROTEUS ( a very nice circuit simulator software)…….I promise next tutorial is going to be a very good starting tutorial for all the beginners…if you have any doubts , questions, suggestions, or critical views you can post here......I hope it was a useful article for u all. 


                                                                         THNX..:)

Sunday, November 25, 2012

EMBEDDED SYSTEMS TUTORIAL 1- SELECTING A SUITABLE MICROCONTROLLER



Now a days there are mainly two microcontroller families ruling the embedded system ,“PIC” series from Microchip and “AVR” series from Atmel ,both have some advantages and disadvantages. PIC was dominating this field for a long time but now AVR is attracting engineers and hobbyist due to its amazing features. Both the families are amazing and now in this article we will compare both the families to solve the problem of “selecting a suitable microcontroller”.


AVR Vs PIC


 Though both the microcontroller families are just wonderful but I prefer AVR to PIC because of these reasons-


AVR is about 4x faster than the PIC . in case we have to see response speed we have to choose AVR as PIC requires 4 cycle to perform a single execute cycle while the AVR execute most of the instruction in 1 clock cycle so its slower than AVR.
Moreover AVR consists of a lot of advanced features within the chip and its very consistent  and cheap.
In microcontroller the programming is done in assembly language which is an unstructured and tough to understand language instead of using assembly for programming using  ‘c’ is easy and it provides a very nice scope in writing a efficient code. To write programs in ‘c’ for AVR or any other microcontroller we need a c compiler for that MCU. Generally these compilers are priced so high that they are out of reach of hobbyist and small company. But a huge thanx to AVR, fortunately for AVR MCUs there is a very high quality ‘c’ compiler for free. It is GNU C compiler. It is extremely popular and it has a large user base. It is part of the free and open source software revolution that we are witnessing (like Linux, PHP, Apache, OpenOffice.org etc). Providing excellent software at no cost.


VARIOUS AVR MCUS

AVR family is providing a a lot of microcontroller chips with outstanding features. We can use any chip according to our use. Mainly chips provided are

  • AT MEGA8 [28 PIN , 8K Flash , 1KB Ram, 512 Byte EEPROM]
  • AT MEGA16 [ 40 PIN, 16K Flash, 1KB Ram, 512 Byte EEPROM]
  • AT MEGA32 [ 40 PIN, 32K Flash, 2KB Ram, 1KB EEPROM]          and so many other chips. 
In these tutorial series we will use ATMEGA16 because of its advance features and really low cost. AVR family MCUS are providing various advanced features like-

·         TIMER/COUNTER
·         ADC(analog to digital converter)
·         SPI
·         TWI
·         USART
·         Serial communication


If you don’t know about these features , no problem we will discuss on these topics in next posts.
I hope this article was useful for you guys in next article we will start our journey with AVR microcontrollers, we will discuss about hardware and software requirements and we will compile our very first program. U can ask your questions, doubts etc by commenting on this post and of course you can give your critical views too.. your view will be extremely helpful for me…:) 


THNX