L4 MicroControllers
L4 MicroControllers
Topics
• Microcontrollers vs. Microprocessors
• Microcontroller selection and features
• Common microcontrollers
• AVR Features
• AVR members
Microcontroller (μC) versus Microprocessor
(μP)
Microprocessor (μP) application
General purpose computer
Access + process data → data output
Computational power
Programming generality
Execution speed
Multiple processors for parallel processing
Each μP handles thread
General Serial
IO
Purpose RAM ROM Timer COM
Port
Micro Port
processor Address BUS
Control BUS
• Microcontrollers
Serial
Timer I/O
Port
Some Microcontroller companies
Intel
Maxim
I/O
PINS
AVR different groups
• Classic AVR – Original chip, has been replaced now
• e.g. AT90S2313, AT90S4433
• Mega – Powerful, More than 120 instruction set
• e.g. ATmega8, ATmega32, ATmega128
• XMEGA - Extended performance and peripherals
• Tiny
• e.g. ATtiny13, ATtiny25
• Special Purpose AVR
• e.g. AT90PWM216,AT90USB1287
ATtiny25 block diagram
Let’s get familiar with the AVR part numbers
ATmega128
Atmel group
Flash =128K
ATtiny44 AT90S4433
Atmel
Tiny Flash =4K Atmel Classic
Flash =4K
group group
Watchdog Timer
The watchdog timer watches over the operation of the system. This
may include preventing runaway code or in our C example, a lost
communications link.
The watchdog timer operates independent of the CPU, peripheral
subsystems, and even the clock of the MCU.
The Watchdog always on (WDTON) fuse, if programmed, will force the Watchdog Timer to System Reset
mode. With the fuse programmed (WDTON = 0) the System Reset mode bit (WDE) and mode bit (WDIE) are
locked to 1 and 0 respectively.
Configuration bits are found in the WDTCSR – Watchdog Timer Control Register. Before you can change the WDE
and/or prescaler bits (WDP3:0), the WDCE – Watchdog Change Enable bit must be set.