AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

Similar documents
VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

Arduino Uno R3 INTRODUCTION

ARDUINO MEGA INTRODUCTION

AVR- M16 development board Users Manual

ATmega128. Introduction

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

AVR Microcontrollers Architecture

LAMPIRAN. Universitas Sumatera Utara

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

MICROPROCESSOR BASED SYSTEM DESIGN

Basic Components of Digital Computer

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

An Arduino Controlled 1 Hz to 60 MHz Signal Generator

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

LBAT90USB162 Atmel. LBAT90USB162 Development Board User s Manual

AVR-TLCD-128CAN development board Users Manual

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

MOD-IO development board Users Manual

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Distributed Real- Time Control Systems

The Atmel ATmega168A Microcontroller

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

The Atmel ATmega328P Microcontroller

Microprocessors And Microcontrollers (Practical)

DBAT90USB162 Atmel. DBAT90USB162 Enhanced Development Board User s Manual

ATmega128A. Introduction. Features. 8-bit AVR Microcontroller DATASHEET COMPLETE

MEXLE. International Educational Platform. International Educational Platform. for Informatics based on Embedded Systems

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

8-bit Atmel with 8KBytes In- System Programmable Flash. ATmega8 ATmega8L. Summary

1 Introduction to Microcontrollers

INTERFACING HARDWARE WITH MICROCONTROLLER

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Distributed Real-Time Control Systems. Module 3 Hardware for Real Time Distributed Control Systems

8051 Microcontroller

Embedded programming, AVR intro

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

More than Compatibility

Atmel 8 Bit Avr Microcontroller With 2 4 8k Bytes In

3.3V regulator. JA H-bridge. Doc: page 1 of 7

Microcontroller: CPU and Memory

Introduction to ARM LPC2148 Microcontroller

ATxmega32E5/16E5/8E5. XMEGA E5 Data Sheet. Introduction. Features

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

8/16-bit Atmel XMEGA A3U Microcontroller

ATxmega384C3. 8/16-bit Atmel XMEGA C3 Microcontroller. Features

Embedded Systems. Read pages

PIC Microcontroller and

8-bit Microcontroller with 16K Bytes In-System Programmable Flash. ATmega169V ATmega169. Features. Notice: Not recommended in new designs.

ATxmega64D3 Automotive

8. Power Management and Sleep Modes

ATxmega128B3 / ATxmega64B3

ATmegaS128. Introduction. Features

8/16-bit Atmel AVR XMEGA Microcontrollers

Doc: page 1 of 8

AVR Microcontroller with Core Independent Peripherals and PicoPower technology

ATxmega128A1U / ATxmega64A1U

PIC32&Overview& E155&

8/16-bit Atmel XMEGA B3 Microcontroller

8-bit Atmel Microcontroller with 64KB In-System Programmable Flash. ATmega64A

Chapter 1. Microcontroller Overview

8-bit Microcontroller with 4K Bytes In-System Programmable Flash. ATtiny40. Preliminary

CN310 Microprocessor Systems Design

8-bit Atmel Microcontroller with 8KB In-System Programmable Flash. ATmega8A

Doc: page 1 of 6

ARDUINO NANO INTRODUCTION

PIC Microcontroller Introduction

Programming Embedded Systems Microcontroller

AVR FLASH MICROCONTROLLERS. Atmel Corporation

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

WHICH MICRO? What does MCU needs to do in my system? What are the tasks? Dr. Adriana Becker-Gomez

Microcontroller Overview

M32 Development Board

EE 308: Microcontrollers

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

8-bit Microcontroller with 8K Bytes In-System Programmable Flash. ATmega8515 ATmega8515L. Features

STK User Guide

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

APPLICATION NOTE. AT11008: Migration from ATxmega16D4/32D4 Revision E to Revision I. Atmel AVR XMEGA. Introduction. Features

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

Electronic Control systems are also: Members of the Mechatronic Systems. Control System Implementation. Printed Circuit Boards (PCBs) - #1

8/16-bit Atmel XMEGA D4 Microcontroller

Lab Course Microcontroller Programming

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features

8-bit Atmel Microcontroller with 16K/32K/64K Bytes In-System Programmable Flash

Control System Implementation

ATxmega128A1 / ATxmega64A1. Preliminary. 8/16-bit XMEGA A1 Microcontroller. Not recommended for new designs - Use XMEGA A1U series Features

Cerebot Nano Reference Manual. Overview. Revised April 15, 2016 This manual applies to the Cerebot Nano rev. A

Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

8-bit Microcontroller with 2K Bytes Flash. ATtiny26 ATtiny26L

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

