AVR 8-bit RISC micro controllers by AtmelSeamk / ICT / Seppo Stenberg General features of AVR family
Development tools
- board, compiler, simulator etc.
ATmega16
- functional blocks
- c-code examples
AVR 8-bit RISC micro controllers by AtmelSeamk / ICT / Seppo Stenberg General features of AVR family
Development tools
- board, compiler, simulator etc.
ATmega16
- functional blocks
- c-code examples
General features of AVR family
- Wide range of types (ATtiny, ATmega, AT90 )
High integration ( inexpesive )
Low power consumption ( 1.8 – 5.5 V )
Power saving ( sleep modes )
Hardvard architecture ( internal buses )
20 MIPS ( 20 MHz ) (single cycle execution )
Memories integrated (flash, SRAM, EEPROM )
Dedicated c-code support
In-system programming
Parameter Product Table
Development tools (main board)
- Modular board with ATmega16
four 8-bit ports
SPI port
JTAG port
DC-connector ( 7 – 12 Vdc )
System clock ( 8 MHz )
Real time clock ( 32.725 kHz )
20 MIPS ( 20 MHz )
Reset switch
Development tools (modules) - LCD-module, 4 x 27 characters
LED-module, 8-leds
Button-module, four buttons, four leds
UBS-module, SPI programming
Serial-module, RS-232 bus
Pot-module, four potentiometer
Con-module three connectors + ground
Development tools (compiler) In this course we use
- free AVRstudio development package
- free WinAVR compiler
- free AVRdude programmer
We can use also
- free ConTEXT text editor with smart keys
free ChipBlaster and PonyProg -programmers
Development tools (simulator) - free AVRStudio by Atmel
c-code and assembly-simulation
sophistigated register read / write
excellent debugging features
Installing tools (WinAVR, ConTEXT) All necessary programs can be downloaded freely from internet.
WinAVR consists of command prompt programs and smart keys in ConTEXT will help to use them.
Programming can be made using either a parallel (LPT1) or Serial (USB) cable.
Detailed instructions for installation is in a separate document.
( DevTools_eng.htm )
AVRStudio, PonyProg and ChipBlaster are simple to install and specific instructions are not necessary
Compiling and linking (WinAVR) The programmer writes only the c-code.
Makefile consists the instruction for compiling and linking.
WinAVR includes necessary library files.
ATmega16 Blocks Ports A, B, C and D
External interrupts
Timers
- Timer0
- Pulse Width Modulation (PWM)
- Clear Timer on Compare match
- Real Time Clock
Memories (SRAM)
- flash
- EEPROM
Searial port (USART)
AD-converter
Watch Dog
Comments