Homework 1, 2 First version, using arbitrary C environment, -Task 1 due : 6,7,8 September -Task 2 due : 13,14,15 September Final version, using THRSim11.

Slides:



Advertisements
Similar presentations
Work Area Insert Template Insert Pictures Libraries Add Lettering Speech Bubbles Final Touch Menu bar: Contains menus for performing tasks. The menus.
Advertisements

EZ-COURSEWARE State-of-the-Art Teaching Tools Teaching Tomorrow’s Technology Today.
IB ECONOMIC COMMENTARIES DUE DATES HOMEWORK DUE DATES & FINAL SUBMISSION OF PORTFOLIO DEADLINES.
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Documentation Letts Study Guide Information Systems - IT Chapter 19.
Essential Introduction to Computers
Chapter 1 Object Oriented Programming. OOP revolves around the concept of an objects. Objects are crated using the class definition. Programming techniques.
ECE 447: Course Organization Instructor:Kris Gaj, S&T II, Room 223 Office hours: T, R 4:30-5:30 PM Lab assistants: Thuy-Tien Nguyen (M)
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
1 CS 106, Winter 2009 Class 4, Section 4 Slides by: Dr. Cynthia A. Brown, Instructor section 4: Dr. Herbert G. Mayer,
SudokuEHG Michelle BrownMatt Haggenmiller Thomas Troch User Interface Rochester Institute of Technology Department of Computer Engineering Menus Used for.
CS 410 Applied Algorithms Applied Algorithms Lecture #1 Introduction, class information, first problems.
Verilog Lab This presentation includes some material that is selected from BUCKNELL VERILOG HANDBOOK. Instructor: Dr. Charles Liu Prepared by John Ren.
Program design example Task: Develop an algorithm expressed in pseudocode for a specified problem specified problem.
Topic R3 – Review for the Final Exam. CISC 105 – Review for the Final Exam Exam Date & Time and Exam Format The final exam is 120-minutes, closed- book,
Hardware and Multimedia Chapter 4. 4 Personal Computers (PCs) PCs are computers that can be: Used by individuals at home, work, or school Desktop models.
ECE 447: Lecture 6 Input/Output Interfacing LEDs, Button Switches & Port Multiplexing.
PowerPoint Tutorial. Basic Vocabulary ► Slide - Presentation - Slide layout – ► ► ► a single page in PowerPoint all the slides for a speech all the slides.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
 Keyboards, LCDs most widely used input/output devices of the 8051  Contents to be covered:  keyboard fundamentals  key press and key detection mechanisms.
