Avr and arm
-
Upload
vishwasjangra -
Category
Technology
-
view
1.434 -
download
1
description
Transcript of Avr and arm
![Page 1: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/1.jpg)
AVR MICROCONTROLLERATMEL CORPORATION
![Page 2: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/2.jpg)
INTRODUCTION
Atmel Corporation is a leading manufacturer of integrated circuits
Atmel’s AVR RISC microcontroller series
RISC processor with a Harvard architecture
Harvard architecture◦refers to the fact that the CPU has a
program memory and a separate data memory
![Page 3: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/3.jpg)
Families of AVR Microcontroller
8-bit AVR Microcontroller◦ATmega168 (DIP-28)◦ATmega328 (DIP-28)◦ATmega1280 (TQFP-100)◦ATmega16 (DIP-40)◦ATmega32 (DIP-40)
![Page 4: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/4.jpg)
ATmega16 Microcontroller
Advanced RISC Architecture16KB Flash Memory512 Byte EEPROM1KB RAM3 Timers, 8 Channel & 10 Bit ADC32 Input/OutputsPower ON ResetProgrammable Brownout
DetectionInternal RC OscillatorProgrammable Watchdog Timer
with Separate On-chip OscillatorATmega16
![Page 5: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/5.jpg)
Pin Diagram of ATmega16
![Page 6: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/6.jpg)
BOOTLOADER CIRCUIT
![Page 7: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/7.jpg)
INTERFACING
LEDLCDRELAY BUZZERDC MOTOR
![Page 8: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/8.jpg)
LED
![Page 9: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/9.jpg)
LED#include<avr/io.h> // Headerfile for AVR#include<util/delay.h> // Headerfile for delay functionint main(void){DDRC=0xff; // Set port C as outputwhile(1){PORTC=0xff; // c= 11111111_delay_ms(1000);PORTC=0x00; // c=00000000_delay_ms(1000);}}
![Page 10: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/10.jpg)
LCD
![Page 11: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/11.jpg)
CODE FOR LCD
![Page 12: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/12.jpg)
RELAY BUZZER
![Page 13: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/13.jpg)
RELAY BUZZER#include<avr/io.h>#include<util/delay.h>int main(void){DDRC=0x81;while(1){PORTA=0x00;_delay_ms(100);PORTA=0xff;_delay_ms(100);}}
![Page 14: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/14.jpg)
DC MOTORInterfacing of DC Motor using
L293DL293D is a motor Driver ICIn-built two H-Bridge circuitsAvailable in DIP-16
![Page 15: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/15.jpg)
DC MOTOR
SIMULATION
![Page 16: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/16.jpg)
DC MOTOR#include<avr/io.h>#include<util/delay.h>int main(void){DDRC=0xff;while(1){PORTC=0x7e;_delay_ms(1000);PORTC=0xbd;_delay_ms(1000);}}
![Page 17: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/17.jpg)
AVR STUDIO 4An Integrated Development Environment (IDE)
for writing and debugging AVR applications
![Page 18: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/18.jpg)
ARM MICROCONTROLLERAPPLE, ALCATEL, INTEL, MARVELL, TEXAS INSTRUMENTS…
![Page 19: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/19.jpg)
the past of ARM………….
ACORN ComputersSuccessful platform BBC MicroSophie Wilson (ACORN Computers) develop
instruction set & simulate on BBCWork started in 1983ARM1 with VLSI Technology were introduced in
1985ARM2, upgraded version of ARM1 in 1987Won “Queens Award of Technology” in 1992APPLE + ACORN ARM6
![Page 20: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/20.jpg)
ARM7
Introduced in 1994Today, more than 10 million ARM7 powered
devices in marketLPC2148 is an ARM MicrocontrollerFabricated by Philips32bit MicroprocessorRISC ArchitectureSuitable for industrial control and medical
systemsPipeline techniques can be employed
![Page 21: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/21.jpg)
LPC2148 FEATURES32Bit Microcontroller in tinyLQPF64
Package40kB RAM & 512kB Flash2kB RAM for USB 2.0ISP/IAP via on-chip boot-loader circuit10 bit, 14 Channel ADC
◦Conversion time< 2.44μs per channel10 bit DACLow power RTC, BOD45 of 5V tolerant fast GPIOVoltage range 3.0V to 3.6V
![Page 22: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/22.jpg)
Working with LPC2148
SIMULATION
![Page 23: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/23.jpg)
LED interfacing program
#include<LPC214x.H>
#define led1 (1<<0)
#define led2 (1<<1)
#define led_dir IO0DIR
void delay(int time)
{
int i,j;
for(i=0;i<time;i++)
for(j=0;j<1000;j++);
}
int main(void){ led_dir=led1|led2; while(1) { IO0SET|=led1|led2 ; delay(500); IO0CLR|=led1|led2; delay(500); }}
![Page 24: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/24.jpg)
KEIL μVISION4
KEIL was founded in 1982 by Günter and Reinhard Keil
In October 2005, Keil (Keil Elektronik GmbH in Munich, Germany, and Keil Software, Inc. in Plano, Texas) was acquired by ARM.
IDE for ARM MicrocontrollerCross Compiler
![Page 25: Avr and arm](https://reader034.fdocuments.us/reader034/viewer/2022051400/54bc37b34a795987288b45fc/html5/thumbnails/25.jpg)
CONCLUSION
“Anyone can cook”, it is the slogan of the movie RATATOUILLE
like that “Anyone can Program” the objective of my report is to make it clear that
anyone can prototype and easily work with the microcontroller.