Top Banner
AVR MICROCONTROLLER ATMEL CORPORATION
25
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Avr and arm

AVR MICROCONTROLLERATMEL CORPORATION

Page 2: Avr and arm

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

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

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

Pin Diagram of ATmega16

Page 6: Avr and arm

BOOTLOADER CIRCUIT

Page 7: Avr and arm

INTERFACING

LEDLCDRELAY BUZZERDC MOTOR

Page 8: Avr and arm

LED

Page 9: Avr and arm

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

LCD

Page 11: Avr and arm

CODE FOR LCD

Page 12: Avr and arm

RELAY BUZZER

Page 13: Avr and arm

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

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

DC MOTOR

SIMULATION

Page 16: Avr and arm

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

AVR STUDIO 4An Integrated Development Environment (IDE)

for writing and debugging AVR applications

Page 18: Avr and arm

ARM MICROCONTROLLERAPPLE, ALCATEL, INTEL, MARVELL, TEXAS INSTRUMENTS…

Page 19: Avr and arm

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

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

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

Working with LPC2148

SIMULATION

Page 23: Avr and arm

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

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

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.