State Machine Design State Machine Design Digital Electronics
CS102 Introduction to Computer Programming
Chapter 4 Programmable Logic Devices: CPLDs with VHDL Design Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights.
Section 2.1 Identify hardware Describe processing components Compare and contrast input and output devices Compare and contrast storage devices Section.
1.1 1 Introduction Foundations of Computer Science  Cengage Learning.
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
Homework Assignment 3 Due date: Tuesday, Wednesday, or Thursday, October 4-6, 2005 input: push-button switch output: seven-segment LED 7 points Menu System.
Goals of Course Introduction to the programming language C Learn how to program Learn ‘good’ programming practices.
Current operation (black keys) Descriptions Parameter / protection setting (blue keys) Main points to remember A B C D ? SEPAM UMIs SEPAM UMI OPERATION.
1 Introduction to Xilinx ISL8.1i Schematic Capture and VHDL 1.
1 Introduction to Xilinx ISL8.1i & 11.1 Schematic Capture 1.
Physics 343 Advanced Electronics Engineering 343 Digital Systems Electronics Courses.
Week 16 W16: December 1-5, Monday, November 17 First things First!! TURN IN HOMEWORK – Late Reading Logs Homework: Menus and ONLINE reading Log.
Microcontroller I DKT Course Schedule Lecture/Lab: –Tuesday, 10:00am – 12:00am, BKQ1 (Lect) –Thursday, 9:00 am – 11:00 pm, MKQ1 (lab) –Lecturer:
Advanced Digital Circuits ECET 146 Week 9 Professor Iskandar Hack ET 221G,
CIS111 PC Literacy Getting Started with Windows XP.
Internal Lab Registeration labreg/lab/signup.aspxhttp:// labreg/lab/signup.aspx
ENGG*4420 Real Time System Design Labs Introduction
ECE Single-Chip Microcomputers Organization Course designed by Professor Kenneth J. Hintz Instructor:Jason Bales S&T II, Room 235
Course ILT Using computers and managing files Unit objectives Shut down and restart a computer, display system information, use floppy disks, and perform.
Digital Inputs Interfacing Keypad
Choosing interaction devices: hardware components
Multimedia and Computers Introduction to Computers.
July 7, 2003 Slide 1 of 6 Automation, Robotics and Mechatronics Lab, SUNY at Buffalo Introduction To Programming Chetan Jadhav Talib Bhabharawala Seung-Kook.
8-1 Compilers Compiler A program that translates a high-level language program into machine code High-level languages provide a richer set of instructions.
Select (drop-down list) Inputs. Insert/Form/List Menu.
Welcome to the world of ARM. COURSE CONTENT Module 1: Introduction  Introduction of ARM Processors  Evolution of ARM  32 - bit Programming Module 2:
OUDT. Internal usage only 1 240x128 Display Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 1 & 2 are prompt (question) lines. Line 3 is.
Microcontrollers, Microcomputers, and Microprocessors
Alpha/Numeric Keypad Functions using AVR Preliminary Design Review Luke R. Morgan ECE /17/2008.
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
Chapter 10 Introduction to File I/O Section 10.1 Slides prepared by Rose Williams, Binghamton University Kenrick Mock, University of Alaska Anchorage.
Chapter 2 HAEDWAER.
1 Copyright © 2014 Tata Consultancy Services Limited Assessment Knowledge Center – Item Creation Training Document.
Μ [sic] design constraints wesley :: chris :: dave :: josh.
CS 100Lecture 11 Introduction to Programming n What is an algorithm? n Input and output n Sequential execution n Conditional execution Reading: Chapter.
XML Extensible Markup Language
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
The Guitar Chord Learning System Western Washington University Microcomputer-Based Design Project Calvin A. Sessions.
Excel Tutorial 8 Developing an Excel Application
Input/Output Ports and Interfacing
Chapter 1 Introduction to C Programming
COMP211 Computer Logic Design Introduction to the DE2 Board
Text File Input/Output
6.2 Fundamental Counting Principal
Lab 1. Introduction to the DE2 Board
Lecture 4. Introduction to the DE2 Board
Presentation transcript:

Homework 1, 2 First version, using arbitrary C environment, -Task 1 due : 6,7,8 September -Task 2 due : 13,14,15 September Final version, using THRSim11 C environment, due at the beginning of your lab section Tuesday, Wednesday, or Thursday, September 20-22, points 2 points

Task 1: Specify a menu system for an arbitrarily selected microcontroller application. Your menu system should consists of at least four levels have a form of an unbalanced tree have at least two items in each menu allow going UP by pressing “*”, and going HOME (to the root node) by pressing “#” Each menu should start from the menu number Each item in the menu should start from two digits first digit = menu level second digit = position in a given menu NO CLASSES, structs OK

action

0-1 Meals 0-2 Beverages Menu 0 Lunch 1-1 Sandwiches 1-2 Salads Menu 2 Meals 1-1 Hot 1-2 Cold Menu 3 Beverages Specify each item of the menu in detail

Task 2: Write a general program to display arbitrary menu of this form. General: menu system defined using data structures only; program independent of the exact shape and contents of the menu system source of input and output can be easily changed with the minimum change in the contents of the program input: keyboard, switch button, keypad output: monitor, LED 7-segment display, LCD display program portable among various C environments

Suggested Program Structure menu_desc.c menu.h description of the menu system application dependent type definitions, application independent menu_ctrl.c function(s) controlling the operation of the menus io.h independent of input/output devices application contents of the menus low-level input/output functions dependent on input/output devices main.cmain program, application dependent io.c i/o function declarations, i/o dependent

Required Reading Kernighan, Ritchie, The C Programming Language Chapter 1. A Tutorial Introduction Chapter 5. Pointers and Arrays Chapter 7. Input and Output Recommended Reading Kernighan, Ritchie, The C Programming Language Chapter 2. Types, Operators, and Expressions Chapter 3. Control Flow Chapter 4. Functions and Program Structures Chapter 6. Structures