











































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












































1
D2A conversion using DAC
PWM using PWM chip and an analog voltage form potentiometer or DAC
2
4
5
Lack of features as compared to other major
microcontroller vendors:
PWM channels
Lower crystal frequencies supported. A maximum of 24 MHZ which actually run the
processor at 2 MHZ due to crystal clock
division by 12
7
These are similar in features but architectures
are different
8
Out of the previously mentioned microcontrollers, Why chose AVR Relatively low cost, ICs available for 300 to 425 PKR from college Road Dynamic engineer opposite IC master, new shop Top universities In the world are teaching Motorola, Microchip PIC or Atmel AVR. Although starting point is usually the 8051 or the simplest device of any series. Atmel AVR Stanford(#1 in US), Cornell(# 8), Purdue(#11), Wisconsin Madison(#17) in USA University of Queensland, University of western Australia Motorola 68HC11/ 68HC MIT(#2) in USA UNSW in Australia And many more Many other are using PIC and Basic Stamp
Top Engineering Colleges Ranking by graduateshotline.com 2003
10
Efficient RISC architecture, almost 10 times faster than CISC For details look into data sheets
Crystal Clock is not divided and is given directly to the processor. 8051 divides clock by 12 Microchip divides clock by 4 Motorola divides clock by 3 So generally speaking, an AVR running at 16 MHz crystal (Max speed of some AVRs) is equivalent to a 192 MHz 8051 or a 64 MHz PIC or a 36 MHz 68HC11 in general, but variations do exist
A large and constantly improved family of more than 35 devices divided into three categories, most are available in Pakistan too ATTINYXX series , 8 to 28 pin devices AT90SXXXX series (Classic AVR), 20, 28 and 40 pin devices ATMEGAXXX series , 28, 40 and 64 pin devices
11
13
Most AVRs have built-in 10 to 16-bit PWM channels generated
automatically by timers. Number of channels ranges from 2 to 6
Most AVRs have built-in 10- bit ADC and MUX with number of
channels ranging from 4 to 8
Large variety of Flash Memory ranging from 1KB to 128 KB
Large variety of SRAM ranging up to 4 KB
Built-in EEPROM support up to 4 KB
I2C and SPI synchronous serial communication for short distance
networking of microcontrollers and other peripherals DACs, ADCs, Flash memory, MP3 decoder ICs etc.
14
It’s a Crash Course on AVR microcontroller, but the aim is to introduce you to the latest on chip features/peripherals available on all latest microcontrollers
There will be 5 lectures
Lecture Introduction to AVR features How to make your starter kit Installation to relevant software Using these software Sample code to test on your starter kit
Lecture 2 AVR Architecture WinAVR C programming conventions, and Avrlibc Interrupt programming External interrupts
16
17
19
20