The Practice of Micro-processor Yonam Institute of Digital Technology 03. Preparing for Practice.

Slides:



Advertisements
Similar presentations
INDIVIDUAL PROJECT BY R.KARTHIKMANOJ
Advertisements

Wireless Cue Light Project
Adders Used to perform addition, subtraction, multiplication, and division (sometimes) Half-adder adds rightmost (least significant) bit Full-adder.
I/O Interfacing and Programming
In-Circuit Programming for NXP Flash Microcontrollers
PROCESSO DI INVESTIMENTO 1 CASE HISTORY. CASE HISTORY (1/1) 2.
Slide 1 Insert your own content. Slide 2 Insert your own content.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
ZMQS ZMQS
Teacher/Mentor Institute Using the Cortex Chuck Powell.
Security Systems BU Communication Systems ST/SEU-CO 1 DCN MCCU SD Hardware Multi- Central Control Units MCCU System Hardware Basic PC Multi-
Lab 11 : Memory System Fundamentals :
Test on Input, Output, Processing, & Storage Devices
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
Central Control Unit (Com - ports) LBB3500/15
The scale of IC design Small-scale integrated, SSI: gate number usually less than 10 in a IC. Medium-scale integrated, MSI: gate number ~10-100, can operate.
Digital Electronics Lecture 2 Logic Gates. Lecture 2 outline Announcement:
DE2-115 Control Panel - Part I
Mr. Banyat Somsupan ubonTecnical Unit 2. Electronic Ubontecnical.
O X Click on Number next to person for a question.
Security Systems BU Communication Systems Slide 1 DCNtech MPCC IO NClientPC Installing and Operating with Multi PC Control  Windows Set-up.
Error Detection / Correction Hamming code. Why might we need Error detection/correction? Even & Odd Parity — Error detection Hamming code — Used for error.
1 Directed Depth First Search Adjacency Lists A: F G B: A H C: A D D: C F E: C D G F: E: G: : H: B: I: H: F A B C G D E H I.
Security Systems BU Communication Systems Slide 1 DCNtech MPCC IO NServerPC Installing and Operating with Multi PC Control  Windows Set-up.
Computer Engineering Activities Introduction to Interfacing Traffic Light Project SI 2003 Graham Smyth Yungsiow Yang Kevin Shea Jerry Dolata Ilana Smyth.
Microprocessor & Interfacing
The Truly Interactive Whiteboard Slinger Elementary School 1 Setting up the SMART Board.
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
AVR ATMega32 Elementary Input / Output
The Practice of Micro-processor Yonam Institute of Digital Technology 04. FND (7-Segment) Control.
The Practice of Micro-processor Yonam Institute of Digital Technology 05. Key Matrix Control.
The Practice of Micro-processor Yonam Institute of Digital Technology 06. LCD Control.
Addition 1’s to 20.
Random-Access Memory (RAM)
Princess Sumaya University
25 seconds left…...
Test B, 100 Subtraction Facts
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Week 1.
O X Click on Number next to person for a question.
Security Systems BU Communication Systems ST/SEU-CO 1 DCN SA SD Mix-M Mode Mix-Minus Mode  Prevent echo due to this feedback.  Audio-signals,
Bread Boarding and Operating The IFI Robotic Control System.
Programming the ATmega16
Lab 1 Structure of a PLD Module M1.4 Experiment 1 (p. 40)
Dr. Hoganson CSIS HC11 Demo Program This is our first lab using the 68HC11 microcontroller. We will “talk” to the microcontroller from a PC, run.
Robotics Research Laboratory Louisiana State University.
Module 2 – Digital I/O Output: Use the digital port to provide signals to display a number on a seven segment light emitting display (LED) display by wiring.
Overview What kind of LCD Interfacing the LCD Displaying Text and Numbers Common Issues.
Dr. Hoganson CSIS Segment Display and Count by 16 This is our third lab using the 68HC11 microcontroller. We will write a program that counts by.
COE4OI5 Engineering Design Chapter 2: UP2/UP3 board.
The miniDragon+ Board and CodeWarrior Lecture L2.1.
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Electronics Lab. 4 Exp. 2 : Parallel input
Tutorial 9 Module 8 – 8.1,8.2,8.3. Question 1 Distinguish between vectored and non-vectored interrupts with an example Build a hardware circuit that can.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
Vishwakarma government engineering college Prepare by. Hardik Jolapara( ) LCD Interfacing with ATmega16.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
7 SEGMENT INTERFACE WITH AVR MICROCONTROLLER A. D. Patel Institute Of Technology EC :- Sem VPresent By :- Pratik Makadia ( ) 23 June
Sitarambhai Naranjibhai Patel Institute of Technology and Research Centre, Umrakh, Bardoli. A Presentation On “ 16x2 LCD Interfacing with AVR atmega32.
DE2-115 Control Panel - Part I
Fundamentals of Computer Engineering
COMP211 Computer Logic Design Introduction to the DE2 Board
COMP2121: Microprocessors and Interfacing
Microcontrollers and Microprocessors
Presentation transcript:

The Practice of Micro-processor Yonam Institute of Digital Technology 03. Preparing for Practice

Overview of Board 2 MCU module Digital I/O 7-Segment Part 4X4 Key Matrix LCD Printer Port Serial Port MCU Port Connect Breadboard Power Part Power Connector / Switch

MCU Module Board 3 1, 2: MCU ATmega8535, MCU Interface Part 3: ISP Connector (On/Off) 4: PLD Part 5: Reset Switch 6: MCU State LED 7: Power Connector

 CodeVision AVR Installing  Using CD Compiler & Programmer 4

Connecting Board and PC 5

 Using CodeVision 1. Creation New Project Testing a LED-Control Program 6

2. Configuration 7

3. Creation Source 8

 Sample Code #include void main(void) { DDRA = 0xFF;// Port A 출력으로 설정 PORTA = 0xFF;// Port A 초기값 while(1) { // 무한루프 PORTA = 0x80;// Port A 로 0x80 값 출력 } 9

10  Wiring Diagram PA.0 ●● DO.0 PA.1 ●● DO.1 PA.2 ●● DO PA.3 ●● DO.3 Digital PA PORT PA.4 ●● DO.4 Output PA.5 ●● DO.5 PA.6 ●● DO.6 PA.7 ●● DO.7 PC.0 ●● DI.0 PC.1 ●● DI.1 PC.2 ●● DI PC.3 ●● DI.3 Digital PC PORT PC.4 ●● DI.4 Input PC.5 ●● DI.5 PC.6 ●● DI.6 PC.7 ●● DI.7 AVR8535 MCU Module Multi Digital Breadboard

11  Compiling & Download

 Digital Output LED: 8bit digital data output  VCC(Logic ‘H’)-LED on, GND(Logic ‘L’)-LED off  Uses Hex-numeric data for LED control  ex: If you insert “0xAA” to port output, the result follows Understanding Port Output (LED Control) 12 N.C N.CN.C N.C 00AA 0x000xAA

 LED 가 다음과 같이 반복되게 하시오.  LED 가 다음과 같이 1bit 씩 왼쪽 / 오른쪽 shift 하며 점등하게 하시오. Practice of Port Output (LED Control) 13 N.C N.CN.C N.C … (1) (2) …

Practice of Port Output (LED Control)  LED 가 다음과 같이 1bit 씩 누적되어 왼쪽 / 오른쪽 shift 하며 점등하 게 하시오. … (1) (2) … 14

 Digital Input DIP Switch: 8bit digital data input  Turn On-GND(Logic ‘L’), Turn Off-VCC(Logic ‘H’) Understanding Port Input (DIP Switch) 15 D7 D6 D5 D4 D3 D2 D1 D0 PC.0 ●● DI.0 PC.1 ●● DI.1 PC.2 ●● DI PC.3 ●● DI.3 Digital PC PORT PC.4 ●● DI.4 Input PC.5 ●● DI.5 PC.6 ●● DI.6 PC.7 ●● DI.7 AVR8535 MCU Module Multi Digital Breadboard

 다음과 같이 DIP 스위치의 입력을 LED 로 출력하라.  위의 프로그램을 수정하여 DIP 스위치 입력을 반전하여 LED 로 출력 하라. Practice of Port Input (DIP Switch) 16

 DIP 스위치의 D0 의 상태가 On 일 때 LED 가 ‘0xAA’ 와 ‘0x55’ 를 반복 하게 하라.  DIP 스위치의 D1 의 상태가 On 일 때 LED 가 왼쪽 shift 하게 하라.  DIP 스위치의 D2 의 상태가 On 일 때 LED 가 오른쪽 shift 하게 하라.  DIP 스위치의 D3 의 상태가 On 일 때 LED 가 왼쪽 누적 shift 하게 하라.  DIP 스위치의 D4 의 상태가 On 일 때 LED 가 오른쪽 누적 shift 하게 하 라. Advanced Practice 17