8-bit Microcontroller with 1K Byte Flash. ATtiny11. ATtiny12

STK User Guide

Microcontroller basics

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

AT90SO36 Summary Datasheet

n/a PIC12F629-I/P (RC) n/a PIC12F629-I/SN (RC) n/a PIC12F675-I/P (RC) n/a PIC12F675-I/SN MICROCONTROLLER (RC)

ATmega8A. Introduction. Features. 8-bit AVR Microcontroller DATASHEET COMPLETE

Transcription:

AVR Training Board-I V., Konkuk Univ. Tae Pyeong Kim

What is microcontroller A microcontroller is a small, low-cost computeron-a-chip which usually includes: An 8 or 16 bit microprocessor (CPU). A small amount of RAM. Programmable ROM and/or flash memory. Parallel and/or serial I/O. Timers and signal generators. Analog to Digital (A/D) and/or Digital to Analog (D/A) conversion. 2

Basics of microcontroller Examples: Motorola s 68HC11, 68HC12, AMD 29K, Zilog s Z8, Z80, Intel s 8052, Microchip s PIC Low-power, embedded versions of desktop CPUs: e.g Intel s 80486 3

Microcontrollers Intel 8051 ARM Atmel AVR 8/32-bit architecture Freescale CF (32-bit), Freescale S08(8-bit), 68HC11(8-bit) Hitachi H8, Hitachi SuperH MIPS (32-bit PIC32) NEC V850 PIC (8-bit PIC16, PIC18, 16-bit dspic33 / PIC24) PowerPC ISE PSoC (Programmable System-on-Chip) Rabbit 2000 TI MSP430 (16-bit) Toshiba TLCS-870 Zilog ez8, ez80 4

Atmel AVR Microcontroller The AVR is a Modified Harvard architecture 8-bit RISC single chip microcontroller which was developed by Atmel in 1996. The AVR was one of the first microcontroller families to use on-chip flash memory for program storage, as opposed to One-Time Programmable ROM, EPROM, or EEPROM used by other microcontrollers at the time. Families of AVR tinyavr the ATtiny series megaavr the ATmega series XMEGA the ATxmega series Application specific AVR 5

8-bit AVR ATmega128 Microcontroller High-performance, Low-power AVR 8-bit Microcontroller Advanced RISC Architecture 133 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers + Peripheral Control Registers Fully Static Operation Up to 16 MIPS Throughput at 16 MHz On-chip 2-cycle Multiplier Nonvolatile Program and Data Memories 128K Bytes of In-System Reprogrammable Flash Endurance: 10,000 Write/Erase Cycles Optional Boot Code Section with Independent Lock Bits In-System Programming by On-chip Boot Program True Read-While-Write Operation 4K Bytes EEPROM Endurance: 100,000 Write/Erase Cycles 4K Bytes Internal SRAM Up to 64K Bytes Optional External Memory Space Programming Lock for Software Security SPI Interface for In-System Programming Special Microcontroller Features Power-on Reset and Programmable Brown-out Detection Internal Calibrated RC Oscillator External and Internal Interrupt Sources Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby, and Extended Standby Software Selectable Clock Frequency ATmega103 Compatibility Mode Selected by a Fuse Global Pull-up Disable 6 JTAG (IEEE std. 1149.1 Compliant) Interface Boundary-scan Capabilities According to the JTAG Standard Extensive On-chip Debug Support Programming of Flash, EEPROM, Fuses and Lock Bits through the JTAG Interface Peripheral Features Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes Two Expanded 16-bit Timer/Counters with Separate Prescaler, Compare Mode and Capture Mode Real Time Counter with Separate Oscillator Two 8-bit PWM Channels 6 PWM Channels with Programmable Resolution from 2 to 16 Bits Output Compare Modulator 8-channel, 10-bit ADC 8 Single-ended Channels 7 Differential Channels 2 Differential Channels with Programmable Gain at 1x, 10x, or 200x Byte-oriented Two-wire Serial Interface Dual Programmable Serial USARTs Master/Slave SPI Serial Interface Programmable Watchdog Timer with On-chip Oscillator On-chip Analog Comparator I/O and Packages 53 Programmable I/O Lines 64-lead TQFP and 64-pad QFN/MLF Operating Voltages 2.7-5.5V for ATmega128L 4.5-5.5V for ATmega128 Speed Grades 0-8 MHz for ATmega128L 0-16 MHz for ATmega128

Atmega128 - Pinout Pinout of Atmega128 7

Atmega128 - Block Diagram Block Diagram 8

