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

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

ARDUINO MEGA INTRODUCTION

Arduino Uno R3 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

MICROPROCESSOR BASED SYSTEM DESIGN

Basic Components of Digital Computer

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

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

MOD-IO 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

Distributed Real- Time Control Systems

INTERFACING HARDWARE WITH MICROCONTROLLER

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

The Atmel ATmega168A Microcontroller

The Atmel ATmega328P Microcontroller

DBAT90USB162 Atmel. DBAT90USB162 Enhanced Development Board User s Manual

Microprocessors And Microcontrollers (Practical)

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

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

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

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

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

8051 Microcontroller

Embedded programming, AVR intro

Introduction to ARM LPC2148 Microcontroller

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

1 Introduction to Microcontrollers

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

CN310 Microprocessor Systems Design

Microcontroller: CPU and Memory

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

More than Compatibility

Introduction to Arduino. Wilson Wingston Sharon

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Doc: page 1 of 8

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

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

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

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

PIC32&Overview& E155&

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

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

8/16-bit Atmel XMEGA A3U Microcontroller

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

Doc: page 1 of 6

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

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

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

Interconnects, Memory, GPIO

ARDUINO NANO INTRODUCTION

8/16-bit Atmel AVR XMEGA Microcontrollers

Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core

AVR Microcontroller with Core Independent Peripherals and PicoPower technology

AVR FLASH MICROCONTROLLERS. Atmel Corporation

ATxmega128A1U / ATxmega64A1U

8/16-bit Atmel XMEGA B3 Microcontroller

Lab Course Microcontroller Programming

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

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

Embedded Systems. Read pages

STK User Guide

Programming Embedded Systems Microcontroller

PIC Microcontroller Introduction

MINI DEVELOPMENT BOARD AVR USERS GUIDE ATMEGA32. make your own intelligent embedded world...

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Various power connectors. 3.3V regulator. 64K Flash (Internal) 2K EEPROM (Internal) 4K SRAM (Internal) JA Mem Adr/ Data. Doc: page 1 of 9

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

Objective: Additional project details: Code: PSEMBP 100 Category:STEM Level: High School/Community C.

Mohammad Shaffi 1, D Ravi Nayak 2. Dadi Institute of Engineering & Technology,

Hands on Experience with AVR32

MT-T34 User Guide January 13,

M32 Development Board

Microcontroller Overview

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

Lecture 1. Course Overview and The 8051 Architecture

Prefetch Cache Module

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)

EE 308: Microcontrollers

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

AT90SO36 Summary Datasheet

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

Goal: We want to build an autonomous vehicle (robot)

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

Transcription:

AVR Training Board-I V., Konkuk Univ. Yong Beom Cho ybcho@konkuk.ac.kr

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 ISP/UART selecting SW Check Before Using Board USB for ISP & UART DC-Jack ATmega 128 power source selecting SW Check Before Using Board FND Buzzer GPIO SW 7/8 IR Sensor RST SW INT SW GPIO SW 5/6 GPIO LED[4] 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 UART 통신프로그램 eg) PuTTY AVR Training Board USB 모니터프로그램 15

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 is Uploaded in our web-page Must check Schematic when ever Programming & Using Board 28