Basics of ATmega32

Post on 21-Jul-2015

160 views 4 download

Tags:

transcript

Basics of ATMega32

MCUNima Ghaedsharafi

1

Key Features• High-performance

• Low-power

• 8-bit Microcontroller

• RISC Architecture

• 32Kbytes of In-System Self-programmable

• JTAG Interface

• 32 Programmable I/O Lines

• True Read-While-Write Operation

• Up to 16 MIPS Throughput

2

DIP Mode

3

MLF Mode

4

Block Diagram

5

Block Diagram Cont.

6

Ports

7

Ports• 8-bit bi-directional I/O port

• True Read-Modify-Write (digital I/O)

• internal pull-up resistors

• used as inputs and are externally pulled low

• tri-stated when a reset condition becomes active

8

Same Same But Different PortA

• Analog input

• A/D Converter

9

Same Same But Different PortB

10

Same Same But Different PortC

11

Same Same But Different PortD

12

Reset• low level ( Negative Logic)

• longer than the minimum pulse length

13

AVCC• supply voltage pin for Port A and the A/D Converter

• externally to VCC, even ADC is not used

• connected to VCC through a low-pass filter

14

AREF• analog reference pin for the A/D Converter

15

XTAL1 and XTAL2• input and output respectively,

• On-chip Oscillator

• Either a quartz crystal or a

ceramic resonator

• CKOPT is Programmedo full rail-to-rail swing

o Good For very Noisy Env

• CKOPT is Unprogrammedo Smaller output swing

o Reduces power consumption

• resonators, maximum Frequency o Ckopt Unprogrammed 8MHz

o Ckopt Programmed 16MHz

16

Tools• Compiler : WinAVR/AVR Studio/CodeVision AVR

• Programmer Hardwareo Simple parallel/serial port based In System Programmer (ISP)

o USB based ISP (recommended) : USBasp

• Bread board, wires, power supply, crystal, etc.

17

Any Question?!

18

(Of Course not)