Atmega128 - Pin function (1) Port A(PA7 PA0) 8-bit bi-direction I/O port with internal pull-up registers Output buffers have symmetrical drive characteristics with both high sing and source capability Tri-stated when a reset condition becomes active Port B(PB7-PB0) 8-bit bi-direction I/O port with internal pull-up registers Output buffers have symmetrical drive characteristics with both high sing and source capability Tri-stated when a reset condition becomes active Port C(PC7-PC0) - In Atmega103 compatibility mode, PortC is output only and C pins are not tri-stated when a reset condition becomes active Port D,E 8-bit bi-direction I/O port with internal pull-up registers Output buffers have symmetrical drive characteristics with both high sing and source capability Tri-stated when a reset condition becomes active 9

Atmega128 - Pin function (2) Port F(PF7-PF0) A/D converter input Can use as an 8 bit bi-direction I/O port, if A/D Converter is not used Serve the fuction of the JTAG interface. Port G(PG4-PG0) 5-bit bi-direction I/O port with internal pull-up registers Output buffers have symmetrical drive characteristics with both high sing and source capability Tri-stated when a reset condition becomes active 10

Atmega128 - Pin function (3) /PEN (Program Enable) Pin number : 1 For SP1 Serial Programming mode and is internally pulled high Holding this pin low during a Power-on Reset AREF (analog reference pin ) Pin number : 62 Analog reference pin for the A/C Converter /AVCC Pin number : 64 Supply voltage pin for PORT F and A/D converter RST (Reset) Pin number : 20 Master reset XTAL1, XTAL2 Pin number : 23,24 Oscillator input 11

ATmega128 Training Board RS-232 FND AVR LED SWITCH 12

Training board spec. 8-bit CPU optimized for control application 133 Powerful Instruction-Most Single Clock Cycle Execution 32x8 General Purpose Working Register+Peripheral control R 128K Bytes of Self-programmable Flash program memory Full duplex UART USB support On-chip clock oscillator IR_SENSOR 4 segment 13

Training board - operating frequency OSC (Oscillator) 연결방법 Machine Cycle (M/C) 1 M/C = 6 state (S1~s6) = 12 clock period 1 state = 2 phase (P1, P2) 1 M/C 동안에 2 ALE 신호발생 실습보드 16.000MHz Crystal 사용 14

System Development Environment 하이퍼터미널프로그램 USB 모니터프로그램 15 AVR Training Board

I/O Ports of AVR All AVR ports have true Read-Modify-Write functionality when used as general digital I/O ports. The pin driver is strong enough to drive LED displays directly The ports are bi-directional I/O ports with optional internal pull-ups. 16 16

General Digital I/O of AVR 17 17

Configuring the Pin Each port pin consists of three Register bits: DDxn, PORTxn, and PINxn. 18 18

Register Summery for I/O Ports 19 19

Register Description for I/O Ports Port A Port B 20 20

Register Description for I/O Ports cont. Port C Port D 21 21

Register Description for I/O Ports cont. Port E Port F 22 22

Register Description for I/O Ports cont. Port G 23 23

Alternate Port Functions Most port pins have alternate functions in addition to being general digital I/Os. Port A Pins Alternate Functions Port B Pins Alternate Functions 24 24

Alternate Port Functions cont. Port C Pins Alternate Functions Port D Pins Alternate Functions Port E Pins Alternate Functions Port F Pins Alternate Functions Port G Pins Alternate Functions 25 25

LED Test Program 1 LED On 0 LED Off 26

LED Test Program 27

Appendix Schematic of Training Board 28

실험 #1 실험 1 : LED 를아래와같이점등하도록한다. LED1 LED2 LED3 LED4 1 초 2 초 LED1 LED2 LED3 LED4

실험 #2 실험 2 : LED 를아래와같이점등하도록한다. LED1 LED2 LED3 LED4 LED1 LED2 LED3 LED4 LED1 LED2 LED3 LED4 LED1 LED2 LED3 LED4 LED1 LED2 LED3 LED4 LED1 LED2 LED3 LED4

실험 #3 실험 3 : LED 를아래와같이점등하도록한다. SW8 을눌렀을때, Shift( 정방향 ) SW7 을눌렀을때, Shift( 역방향 ) 스위치를누를때마다부저동작 When SW8 is pressed When SW8 is pressed When SW8 is pressed LED1 LED2 LED3 LED4 LED1 LED2 LED3 LED4 LED1 LED2 LED3 LED4 When SW7 is pressed When SW7 is pressed When SW7 is pressed LED1 LED2 LED3 LED4 LED1 LED2 LED3 LED4 LED1 LED2 LED3 LED4