University of Florida EEL 4744 Spring 2013 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering 28 March Jun-13 6:18 PM
|
|
- Franklin Jones
- 5 years ago
- Views:
Transcription
1 University of Florida EEL 4744 Spring 2013 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering 2 March Jun-13 6:1 PM Page 1/14 Exam 2 Instructions: Turn off cell phones beepers and other noise making devices. First Name Show all work on the front of the test papers. If you need more room make a clearly indicated note on the front of the page "MORE ON BACK" and use the back. The back of the page will not be graded without an indication on the front. You may use any of your XMEGA documents with limited added material; highlighting and tagging is permissible. You may not use any notes (mine or yours) examples homework labs books calculators computer electronic devices etc. Put your name at the top of each test page and be sure your exam consists of 14 distinct pages. The space provided does not necessarily represent the amount of writing necessary. BEAT FGCU! You must pledge and sign this page in order for a grade to be assigned. I n programs the use of comments results in more partial credit. May the Schwartz Read each question carefully and follow the instructions. The point values for problems may be changed at prof s discretion. be with you! Part of your grade on tests quizzes labs etc. is based not only on solving the problem you are presented with but the manner in which you solve it. For example there is a difference between two programs that meet the given specifications but one is an elegant extensible 20-line solution while the other is an obfuscated 100-line program that also meets the specifications but would be difficult to extend later. Just as your future employer would value the latter program less than the first so will I in grading your assignments. This exam counts for % of your total grade. Unless otherwise stated assume the following: Go Good * The oscillator frequency is precisely 2 MHz. * The code should run on an ATxmega12A1U as configure on the UF utinkerer Development Board without any additional peripherals. Gators! luck! * PLEDGE: On my honor as a University of Florida student I certify that I have neither given nor received any aid on this examination nor I have seen anyone else do so. PRINT YOUR NAME SIGN YOUR NAME DATE (2 Mar 13) Regrade comments below. Give page # & problem # and reason for the petition. Pages Available Points TOTAL 100+6
2 Page 2/14 Exam 2 [29%] 1. In this problem you will design an expansion to a utinkerer board by adding k x of ROM k x of SRAM an -bit LCD a single input port and a single output port. (1%) a) Assume that the XMEGA s CS0 has been configured to work between 0x and 0x37 FFFF and that no external parts have yet been 7 min added to your utinkerer but that no addresses beyond 0x37 FFFF can be used. Addresses 0x x37 1FFF are reserved for future use. Starting at address 0x add k x ROM (using only 4k x ROM chips) followed by k x SRAM (from a 32k x SRAM chip) followed by a memory-mapped -bit LCD with 4k images (i.e. k total address range) and then the two ports. The number of images for the I/O ports should minimize the required hardware. Use full address decoding for the ROM and SRAM. First Name You MUST fill in the table below draw in port/memory blocks (above right) and fill out parts b and c to help you solve (and the TA grade) this problem. Port/Memory Blocks K (k x ) ROM Addr Range (using only 4k x ROMs): 0x x37 = B - B K (k x ) SRAM Addr Range (of a 32k x SRAM): 0x37-0x37 = B - B -bit LCD with 4k images i.e. k total Addr Range: 0x37-0x37 = B - B Port Addr Range: 0x37-0x37 = B - B (3%) b) Derive any necessary equations for the address decoding. For this problem you can NOT use any additional built-in chips selects on the XMEGA. 4 min (2%) c) Derive the control equations that you will need to control the ports and memories. In part d you will design the necessary circuits. 3 min
3 Page 3/14 Exam 2 First Name (17%) 1. d) Complete the circuit diagram below as specified in part a. Please USE LABELS instead 10 min of wires! Please USE LABELS instead of wires! Add additional components only if necessary (but ONLY SSI gates (PLDs) e.g. ANDs NORs NOTs etc.). = Port K = Port J XMEGA Port H RE WE ALE1 CS0 Reset Port C Port D Port Port 12 4k x bit ROM A 11 -A 0 D 7 -D 0 OE CS 15 32k x bit RAM A 14_ -A 0 D 7 -D 0 WE OE CS 12 4k x bit ROM A 11 -A 0 D 7 -D 0 OE CS Crystalfontz LCD RS=C/~D R/~W DB 7 -DB 0 E -bit Latch D 7 -D 0 Q 7 -Q 0 G -bit Flip-Flop D 7 -D 0 Q 7 -Q 0 -bit Tri-State In 7-0 Out 7-0 OE
4 Page 4/14 Exam 2 First Name (2%) 1. e) What special registers do you have to use to read/write data from addresses beyond 0xFFFF in DATA memory (i.e. not PORGRAM memory)? 1 min (2%) f) Why would you want to use an XMEGA CS (like CS0) rather than the CPLD? 2 min (2%) g) When would you need to use a CPLD in addition to a CS? 2 min (4%) 2. Draw two circuit diagrams one of a switch circuit with output A(H) and another of an LED 3 min circuit with input B(L). Draw the switch in the true position. Label the output and the input respectively.
5 Page 5/14 Exam 2 First Name [15%] 3. You are trying to build a robot lawnmower but you must work with other students software 4 min and the equipment that you are given. Assume that another team member has setup a high level interrupt for an ADC (analog to digital converter) pin. Your team has purchased (and you must use) an extremely slow LCD. The kill switch (which when pressed immediately stops the lawnmower for moving and the blade from spinning) is tied to an external interrupt that is set at medium level. (4%) a) Create a flowchart or pseudo code for the following specification. (In part b you will add instructions to some instructions that have already been written.) 11 min Assume the necessary pre-program initializations and other necessary software initializations have already been written. The kill switch interrupt should fire and kill the lawnmower robot as QUICKLY as possible. NOTHING is more important! Maximize the time spent doing autonomous work i.e. cutting the grass. The main routine should have a continuous loop that makes the lawnmower do autonomous work i.e. cut the grass. You are given the following (already written) four subroutines with specifications: o The ADC uses an interrupt. READ_ADC is a subroutine that reads the -bit ADC value into R17. o The OUT_LCD subroutine converts the value in R16 to a string and then sends the string to display on the LCD screen. R16 is the last read ADC value. (Assume that the OUT_LCD routine does the necessary binary to ASCII conversions to change the byte into a voltage.) This subroutine takes a long time to complete; it does not end until the LCD shows the new string and is ready for another character to be sent to the LCD. Only output to the LCD when another ADC value is read. o o The WORK subroutine will cause the robot to mow the lawn (i.e. cut the grass). This subroutine will always run for two seconds (not including interrupts) which means that the LCD won t start updating for up to 2 seconds. Maximize the time performing this function. KILL is a subroutine that stops all lawnmower motors. This is the most important function! NOTHING is more important! ADC_ISR is the interrupt service routine for the ADC. You do not have to clear this interrupt s flag. EXT_ISR is the interrupt service routine for the kill switch s external interrupt.
6 Page 6/14 Exam 2 15 min (9%) 3. b) Add the necessary instructions to meet the specifications in part a. First Name MAIN: Labels Instructions ; Normal initializations are done for you ; Interrupts systems are configured for you and ready to go LOOP: ADC_ISR: EXT_ISR:
7 Page 7/14 Exam 2 First Name (2%) 3. c) If you could what specifications should you change to simplify the code structure and more appropriately solve the key requirements of the problem? 3 min BONUS (optional) (+3%) d) Explain how you can have write to the LCD without wasting so much processor time. 5 min BONUS (optional) (+3%) 4. Similarly to the LCD above determining when a keypad button is pressed is very slow and 5 min wastes a lot of processor time. Assume that the keypad has pull-up resistors on the four rows which are processor inputs; the processor outputs go to the four columns. Explain how you can use the keypad in such a way that it uses significantly less processor time. (You can ignore switch bouncing in your answer to this problem.)
8 Page /14 Exam 2 First Name [25%] 5. A student wrote the following program to initialize an external SRAM and then check if the SRAM functions properly (or if errors occur). If there is an SRAM error then the student 25 min send an E through USARTC0. Find and correct all of the errors in the below program. You can either correct the errors in place or refer to the line numbers to correct them on the next page. (Assume USARTC0 is initialed with a call in INIT_UART which is available but not shown.) include "ATxmega12A1Udef.inc".set SRAM_BEGIN = 0x450000;.set SRAM_END = 0x451FFF;.org 0x0000 rjmp MAIN.org 0x0100 MAIN: rcall INIT_EBI rcall INIT_UART ; Assume this exists rcall INIT_SRAM rcall SRAM_store ; Write then read data in all SRAM ; addresses SRAM_Store: ldi R16 0xFF st Z R16 ld R16 Z cpi R16 0xFF brne ERROR inc Z cpi ZH 0x1F brne SRAM_Store cpi ZL 0xFF breq SRAM_Store ;******************* ;Send an E out to USART ERROR: ERROR_POLL: lds R16 USARTC0_STATUS sbrc R17 1 breq ERROR_POLL sts USARTC0_DATA 'E' ret ;******************* INIT_EBI: push R16 push R17 ldi R16 0x13 sts PORTH_DIR R16 ldi R16 0x13 sts PORTH_OUT R16 ldi R16 0xFF sts PORTJ_DIR R16 ldi R17 0x01 sts EBI_CTRL R17 pop R16 pop R17 ret ;******************* INIT_SRAM: ldi ZH HIGH(EBI_CS0_BASEADDR) ldi ZL LOW(EBI_CS0_BASEADDR) ldi R16 ((SRAM_END >> ) & 0xF0) st Z+ R16 ldi R16 ((SRAM_END >> 16) & 0xFF) st Z R16 ldi R16 0x1D sts EBI_CS1_CTRLA R16 ldi ZH HIGH(SRAM_BEGIN) ldi ZL LOW(SRAM_BEGIN)
9 Page 9/14 Exam 2 First Name (25%) 5. (Continued) Correct any software that you did not correct previously. Use the line 6 min numbers to refer to the original and correct code. If for example line 95 is replaced with three lines then label the replacement lines 95a 95b and 95c.
10 Page 10/14 Exam 2 First Name [27%] 6. In the next several sections you will write the most of a program to send a message out of the 4 min USARTD1 (NOT USARTC0) serial port of your utinkerer every time a # (ASCII value 0x23) is received. This code should never stop executing but should be interrupt driven so that other functions could be running simultaneously. The program will also include a counter that is triggered by interrupt whenever a character is transmitted out of USARTD1. In the next several sections you will write two USART initialization subroutines a receiver interrupt service routine (RX_ISR) and a transmitter interrupt service routine (TX_ISR) and define all the necessary registers constants and variables. Assume that the main routine and the OUT_STRING function have already been written. Assume that the main routine calls the subroutines of parts a and b i.e. INIT_USART and INIT_USART_INTR and then runs an endless loop. (4%) a) Define all desired register definitions constants variables and non-instruction software 5 min that you will need in the subsequent sections. You will need to return to this part while completing each of the next sections of this problem. Note: A few entries have already been made for you. Please make sure to fill in the value for BSEL. Labels Instructions Labels Instructions.equ POUND = 0x23.equ ESC = 0x1B.equ BSCALE = -1.equ BSEL = STRING:.org 0x100.db "4744 is Great" 0x00
11 Page 11/14 Exam 2 First Name (5%) 6. b) Write a USARTD1 initialization subroutine (INIT_USART) to turn on the transmitter turn on the receiver use -bits of data odd parity 2 stop bits and run at Hz. Show your calculations for the baud rate related values given that BSCALE = -1. Also appropriately define any necessary initialization values e.g. BSel back in part a. Labels Instructions Comments
12 Page 12/14 Exam 2 First Name (3%) 6. c) What is the minimum time it would take to transmit a table of 100 bytes assuming that interrupts were used? Show your work. 4 min (3%) 2. d) Write a subroutine (INIT_USART_INTR) to appropriately initialize the USARTD1 interrupt system for the serial receiver AND transmitter. This should anything necessary 2 min to be able to use the interrupt when this routine is completed. Assume the interrupt service routines are called RX_ISR and TX_ISR. Also appropriately define any necessary initialization values (including initializing the interrupt service routine vector) e.g. USARTD1_RXC_VECT back in part a. Labels Instructions Comments
13 Page 13/14 Exam 2 First Name (4%) 6. e) Write an interrupt service routine (RX_ISR) to read a single character. If the character is 6 min a # (see part a) call subroutine OUT_STRING; otherwise do not call OUT_STRING. Also appropriately define any necessary initialization values back in part a. Labels Instructions Comments
14 Page 14/14 Exam 2 First Name (%) 6. f) Write an interrupt service routine (TX_ISR) to increment a counter whenever a character is transmitted on USARTD1. The counter must persist between transmits. If the last min received character is ESC (see part a) reset the counter to zero. Also appropriately define any necessary initialization values back in part a. Labels Instructions Comments
University of Florida EEL 4744 Summer 2014 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering 1 July Oct-14 6:41 PM
Page 1/14 Exam 1 Instructions: First Name Turn off cell phones beepers and other noise making devices. Show all work on the front of the test papers. If you need more room make a clearly indicated note
More informationUniversity of Florida EEL 3744 Spring 2017 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering 22 February Mar-17 1:44 PM
Page 1/11 Exam 1 Instructions: Turn off cell phones beepers and other noise making devices. Show all work on the front of the test papers. If you need more room make a clearly indicated note on the front
More informationUniversity of Florida EEL 4744 Spring 2014 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering 1 April Apr-14 9:03 AM
Page 1/15 Exam 2 Instructions: Turn off cell phones beepers and other noise making devices. BEAT UCONN! Show all work on the front of the test papers. If you need more room make a clearly indicated note
More informationMay the Schwartz be with you!
Department of Electrical & Computer Engineering Tuesday 27 June 17 29-Sep-17 3:54 PM Page 1/13 Exam 1 Instructions: Turn off cell phones beepers and other noise making devices. Show all work on the front
More informationUniversity of Florida EEL 4744 Spring 2011 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering 31 March Apr-11 1:29 PM
University of Florida EE 4744 Spring 2011 Dr. Eric M. Schwartz Page 1/15 Exam 2 Go Gators! Instructions: Turn off cell phones beepers and other noise making devices. Show all work on the front of the test
More informationUniversity of Florida EEL 3744 Spring 2018 Dr. Eric M. Schwartz. Good luck!
Page 1/13 Exam 2 Relax! Go Gators! Good luck! First Name Instructions: Turn off all cell phones and other noise making devices and put away all electronics. Show all work on the front of the test papers.
More informationUniversity of Florida EEL 4744 Spring 2012 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering 22 February Jun-12 4:55 PM
Page 1/13 Exam 1 Instructions: Turn off cell phones beepers and other noise making devices. Show all work on the front of the test papers. If you need more room make a clearly indicated note on the front
More informationGo Gators! Relax! May the Schwartz be with you!
Page 1/12 Exam 1 Instructions: Turn off cell phones beepers and other noise making devices. Show all work on the front of the test papers. If you need more room make a clearly indicated note on the front
More informationUniversity of Florida EEL 4744 Fall 1998 Dr. Eric M. Schwartz
Department of Electrical & Computer Engineering 15 October 199 Professor in ECE 31-Dec-9 12:22 PM Page 1/ Instructions: Show all work on the front of the test papers. If you need more room, make a clearly
More informationGood Evening! Welcome!
University of Florida EEL 3701 Fall 2011 Dr Eric M Schwartz Page 1/11 Exam 2 Instructions: Turn off all cell phones, beepers and other noise making devices Show all work on the front of the test papers
More informationYOU WILL NOT BE ALLOWED INTO YOUR LAB SECTION WITHOUT THE REQUIRED PRE-LAB.
Page 1/5 Revision 3 OBJECTIVES Explore and understand microprocessor interrupts. In part A of this lab, you will use XMEGA external interrupt system. Learn how to utilize asynchronous serial communication.
More information7 8 9 C. PRELAB REQUIREMENTS You must adhere to the Lab Rules and Policies document for every lab.
Page 1/ Revision 1 OBJECTIVES To understand how a keypad functions as a raster scan input device and to learn how to interface a keypad to a microprocessor. Further explore and understand the implementation
More informationLab 5: LCD and A/D: Digital Voltmeter
Page 1/5 OBJECTIVES Learn how to use C (as an alternative to Assembly) in your programs. Learn how to control and interface an LCD panel to a microprocessor. Learn how to use analog-to-digital conversion
More informationToday s Menu. >Use the Internal Register(s) >Use the Program Memory Space >Use the Stack >Use global memory
Today s Menu Methods >Use the Internal Register(s) >Use the Program Memory Space >Use the Stack >Use global memory Look into my See examples on web-site: ParamPassing*asm and see Methods in Software and
More informationLab 5: LCD and A/D: Digital Voltmeter
Page 1/5 OBJECTIVES Learn how to use C (as an alternative to Assembly) in your programs. Learn how to control and interface an LCD panel to a microprocessor. Learn how to use analog-to-digital conversion
More informationCOMP2121: Microprocessors and Interfacing. I/O Devices (II)
COMP2121: Microprocessors and Interfacing I/O Devices (II) http://www.cse.unsw.edu.au/~cs2121 Lecturer: Hui Wu Session 2, 2017 1 Overview Keyboard LCD (Liquid Crystal Display) 2 2 Input Switches (1/2)
More informationE3940 Microprocessor Systems Laboratory. Introduction to the Z80
E3940 Microprocessor Systems Laboratory Introduction to the Z80 Andrew T. Campbell comet.columbia.edu/~campbell campbell@comet.columbia.edu E3940 Microprocessor Systems Laboratory Page 1 Z80 Laboratory
More informationLab 5: EBI and ADC: Digital Voltmeter
Page 1/5 OBJECTIVES Learn how to use C (as an alternative to Assembly) in your programs. Learn how to use an analog-to-digital conversion (ADC, also known as A/D) system on a microcontroller. Use the ADC
More information2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?
ECE3710 Exam 2. Name _ Spring 2013. 5 pages. 102 points, but scored out of 100. You may use any non-living resource to complete this exam. Any hint of cheating will result in a 0. Part 1 Short Answer 1.
More informationMagic 8 Ball. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name
MPS Magic 8 Ball Lab Exercise Magic 8 Ball Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name Notes: You must work on this assignment with your partner. Hand in a printer
More informationLab3: I/O Port Expansion
Page 1/5 Revision 2 6-Oct-15 OBJECTIVES Explore and understand the implementation of memory-mapped I/O. Add an 8-bit input port and an 8-bit output port. REQUIRED MATERIALS EEL 3744 (upad and upad Proto
More informationLab #2: Building the System
Lab #: Building the System Goal: In this second lab exercise, you will design and build a minimal microprocessor system, consisting of the processor, an EPROM chip for the program, necessary logic chips
More informationEE251: Tuesday December 4
EE251: Tuesday December 4 Memory Subsystem continued Timing requirements Adding memory beyond 4 Gbyte Time Allowing: Begin Review for Final Exam Homework #9 due Thursday at beginning of class Friday is
More informationEE251: Thursday November 30
EE251: Thursday November 30 Course Evaluation Forms-fill out Memory Subsystem continued Timing requirements Adding memory beyond 4 Gbyte Time Allowing: Begin Review for Final Exam Homework due next Tuesday,
More informationVALLIAMMAI ENGINEERING COLLEGE S.R.M. NAGAR, KATTANKULATHUR-603203. DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING VII-EEE EE6502- MICROPROCESSORS AND MICROCONTROLLERS QUESTION BANK UNIT I 1. What
More information8051 Interfacing: Address Map Generation
85 Interfacing: Address Map Generation EE438 Fall2 Class 6 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 85 Interfacing Address Mapping Use address bus and
More informationEmbedded Systems and Software. LCD Displays
Embedded Systems and Software LCD Displays Slide 1 Some Hardware Considerations Assume we want to drive an LED from a port. The AVRs can either source or sink current. Below is a configuration for sourcing.
More informationCHAPTER TWELVE - Memory Devices
CHAPTER TWELVE - Memory Devices 12.1 6x1,024 = 16,384 words; 32 bits/word; 16,384x32 = 524,288 cells 12.2 16,384 addresses; one per word. 12.3 2 16 = 65,536 words = 64K. Thus, memory capacity is 64Kx4.
More informationLab 4: Register File and Memory 50 points Instructor: Yifeng Zhu Due: One week
Objectives: Lab 4: Register File and Memory 50 points Instructor: Yifeng Zhu Due: One week Build Register File Build Instruction Memory and Data Memory 1. Overview A combinational circuit neither contains
More informationLab 16: Data Busses, Tri-State Outputs and Memory
Lab 16: Data Busses, Tri-State Outputs and Memory UC Davis Physics 116B Rev. 0.9, Feb. 2006 1 Introduction 1.1 Data busses Data busses are ubiquitous in systems which must communicate digital data. Examples
More informationMicroprocessor Architecture. mywbut.com 1
Microprocessor Architecture mywbut.com 1 Microprocessor Architecture The microprocessor can be programmed to perform functions on given data by writing specific instructions into its memory. The microprocessor
More informationChapter Operation Pinout Operation 35
68000 Operation 35 Chapter 6 68000 Operation 6-1. 68000 Pinout We will do no construction in this chapter; instead, we will take a detailed look at the individual pins of the 68000 and what they do. Fig.
More informationEECS 373 Midterm 2 Fall 2018
EECS 373 Midterm 2 Fall 2018 Name: unique name: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. Nor did I discuss this exam with anyone after
More informationThe MC9S12 in Expanded Mode Using MSI logic to build ports Using MSI logic to build an output port Using MSI logic to build an input port
The MC9S12 in Expanded Mode Using MSI logic to build ports Using MSI logic to build an output port Using MSI logic to build an input port A Simple Parallel Output Port We want a port which will write 8
More informationLab3: I/O Port Expansion
Page 1/6 Revision 0 26-Jan-16 OBJECTIVES Explore and understand the implementation of memory-mapped I/O. Add an 8-bit input port and an 8-bit output port. REQUIRED MATERIALS EEL 3744 (upad and upad Proto
More informationECE251: Intro to Microprocessors Name: Solutions Mid Term Exam October 4, 2018
ECE251: Intro to Microprocessors Name: Solutions Mid Term Exam October 4, 2018 (PRINT) Instructions: No calculators, books, or cell phones; do not communicate with any other student. One side of a single
More information8051 Microcontroller
8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many
More informationLaboratory 10. Programming a PIC Microcontroller - Part II
Laboratory 10 Programming a PIC Microcontroller - Part II Required Components: 1 PIC16F88 18P-DIP microcontroller 1 0.1 F capacitor 3 SPST microswitches or NO buttons 4 1k resistors 1 MAN 6910 or LTD-482EC
More informationThe 9S12 in Expanded Mode - Using MSI logic to build ports Huang Chapter 14
The 9S12 in Expanded Mode - Using MSI logic to build ports Huang Chapter 14 Using MSI Logic To Build An Output Port Many designs use standard MSI logic for microprocessor expansion This provides an inexpensive
More informationBUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book
BUILDING BLOCKS OF A BASIC MICROPROCESSOR Part PowerPoint Format of Lecture 3 of Book Decoder Tri-state device Full adder, full subtractor Arithmetic Logic Unit (ALU) Memories Example showing how to write
More informationCOMP2121: Microprocessors and Interfacing. I/O Devices (I)
COMP2121: Microprocessors and Interfacing I/O Devices (I) http://www.cse.unsw.edu.au/~cs2121 Lecturer: Hui Wu Session 2, 2017 1 Overview I/O Ports AVR Ports 2 2 What is I/O? I/O is Input or Output (Input/Output).
More informationInput/Output Devices. Lecturer: Sri Parameswaran Notes by: Annie Guo
Input/Output Devices Lecturer: Sri Parameswaran Notes by: Annie Guo 1 Lecture Overview Input devices Input switches Basics of switches Keypads Output devices LCD 2 Input Switches Most basic binary input
More information[TUT] Newbie's Guide to AVR Interrupts
This tutorial is about interrupt driven USART receive and transmit routines written in AVR assembly. The hardware is: Arduino Mega2560 Adafruit Ultimate GPS IBM PC Atmel JTAGICE3 Software: Atmel AS6.1
More informationControl Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.
Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale
More informationMASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences
MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences Introductory Digital Systems Lab (6.111) uiz - Spring 2004 Prof. Anantha Chandrakasan Student Name: Problem
More informationY = (A + C) (A + B) (B + C)
EEL3701 Dr. Gugel Last Name First Name Spring 2012 Final Quiz UF ID# Open book and open notes, 90-minute examination to be done in non-red pencil or pen. No electronic devices permitted. All work and solutions
More informationModule 8: Atmega32 Stack & Subroutine. Stack Pointer Subroutine Call function
Module 8: Atmega32 Stack & Subroutine Stack Pointer Subroutine Call function Stack Stack o Stack is a section of RAM used by the CPU to store information temporarily (i.e. data or address). o The CPU needs
More informationNCSU - ECE 306- Exam 2 March 27, 2003
NCSU - ECE 306- Exam 2 March 27, 2003 Name: User ID Question 1-15 16-22 23-Algo 23-code Total Score /45 /60 /15 /30 /150 You are permitted 75 minutes to take this test, no more. This is an open book/open
More informationReview for Exam III. Analog/Digital Converters. The MC9S12 has two 10-bit successive approximation A/D converters - can be used in 8-bit mode
Methods used for A/D converters Flash (Parallel) Successive Approximation Review for Exam III Analog/Digital Converters A/D converters are classified according to: Resolution (number of bits) Speed (number
More informationMicroprocessors & Interfacing
Lecture Overview Microprocessors & Interfacing Input/Output Devices Input devices Input switches Basics of switches Keypads Output devices LCD Lecturer : Dr. Annie Guo S2, 2008 COMP9032 Week8 1 S2, 2008
More informationKING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT
KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT COE 202: Digital Logic Design Term 162 (Spring 2017) Instructor: Dr. Abdulaziz Barnawi Class time: U.T.R.: 11:00-11:50AM Class
More informationUsing MSI Logic To Build An Output Port
Using MSI Logic To Build An Output Port Many designs use standard MSI logic for microprocessor expansion This provides an inexpensive way to expand microprocessors One MSI device often used in such expansions
More informationCS 151 Quiz 4. Instructions: Student ID. (Last Name) (First Name) Signature
CS 151 Quiz 4 Name Student ID Signature :, (Last Name) (First Name) : : Instructions: 1. Please verify that your paper contains 9 pages including this cover. 2. Write down your Student-Id on the top of
More informationEE251: Thursday November 15
EE251: Thursday November 15 Major new topic: MEMORY A KEY topic HW #7 due today; HW #8 due Thursday, Nov. 29 Lab #8 finishes this week; due week of Nov. 26 All labs MUST be completed/handed-in by Dec.
More informationEECS 373 Practice Midterm & Homework #2 Fall 2011
Exam #: EECS 373 Practice Midterm & Homework #2 Fall 2011 Name: Uniquename: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. Scores: Problem #
More informationArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor 8085 consists of various units and each unit performs its own functions. The various units of a microprocessor are listed below Accumulator Arithmetic and logic Unit
More informationMicrocontroller basics
FYS3240 PC-based instrumentation and microcontrollers Microcontroller basics Spring 2017 Lecture #4 Bekkeng, 30.01.2017 Lab: AVR Studio Microcontrollers can be programmed using Assembly or C language In
More informationTEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!
Summer Training 2016 Advance Embedded Systems Fast track of AVR and detailed working on STM32 ARM Processor with RTOS- Real Time Operating Systems Covering 1. Hands on Topics and Sessions Covered in Summer
More informationEND-TERM EXAMINATION
(Please Write your Exam Roll No. immediately) END-TERM EXAMINATION DECEMBER 2006 Exam. Roll No... Exam Series code: 100919DEC06200963 Paper Code: MCA-103 Subject: Digital Electronics Time: 3 Hours Maximum
More informationCS303 LOGIC DESIGN FINAL EXAM
JANUARY 2017. CS303 LOGIC DESIGN FINAL EXAM STUDENT NAME & ID: DATE: Instructions: Examination time: 100 min. Write your name and student number in the space provided above. This examination is closed
More information;Compiler Options.NOLIST.INCLUDE "C:\Program Files (x86)\atmel\avr Tools\AvrAssembler2\Appnotes\m8515def.inc"
;* CharTest.asm ;* ;* Created: 28/06/2017 9:37 p.m. ;* Author: ob1 ;ST7820 128 x 64 graphics mode character display 8 lines x 21 characters ;Modification and redistribution under provisions of GNU general
More informationEECE 340 Introduction to Microprocessors w/lab Section A. Term Project Parking Visitor Counter
Section A Term Project Parking Visitor Counter Group Members: Instructor: Dr. Jinane Biri Due date: Sunday, Dec. 16, 2012 1 Table of Contents 1. Objective... 2 2. Introduction and Problem Description...
More informationChapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware
More information8051 Microcontrollers
8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 8, 2016 Controller vs Processor Controller vs Processor Introduction to 8051 Micro-controller In 1981,Intel corporation
More informationSummer 2003 Lecture 21 07/15/03
Summer 2003 Lecture 21 07/15/03 Simple I/O Devices Simple i/o hardware generally refers to simple input or output ports. These devices generally accept external logic signals as input and allow the CPU
More informationTopic 3. ARM Cortex M3(i) Memory Management and Access. Department of Electronics Academic Year 14/15. (ver )
Topic 3 ARM Cortex M3(i) Memory Management and Access Department of Electronics Academic Year 14/15 (ver 25-10-2014) Index 3.1. Memory maps 3.2. Memory expansion 3.3. Memory management & Data alignment
More informationWELCOME TO. ENGR 303 Introduction to Logic Design. Hello my name is Dr. Chuck Brown
Chapter 1 WELCOME TO Introduction to Logic Design Hello my name is Dr. Chuck Brown Please sign in and then find a seat. The person next to you will be your lab partner for the course so choose wisely and
More informationEE 308: Microcontrollers
EE 308: Microcontrollers Review Part I Aly El-Osery Electrical Engineering Department New Mexico Institute of Mining and Technology Socorro, New Mexico, USA February 15, 2018 Aly El-Osery (NMT) EE 308:
More informationCentral Processing Unit. Steven R. Bagley
Central Processing Unit Steven R. Bagley Introduction So far looked at the technology underpinning computers Logic signals to cause things to happen, and represent numbers Boolean gates to combine and
More informationChapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics
Chapter 4 Objectives Learn the components common to every modern computer system. Chapter 4 MARIE: An Introduction to a Simple Computer Be able to explain how each component contributes to program execution.
More information4. (a) With a neat sketch explain 8237 DMA controller and its operation? (b) With the help of basic cell explain SRAM and DRAM?
Code No: R05220504 Set No. 1 II B.Tech II Semester Regular Examinations, Apr/May 2008 MICROPROCESSORS AND INTERFACING ( Common to Computer Science & Engineering, Information Technology and Computer Science
More informationApplication Note. Interfacing to a Graphics LCD from PSoC. Summary This Application Note describes how to control a graphic LCD in a PSoC application.
Application Note AN2147 Interfacing to a Graphics LCD from PSoC Author: Pham Minh Tri Associated Projects: Yes Associated Part Family: CY8C27xxx PSoC Designer Version: 4.0 Associated Application Notes:
More informationParallel I/O and Keyboard Scanning
4 4.1 Objectives: Microprocessors can monitor the outside world using input ports. They can also control it using output ports. The TM4C123G (Tiva) performs I/O using 6 ports. Computer keyboards are typically
More informationUnderstanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,
Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and
More informationECED 3204 Microprocessor Midterm Reference Solution
ECED 3204 Microprocessor Midterm Reference Solution Date: October 26 2017 Time: 7:00pm-9:00pm Room: B225, B227, B229 Student name ID 1) Problem one has following two sub problems: a. Write an instruction
More informationRS232-ADC16/24 Manual
RS232-ADC16/24 Manual Version 1.11 Copyright taskit GmbH 2009 www.taskit.de Page 1/22 Table of contents 1 Features...3 2 Introduction...3 3 Bringing into service...4 4 Application Sample...5 5 Frame layout...6
More informationSerial I-O for Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai (version 14/10/07)
Serial I-O for 8051 Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai 400 076 (version 14/10/07) 1 Motivation Serial communications means sending data a single bit at a time. But
More informationDepartment of Electronics and Instrumentation Engineering Question Bank
www.examquestionpaper.in Department of Electronics and Instrumentation Engineering Question Bank SUBJECT CODE / NAME: ET7102 / MICROCONTROLLER BASED SYSTEM DESIGN BRANCH : M.E. (C&I) YEAR / SEM : I / I
More informationLCD Display. Other I/O. LCD display Flash ROM SPI EPROM Keyboard (PS/2) UART connectors DAC ADC. 2-line, 16 character LCD display
Other I/O LCD display Flash ROM SPI EPROM Keyboard (PS/2) UART connectors DAC ADC LCD Display 2-line, 16 character LCD display 4-bit interface Relatively easy to use once you have it mapped into your processor
More informationEC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I
EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes
More informationEE445L Fall 2014 Final Version A Page 1 of 7
EE445L Fall 2014 Final Version A Page 1 of 7 Jonathan W. Valvano First: Last: This is the closed book section. You must put your answers in the boxes. When you are done, you turn in the closed-book part
More informationAVR ISA & AVR Programming (I) Lecturer: Sri Parameswaran Notes by: Annie Guo
AVR ISA & AVR Programming (I) Lecturer: Sri Parameswaran Notes by: Annie Guo 1 Lecture Overview AVR ISA AVR Instructions & Programming (I) Basic construct implementation 2 Atmel AVR 8-bit RISC architecture
More informationPIC Microcontroller Introduction
PIC Microcontroller Introduction The real name of this microcontroller is PICmicro (Peripheral Interface Controller), but it is better known as PIC. Its first ancestor was designed in 1975 by General Instruments.
More informationECE 372 Microcontroller Design
!! "! E.g. Port A, Port B "! Used to interface with many devices!! Switches!! LEDs!! LCD!! Keypads!! Relays!! Stepper Motors "! Interface with digital IO requires us to connect the devices correctly and
More informationEMBEDDED SYSTEMS COURSE CURRICULUM
On a Mission to Transform Talent EMBEDDED SYSTEMS COURSE CURRICULUM Table of Contents Module 1: Basic Electronics and PCB Software Overview (Duration: 1 Week)...2 Module 2: Embedded C Programming (Duration:
More informationInterfacing a Hyper Terminal to the Flight 86 Kit
Experiment 6 Interfacing a Hyper Terminal to the Flight 86 Kit Objective The aim of this lab experiment is to interface a Hyper Terminal to 8086 processor by programming the 8251 USART. Equipment Flight
More informationHC12 Built-In Hardware
HC12 Built-In Hardware The HC12 has a number of useful pieces of hardware built into the chip. Different versions of the HC12 have slightly different pieces of hardware. We are using the MC68HC912B32 chip
More informationAVR Subroutine Basics
1 P a g e AVR Subroutine Basics READING The AVR Microcontroller and Embedded Systems using Assembly and C) by Muhammad Ali Mazidi, Sarmad Naimi, and Sepehr Naimi Chapter 3: Branch, Call, and Time Delay
More informationRTC Interface 89C51 DS M. Krishna Kumar MAM/M7/LU17/V1/ Vcc VCC 5 SDA P1.0 6 SCL P KHz 3 BAT 3.
RTC Interface 89C51 Vcc P1.0 10k 10k 5 SDA DS 1307 8 VCC P1.1 6 SCL X1 1 + 3 BAT X2 2 32.768KHz - 3.6V 4 GND INTB\SQW 7 M. Krishna Kumar MAM/M7/LU17/V1/2004 1 RTC Interface contd. DS 1307 is a real time
More information2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.
DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6502- MICROPROCESSORS AND MICROCONTROLLERS UNIT I: 8085 PROCESSOR PART A 1. What is the need for ALE signal in
More informationCPE/EE 421/521 Fall 2004 Chapter 4 The CPU Hardware Model. Dr. Rhonda Kay Gaede UAH. The CPU Hardware Model - Overview
CPE/EE 421/521 Fall 2004 Chapter 4 The 68000 CPU Hardware Model Dr. Rhonda Kay Gaede UAH Fall 2004 1 The 68000 CPU Hardware Model - Overview 68000 interface Timing diagram Minimal configuration using the
More informationECE 2300 Digital Logic & Computer Organization
ECE 2300 Digital Logic & Computer Organization Spring 201 Memories Lecture 14: 1 Announcements HW6 will be posted tonight Lab 4b next week: Debug your design before the in-lab exercise Lecture 14: 2 Review:
More informationUNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Quiz II
Department of Electrical and Computing Engineering UNIVERSITY OF CONNECTICUT ECE 3411 Microprocessor Application Lab: Fall 2015 Quiz II There are 5 questions in this quiz. There are 9 pages in this quiz
More informationSYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET
1 SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET Intel 8086/8088 Architecture Segmented Memory, Minimum and Maximum Modes of Operation, Timing Diagram, Addressing Modes, Instruction Set,
More informationHow Computers Work. Processor and Main Memory. Roger Young
How Computers Work Processor and Main Memory Roger Young Copyright 2001, Roger Stephen Young All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted by
More informationEEL 4511 Dr. Gugel LAST NAME FIRST NAME Spring 2016, Real-time DSP Exam #1
EEL 4511 Dr. Gugel LAST NAME FIRST NAME Spring 2016, Real-time DSP Exam #1 Open book and open notes, 60 minute examination, No electronic devices are permitted. Page 1 36 points Page 2 24 points Page 3
More informationSANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1
SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC
More informationMechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6
Mechatronics and Measurement Lecturer:Dung-An Wang Lecture 6 Lecture outline Reading:Ch7 of text Today s lecture: Microcontroller 2 7.1 MICROPROCESSORS Hardware solution: consists of a selection of specific
More informationEECS 373 Practice Midterm / Homework #3 Fall 2014
Exam #: EECS 373 Practice Midterm / Homework #3 Fall 2014 Name: Uniquename: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. Scores: Problem #
More informationUniversity of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences. EECS 150 Spring 2000
University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences EECS 150 Spring 2000 Lab #8: EPROMs This lab is to be completed with a project partner.
More information