Your SlideShare is downloading. ×
0
ATmega32
ATmega32
ATmega32
ATmega32
ATmega32
ATmega32
ATmega32
ATmega32
ATmega32
ATmega32
ATmega32
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

ATmega32

1,837

Published on

AVR Atmega 32 microcontroller basics

AVR Atmega 32 microcontroller basics

Published in: Education
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,837
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. MICROCONTROLLERATmega32Saad AhmedBE(E)
  • 2. What is Microcontroller ?• A microcontroller is a small computer on a singleintegrated circuit containing a processor core, memory,and programmable input/output peripherals.
  • 3. Types of Microcontrollers
  • 4. AT mega 32• ATMEL AVR chips pack lots of power (1MIPS/MHz, clocks up to 16MHz)and space (up to 128K of flash program memory and 4K of EEPROM andSRAM) at low prices.• HLL Support, like C, helps increase reuse and reduce turn-around/debugtime/headaches.• In-System Programmable flash--can easily program chips, even while in-circuit.• Many peripherals: a whole bunch of internal and external interrupt sourcesand peripherals are available on a wide range of de-vices (timers, UARTs,ADC, watchdog, etc.).• 32 registers: The 32 working registers (all directly usable by the ALU) helpkeep performance snappy, reducing the use of time-consuming RAMaccess.
  • 5. Basic Architecture
  • 6. Pin Configuration
  • 7. Instruction Set
  • 8. Application(Stepper Motor)
  • 9. Source code#include<avr/io.h>#include<util/delay.h>void main(){DDRB=0b00001111;while(1){if(PIND==0b00000001){PORTB=0b00000001;_delay_ms(10);PORTB=0b00000011;_delay_ms(10);PORTB=0b00000010;_delay_ms(10);PORTB=0b00000110;_delay_ms(10);PORTB=0b00000100;_delay_ms(10);PORTB=0b00001100;_delay_ms(10);PORTB=0b00001000;_delay_ms(10);PORTB=0b00001001;_delay_ms(10);}
  • 10. Cont…if(PIND==0b00000010){PORTB=0b00001000;_delay_ms(10);PORTB=0b00001100;_delay_ms(10);PORTB=0b00000100;_delay_ms(10);PORTB=0b00000110;_delay_ms(10);PORTB=0b00000010;_delay_ms(10);PORTB=0b00000011;_delay_ms(10);PORTB=0b00000001;_delay_ms(10);PORTB=0b00001001;_delay_ms(10);}DDRD=0b00010000;}}
  • 11. Thank you

×