Avr and arm
-
Upload
vishwasjangra -
Category
Technology
-
view
1.445 -
download
1
description
Transcript of Avr and arm
AVR MICROCONTROLLERATMEL CORPORATION
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
Families of AVR Microcontroller
8-bit AVR Microcontroller◦ATmega168 (DIP-28)◦ATmega328 (DIP-28)◦ATmega1280 (TQFP-100)◦ATmega16 (DIP-40)◦ATmega32 (DIP-40)
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
Pin Diagram of ATmega16
BOOTLOADER CIRCUIT
INTERFACING
LEDLCDRELAY BUZZERDC MOTOR
LED
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);}}
LCD
CODE FOR LCD
RELAY BUZZER
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);}}
DC MOTORInterfacing of DC Motor using
L293DL293D is a motor Driver ICIn-built two H-Bridge circuitsAvailable in DIP-16
DC MOTOR
SIMULATION
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);}}
AVR STUDIO 4An Integrated Development Environment (IDE)
for writing and debugging AVR applications
ARM MICROCONTROLLERAPPLE, ALCATEL, INTEL, MARVELL, TEXAS INSTRUMENTS…
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
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
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
Working with LPC2148
SIMULATION
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); }}
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
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.