FACULTY OF ENGINEERING LAB SHEET

Size: px
Start display at page:

Download "FACULTY OF ENGINEERING LAB SHEET"

Transcription

1 FACULTY OF ENGINEERING LAB SHEET EMBEDDED SYSTEM DESIGN ECE3196 TRIMESTER 2 (2015/2016) : Development of a simple embedded system scheduler *Note: On-the-spot evaluation may be carried out during or at the end of the experiment. Students are advised to read through this lab sheet before doing experiment. Your performance, teamwork effort, and learning attitude will count towards the marks.

2 : Development of a simple embedded system scheduler Objectives: To demonstrate the external interrupt and timer interrupt operations of an ARM Cortex M0 based microcontroller. To develop C programs for a simple embedded system scheduler using the timer interrupt Equipment: Desktop computer with USB interface USB A-to-mini B cable Nu-LB-NUC140 learning board Windows 7 and Keil Vision IDE Introduction In the experiments conducted in ESD1, we have been using this code structure: void main(void) { /* initialize task X*/ X_Init(); } While (1){ X(); /* run task X */ } The problem with this code structure is that it is very hard to execute task X at precise intervals of time; especially if we code in C language. Very often, embedded system application requires periodic execution of tasks. Examples are: The display must be refreshed the display every 40ms The keypad must be scanned every 20ms The stepper motor excitation pattern must be updated every 5ms and many more One solution would be to add a delay to simulate the periodicity of the task: void main(void) { /* initialize task X*/ X_Init(); } while(1){ X(); /* run task X */ Delay_50ms(); /* delay for 50ms */ } This is fine, if we know the precise duration of task X, and, this duration never changes. However, in real-world applications, these conditions are very hard to meet. Page 2 of 11

3 External Interrupts 1. Each GPIO pin can be set as chip interrupt source by setting correlative GPIOx_IEN bit and GPIOx_IMD. 2. There are four types of interrupt condition can be selected: low level trigger, high level trigger, falling edge trigger and rising edge trigger. 3. The following functions can be used to enable or disable the INT0 (GPB14) or INT1 (GPB15) external interrupts: DrvGPIO_EnableEINTx (TriggerType, Mode, Callback) Use DrvGPIO_EnableEINT0 for INT0 (GPB14) or DrvGPIO_EnableEINT1 for INT1 (GPB15) Description: Enable the interrupt function for external GPIO interrupt from INTx pin. TriggerType: It could be E_IO_RISING, E_IO_FALLING or E_IO_BOTH_EDGE Mode: It could be E_MODE_EDGE or E_MODE_LEVEL to control the interrupt is by edge trigger or by level trigger. Callback: It is the function pointer of the external INT0 callback function DrvGPIO_DisableEINTx () Use DrvGPIO_DisableEINT0 for INT0 (GPB14) or DrvGPIO_DisableEINT1 for INT1 (GPB15) Description: Disable the interrupt function for external GPIO interrupt from INTx pin. 4. For edge trigger condition, user can enable input signal de-bounce function to prevent unexpected interrupt happened which caused by noise. 5. To enable or disable the debouncing of a GPIO pin, the following functions can be used: DrvGPIO_EnableDebounce (Port, Pin) Description: Enable the de-bounce function of the specified GPIO input pin. Port: It could be E_GPA, E_GPB, E_GPC, Pin: Specify pin of the GPIO port. It could be 0~15. DrvGPIO_DisableDebounce (Port, Pin) Description: Disable the de-bounce function of the specified GPIO input pin. Port: It could be E_GPA, E_GPB, E_GPC, Pin: Specify pin of the GPIO port. It could be 0~15. Timer Interrupt 1. The NUC140 has a timer controller which includes four 32-bit timers, TIMER0~ TIMER3, which allows user to easily a timer control for application. 2. The timer can perform functions such as frequency measurement, event counting, interval measurement, clock generation, delay timing etc. 3. The timer can generate an interrupt signal upon timeout, or provide the current value during operation. 4. Below is a list of features of the on-chip timers: 4 sets of 32-bit timers with 24-bit up-timer and one 8-bit pre-scale counter Independent clock source for each timer Provides one-shot, periodic, toggle and continuous counting operation modes Time out period = (Period of timer clock input) * (8-bit pre-scale counter + 1) * (24-bit TCMP) Page 3 of 11

4 Maximum cycle time = (1 / T MHz) * (2 8 ) * (2 24 ), T is the period of timer clock 24-bit timer value is readable through TDR (Timer Data Register) Support event counting function to count the event from external pin Support input capture function to capture or reset counter value Timer Operation Modes 1. Timer controller provides one-shot, period, toggle and continuous counting operation modes. 2. It also provides the event counting function to count the event from external pin and input capture function to capture or reset timer counter value. Timer Initialization The following steps are required to initialize the timer. Start Enable and select timer clock source Select operating mode Select time out period Enable interrupt Enable timer module End Page 4 of 11

5 Experiment A: External Interrupt 1. The external interrupt 1 (INT1) is connected to a push-button (tact switch) on the Nu-LB- NUC140 learning board. 2. In this experiment, a program with events triggered by the external interrupt will be developed. 3. The schematic diagram for the switch connected to INT1 is shown in Figure A.1. Figure A.1: Schematic diagram of the push-button connected to INT1. 4. Launch Keil Vision and open the project Smpl_GPIO_EXTINT1. 5. Refer to Appendix A to build the project and run the codes on the learning board. 6. Exercise A: Analyze the codes and enhance/modify them so that the INT1 push-button will toggle (turning on or off) the buzzer which will beep at a frequency of 2Hz (on and off every 0.25s), each time the push-button is pushed and released. Page 5 of 11

6 Experiment B: Controlling LEDs with Timer Interrupt 1. In this experiment, a program to control the single color LEDs via timer interrupt will be developed. 2. The schematic diagram below depicts the connections for the single color LEDs. Figure B.1: Schematic diagram of single color LEDs. 3. Launch Keil Vision and open the project Smpl_Timer_LED. 4. Follow the instructions in Appendix A to build the project and run the codes on the learning board. 5. Exercise: Analyze the codes to understand how timer interrupt is initialized and utilized to control the LED. Make necessary changes to the codes so that LED5 will blink at a frequency of 2Hz, LED6 will blink at a frequency of 4Hz and LED7 will blink at a frequency of 8Hz. Is it possible to implement these operations by using only one timer interrupt? Page 6 of 11

7 Experiment C: Controlling Seven-segment Display with Timer Interrupt 1. The Nu-LB-NUC140 learning board is equipped with a four-digit seven-segment display. 2. This experiment will develop a program to control the seven-segment display using the timer interrupt. 3. The schematic diagram of the seven-segment display is shown in Figure C.1. Figure C.1: Schematic diagram of seven-segment display. 4. The seven-segment display can be controlled using the seven-segment driver (Seven_Segment.c) which provides the following functions: a. show_seven_segment (DIGIT, NUM) DIGIT : select 1st/2nd/3rd/4th 7-segment LED NUM : value of the digit (0~9) b. close_seven_segment () Turn off all four 7-segment LEDs 5. Launch Keil Vision and open the project Smpl_Timer_7seg. 6. Build the project and run the codes by following the instructions in Appendix A. 7. Exercise: Analyze the codes to understand how the seven-segment display is driven by the timer interrupt. Modify/enhance the codes to implement a 4-digit timer; the two leftmost digits are showing minutes, while the rightmost two digits are showing seconds. Once the Page 7 of 11

8 maximum time is reached (59:59), the timer will automatically reset back to 00:00. The operation is repeated until the system is reset or the power is removed. Experiment D: Controlling LCD with Timer Interrupt 1. The Nu-LB-NUC140 learning board comes with a 128x64 pixels graphical LCD. 2. In this experiment, a program to increase and display a timer on the LCD will be developed. 3. Figure D.1 below illustrates the schematic diagram for the graphical LCD. Figure D.1: Schematic diagram of the graphical LCD. 4. Launch Keil Vision and open the project Smpl_Timer_LCD. 5. Refer to the instructions on Appendix A to build the project and run the codes on the learning board. 6. Exercise: Analyze the codes to study different operating modes of the timers as well as how timer interrupt can be used to increase the time shown on the LCD. Enhance the codes to implement a timer on the LCD with the first line showing the minutes and the second line showing the seconds. The timer will start immediately when the system is power on. It will stop when INT1 push-button is pushed and released, and resume when INT1 push-button is pushed and released the next time. In addition, the buzzer will beep for 0.5s every 30 seconds. Page 8 of 11

9 Appendix A: Build and Run Codes on Nu-LB-NUC140 Learning Board Step 1 Step 2 Step 3 Page 9 of 11

10 Step 4 Step 5 Page 10 of 11

11 Step 6 Step 7 Page 11 of 11

EIE/ENE 334 Microprocessors

EIE/ENE 334 Microprocessors EIE/ENE 334 Microprocessors Lecture 12: NuMicro NUC140 Week #12 : Dejwoot KHAWPARISUTH Adapted from http://webstaff.kmutt.ac.th/~dejwoot.kha/ NuMicro NUC140: Technical Ref. EIE/ENE 334 ARM Cortex-M0 Page

More information

FACULTY OF ENGINEERING LAB SHEET

FACULTY OF ENGINEERING LAB SHEET FACULTY OF ENGINEERING LAB SHEET MICROCONTROLLER AND MICROPROCESSOR SYSTEMS ECE2216 TRIMESTER 1 (2017/2018) MP2: Construction and programming of a basic electronic piano *Note: On-the-spot evaluation may

More information

Nano102/112 Series Errata Sheet

Nano102/112 Series Errata Sheet Nano102/112 Series Errata Sheet Errata Sheet for 32-bit NuMicro Family Document Information Abstract Apply to This errata sheet describes the functional problem known at the release date of this document.

More information

Modules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN

Modules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN Modules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN 1 st Week Introduction to Embedded System a) Tool Hardware tool and Software tool b) Embedded designing, course study c) Board

More information

Getting Started in C Programming with Keil MDK-ARM Version 5

Getting Started in C Programming with Keil MDK-ARM Version 5 Getting Started in C Programming with Keil MDK-ARM Version 5 Reason for Revision This document was revised for Keil MDK-ARM v5.14 on February 18, 2015. This document was revised for MSP432 LaunchPad on

More information

Getting Started in C Programming with Keil MDK-ARM Version 5

Getting Started in C Programming with Keil MDK-ARM Version 5 Getting Started in C Programming with Keil MDK-ARM Version 5 Reason for Revision This document was revised for Keil MDK-ARM v5.14 on February 18, 2015. This document was revised for MSP432 LaunchPad on

More information

HOURS SYLLABUS

HOURS SYLLABUS 8051 40 HOURS SYLUS Introduction of 8051 Pin configuration of 8051, Register structure of 8051. Hardware and software part of Embedded Systems, s in 8051 Assembly level programming, Embedded C programming

More information

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

SANKALCHAND 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 information

ARM Microcontroller Interfacing - Warwick A. Smith ISBN Elektor. Table of Contents

ARM Microcontroller Interfacing - Warwick A. Smith ISBN Elektor. Table of Contents Table of Contents Introduction...6 Target Audience...6 Prerequisites...7 Introduction to the ARM Microcontrollers used in this Book...7 AT91SAM7S256 basic features:...7 Hardware Requirements...9 Summary

More information

Getting Started in C Programming with Keil MDK-ARM Version 5

Getting Started in C Programming with Keil MDK-ARM Version 5 Getting Started in C Programming with Keil MDK-ARM Version 5 Reason for Revision This document was revised for Keil MDK-ARM v5.14 on February 18, 2015. This document was revised for MSP432 LaunchPad on

More information

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Lab Test III

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Lab Test III Department of Electrical and Computing Engineering UNIVERSITY OF CONNECTICUT ECE 3411 Microprocessor Application Lab: Fall 2015 Lab Test III There are 2 longer programming problems in this test. There

More information

Advanced Embedded Systems

Advanced Embedded Systems Advanced Embedded Systems Practical & Professional Training on Advanced Embedded System Course Objectives : 1. To provide professional and industrial standard training which will help the students to get

More information

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization 8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization between two devices. So it is very useful chip. The

More information

Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas

Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas Physics 364 Arduino Lab 1 Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas Vithayathil/Kroll Introduction Last revised: 2014-11-12 This lab introduces you to an electronic development

More information

Fujitsu Microelectronics Europe Application Note MCU-AN E-V10 F²MC-FR FAMILY 32-BIT MICROCONTROLLER MB91460 RELOAD TIMER APPLICATION NOTE

Fujitsu Microelectronics Europe Application Note MCU-AN E-V10 F²MC-FR FAMILY 32-BIT MICROCONTROLLER MB91460 RELOAD TIMER APPLICATION NOTE Fujitsu Microelectronics Europe Application Note MCU-AN-300060-E-V10 F²MC-FR FAMILY 32-BIT MICROCONTROLLER MB91460 RELOAD TIMER APPLICATION NOTE Revision History Revision History Date 2008-03-26 V1.0,

More information

General Purpose Programmable Peripheral Devices. Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

General Purpose Programmable Peripheral Devices. Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar Chapter 15 General Purpose Programmable Peripheral Devices by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar Microprocessor & Interfacing (140701) Rahul Patel 1

More information

Microcontroller & Interfacing

Microcontroller & Interfacing Course Title Course Code Microcontroller & Interfacing EC406 Lecture : 3 Course Credit Practical : 1 Tutorial : 0 Total : 4 Course Objective At the end of the course the students will be able to Understand

More information

NUC123xxxAN Series Errata Sheet. Errata Sheet for 32-bit NuMicro Family Rev May 19, 2016

NUC123xxxAN Series Errata Sheet. Errata Sheet for 32-bit NuMicro Family Rev May 19, 2016 NUC123xxxAN Series Errata Sheet Errata Sheet for 32-bit NuMicro Family Rev. 1.04 May 19, 2016 Document Information Abstract Apply to This errata sheet describes the functional problems known at the release

More information

Rear Distance Detection with Ultrasonic Sensors Project Report

Rear Distance Detection with Ultrasonic Sensors Project Report Rear Distance Detection with Ultrasonic Sensors Project Report 11.29.2017 Group #6 Farnaz Behnia Kimia Zamiri Azar Osaze Shears ECE 511: Microprocessors Fall 2017 1 Table of Contents 1. Abstract 3 2. Motivation

More information

WIRELESS EMBEDDED SYSTEM DESIGN

WIRELESS EMBEDDED SYSTEM DESIGN Modules For Six Weeks Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN 1 st Week 1 st Day Introduction to Embedded System a) Tool Hardware tool and Software tool Introduction b) Embedded designing,

More information

Experiment 3. Interrupts. Hazem Selmi, Ahmad Khayyat

Experiment 3. Interrupts. Hazem Selmi, Ahmad Khayyat Experiment 3 Interrupts Hazem Selmi, Ahmad Khayyat Version 162, 24 February 2017 Table of Contents 1. Objectives........................................................................................

More information

Marten van Dijk Department of Electrical & Computer Engineering University of Connecticut

Marten van Dijk Department of Electrical & Computer Engineering University of Connecticut ECE3411 Fall 2016 Lecture 4b. Review Session Marten van Dijk Department of Electrical & Computer Engineering University of Connecticut Email: marten.van_dijk@uconn.edu Copied from Lecture 4b, ECE3411 Fall

More information

8051 Microcontroller Interrupts

8051 Microcontroller Interrupts 8051 Microcontroller Interrupts There are five interrupt sources for the 8051, which means that they can recognize 5 different events that can interrupt regular program execution. Each interrupt can be

More information

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Quiz IV

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Quiz IV Department of Electrical and Computing Engineering UNIVERSITY OF CONNECTICUT ECE 3411 Microprocessor Application Lab: Fall 2015 Quiz IV There is 1 questions in this quiz. There are 15 pages in this quiz

More information

Topics. Interfacing chips

Topics. Interfacing chips 8086 Interfacing ICs 2 Topics Interfacing chips Programmable Communication Interface PCI (8251) Programmable Interval Timer (8253) Programmable Peripheral Interfacing - PPI (8255) Programmable DMA controller

More information

Embedded Technosolutions

Embedded Technosolutions We Are India s one of the Leading Trainings & Jobs Providing Organization Embedded Technosolutions is a Professional & Corporate Training Institute & a Company which Working for Indian MNCs & Medium/Small

More information

EMBEDDED SYSTEMS: Jonathan W. Valvano INTRODUCTION TO THE MSP432 MICROCONTROLLER. Volume 1 First Edition June 2015

EMBEDDED SYSTEMS: Jonathan W. Valvano INTRODUCTION TO THE MSP432 MICROCONTROLLER. Volume 1 First Edition June 2015 EMBEDDED SYSTEMS: INTRODUCTION TO THE MSP432 MICROCONTROLLER Volume 1 First Edition June 2015 Jonathan W. Valvano ii Jonathan Valvano First edition 3 rd printing June 2015 The true engineering experience

More information

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Quiz III

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Quiz III Department of Electrical and Computing Engineering UNIVERSITY OF CONNECTICUT ECE 3411 Microprocessor Application Lab: Fall 2015 Quiz III There are 5 questions in this quiz. There are 11 pages in this quiz

More information

Laboratory Exercise 4

Laboratory Exercise 4 Laboratory Exercise Input/Output in an Embedded System The purpose of this exercise is to investigate the use of devices that provide input and output capabilities for a processor. There are two basic

More information

MEDIS Module 2. Microcontroller based systems for controlling industrial processes. Chapter 4: Timer and interrupts. M. Seyfarth, Version 0.

MEDIS Module 2. Microcontroller based systems for controlling industrial processes. Chapter 4: Timer and interrupts. M. Seyfarth, Version 0. MEDIS Module 2 Microcontroller based systems for controlling industrial processes Chapter 4: Timer and interrupts M. Seyfarth, Version 0.1 Steuerungstechnik 1: Speicherprogrammierbare Steuerungstechnik

More information

Diploma in Embedded Systems

Diploma in Embedded Systems Diploma in Embedded Systems Duration: 5 Months[5 days a week,3 hours a day, Total 300 hours] Module 1: 8051 Microcontroller in Assemble Language Characteristics of Embedded System Overview of 8051 Family

More information

USB-4303 Specifications

USB-4303 Specifications Specifications Document Revision 1.0, February, 2010 Copyright 2010, Measurement Computing Corporation Typical for 25 C unless otherwise specified. Specifications in italic text are guaranteed by design.

More information

ELEC 3040/3050 Lab 5. Matrix Keypad Interface Using Parallel I/O

ELEC 3040/3050 Lab 5. Matrix Keypad Interface Using Parallel I/O ELEC 3040/3050 Lab 5 Matrix Keypad Interface Using Parallel I/O Goals of this lab exercise Control a real device with the microcontroller Coordinate parallel I/O ports to control and access a device Implement

More information

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

TEVATRON 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 information

ECE 362 Experiment 4: Interrupts

ECE 362 Experiment 4: Interrupts ECE 362 Experiment 4: Interrupts 1.0 Introduction Microprocessors consistently follow a straight sequence of instructions, and you have likely only worked with this kind of programming until now. In this

More information

Timer 32. Last updated 8/7/18

Timer 32. Last updated 8/7/18 Last updated 8/7/18 Basic Timer Function Delay Counter Load a value into a counter register The counter counts Down to zero (count down timer) Up from zero (count up timer) An action is triggered when

More information

EMBEDDED SYSTEMS COURSE CURRICULUM

EMBEDDED 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 information

University of Massachusetts Amherst Computer Systems Lab 2 (ECE 354) Spring Lab 1: Using Nios 2 processor for code execution on FPGA

University of Massachusetts Amherst Computer Systems Lab 2 (ECE 354) Spring Lab 1: Using Nios 2 processor for code execution on FPGA University of Massachusetts Amherst Computer Systems Lab 2 (ECE 354) Spring 2007 Lab 1: Using Nios 2 processor for code execution on FPGA Objectives: After the completion of this lab: 1. You will understand

More information

Academic Course Description

Academic Course Description BEC502 MICROPROCESSOR AND MICROCONTROLLER Course (catalog) description Academic Course Description BHARATH UNIVERSITY Faculty of Engineering and Technology Department of Electronics and Communication Engineering

More information

BASICS OF THE RENESAS SYNERGY PLATFORM

BASICS OF THE RENESAS SYNERGY PLATFORM BASICS OF THE RENESAS SYNERGY PLATFORM TM Richard Oed 2017.12 02 CHAPTER 9 INCLUDING A REAL-TIME OPERATING SYSTEM CONTENTS 9 INCLUDING A REAL-TIME OPERATING SYSTEM 03 9.1 Threads, Semaphores and Queues

More information

Microprocessors B (17.384) Spring Lecture Outline

Microprocessors B (17.384) Spring Lecture Outline Microprocessors B (17.384) Spring 2013 Lecture Outline Class # 04 February 12, 2013 Dohn Bowden 1 Today s Lecture Administrative Microcontroller Hardware and/or Interface Programming/Software Lab Homework

More information

ERRATA SHEET INTEGRATED CIRCUITS. Date: July 9, 2007 Document Release: Version 1.6 Device Affected: LPC2148

ERRATA SHEET INTEGRATED CIRCUITS. Date: July 9, 2007 Document Release: Version 1.6 Device Affected: LPC2148 INTEGRATED CIRCUITS ERRATA SHEET Date: July 9, 2007 Document Release: Version 1.6 Device Affected: LPC2148 This errata sheet describes both the functional deviations and any deviations from the electrical

More information

ERRATA SHEET INTEGRATED CIRCUITS. Date: July 7, 2008 Document Release: Version 1.8 Device Affected: LPC2148

ERRATA SHEET INTEGRATED CIRCUITS. Date: July 7, 2008 Document Release: Version 1.8 Device Affected: LPC2148 INTEGRATED CIRCUITS ERRATA SHEET Date: July 7, 2008 Document Release: Version 1.8 Device Affected: LPC2148 This errata sheet describes both the functional problems and any deviations from the electrical

More information

Measuring Interrupt Latency

Measuring Interrupt Latency NXP Semiconductors Document Number: AN12078 Application Note Rev. 0, 10/2017 Measuring Interrupt Latency 1. Introduction The term interrupt latency refers to the delay between the start of an Interrupt

More information

ELEC 3040/3050 Lab 5. Matrix Keypad Interface Using Parallel I/O

ELEC 3040/3050 Lab 5. Matrix Keypad Interface Using Parallel I/O ELEC 3040/3050 Lab 5 Matrix Keypad Interface Using Parallel I/O Goals of this lab exercise Control a real device with the microcontroller Coordinate parallel I/O ports to control and access a device Implement

More information

Embedded and Ambient Systems Laboratory

Embedded and Ambient Systems Laboratory Budapest University of Technology and Economics Faculty of Electrical Engineering and Informatics Department of Automation and Applied Informatics Embedded and control systems specialization Embedded and

More information

University of Massachusetts Amherst Computer Systems Lab 1 (ECE 354) LAB 1 Reference Manual

University of Massachusetts Amherst Computer Systems Lab 1 (ECE 354) LAB 1 Reference Manual University of Massachusetts Amherst Computer Systems Lab 1 (ECE 354) LAB 1 Reference Manual Lab 1: Using NIOS II processor for code execution on FPGA Objectives: 1. Understand the typical design flow in

More information

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Lab Test III

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Lab Test III Department of Electrical and Computing Engineering UNIVERSITY OF CONNECTICUT ECE 3411 Microprocessor Application Lab: Fall 2015 Lab Test III There are 2 longer programming problems in this test. There

More information

ECE-6170 Embedded Systems Laboratory Exercise 3

ECE-6170 Embedded Systems Laboratory Exercise 3 ECE-6170 Embedded Systems Laboratory Exercise 3 The purpose of this exercise is to learn how to connect simple input and output devices to an FPGA chip and use the Nios II processor to interface with parallel

More information

ARM Microcontroller Interfacing Hardware and Software

ARM Microcontroller Interfacing Hardware and Software ARM Microcontroller Interfacing Hardware and Software Warwick A. Smith Elektor International Media BV p.o box 11 6114 ZG Susteren The Netherlands Table of Contents Introduction 6 Target Audience 6 Prerequisites

More information

www.vidyarthiplus.com www.vidyarthiplus.com www.vidyarthiplus.com www.vidyarthiplus.com www.vidyarthiplus.com Time : Three hours Reg. No. : B.E./B.Tech. DEGREE EXAMINATION, APRIL/MAY 2011 Sixth

More information

Embedded Systems Lab 2 - Introduction to interrupts

Embedded Systems Lab 2 - Introduction to interrupts Embedded Systems Lab - Introduction to interrupts You are asked to prepare the first part before the lab. Lab duration: 5min A laptop with a working installation of MPLABX IDE and your toolbox are required.

More information

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Comp 541 Digital Logic and Computer Design Prof. Montek Singh Fall 2016 Lab #6: A Multidigit Display and a Stop Watch Issued Wed 9/28/16; Due Fri 10/7/16

More information

Embedded Systems. Embedded Programmer. Duration: 2 weeks Rs Language and Tools. Embedded System Introduction. Embedded C programming

Embedded Systems. Embedded Programmer. Duration: 2 weeks Rs Language and Tools. Embedded System Introduction. Embedded C programming Embedded Systems Embedded Programmer Duration: 2 weeks Rs.7000 Embedded System Introduction ü PLDs ü Microprocessors ü Signal processing and Data processing ü Micro controllers ü 8051 Microcontroller ü

More information

COURSE NAME : ELECTRICAL ENGINEERING GROUP COURSE CODE : EE/EP SEMESTER : FIFTH SUBJECT TITLE : Microcontroller and Applications (Elective I for EP) SUBJECT CODE : Teaching and Examination Scheme: Teaching

More information

A 3-SPEED STEPPER MOTOR

A 3-SPEED STEPPER MOTOR ECE 36 Projects; Stepper Motor 1 of 5 A 3-SPEED STEPPER MOTOR 1. Design a microprocessing system to implement a 3-speed stepper motor. Your design is constrained to use the parts shown in Fig. 1 and described

More information

Faculty of Engineering and Information Technology Embedded Software. Lab 3 Interrupts and Timers

Faculty of Engineering and Information Technology Embedded Software. Lab 3 Interrupts and Timers Faculty of Engineering and Information Technology Subject: 48434 Embedded Software Assessment Number: 3 Assessment Title: Lab 3 Interrupts and Timers Tutorial Group: Students Name(s) and Number(s) Student

More information

BASICS OF THE RENESAS SYNERGY TM

BASICS OF THE RENESAS SYNERGY TM BASICS OF THE RENESAS SYNERGY TM PLATFORM Richard Oed 2018.11 02 CHAPTER 9 INCLUDING A REAL-TIME OPERATING SYSTEM CONTENTS 9 INCLUDING A REAL-TIME OPERATING SYSTEM 03 9.1 Threads, Semaphores and Queues

More information

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc)

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc) Software Development & Education Center Embedded Systems (Design & Development with Various µc) Module 1: Embedded C Programming INTRODUCTION TO EMBEDDED SYSTEM History & need of Embedded System Basic

More information

Embedded Systems and Software

Embedded Systems and Software Embedded Systems and Software Lecture 11 Interrupts Interrupts Slide 1 Interrupts One way to think of interrupts is that they are hardwaregenerated functions calls Internal Hardware When timer rolls over,

More information

CPE 323 Introduction to Embedded Computer Systems: MSP430 System Architecture An Overview

CPE 323 Introduction to Embedded Computer Systems: MSP430 System Architecture An Overview CPE 323 Introduction to Embedded Computer Systems: MSP430 System Architecture An Overview Aleksandar Milenkovic Electrical and Computer Engineering The University of Alabama in Huntsville milenka@ece.uah.edu

More information

By the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab

By the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab By the end of Class Pseudo-code for Lab 1-2 due as part of prelab Homework #5 on website due before next class Outline Introduce Lab 1-2 Counting Timers on C8051 Interrupts Laboratory Worksheet #05 Copy

More information

Final Exam Study Guide

Final Exam Study Guide Final Exam Study Guide Part 1 Closed book, no crib sheet Part 2 Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator, devices with wireless communication).

More information

DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER UNIT-1 PART-A (2 MARKS)

DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER UNIT-1 PART-A (2 MARKS) DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER CODE: EC6504 UNIT-1 1. How many memory locations are available in 8086 microprocessor? 2. What are the flags available in 8086

More information

ECE 372 Microcontroller Design

ECE 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 information

Embedded Systems, Android & Robotics INTERNSHIP CONTENT

Embedded Systems, Android & Robotics INTERNSHIP CONTENT Embedded Systems, Android & Robotics INTERNSHIP CONTENT CONTACT: 0120-4565405, 91-8130513508, 91-9999086300, 91-9953109602, E-MAIL: training@tevatrontech.com Tevatron Technologies Private Limited ( www.tevatrontech.com)

More information

EFM8 Universal Bee Family EFM8UB1 Errata

EFM8 Universal Bee Family EFM8UB1 Errata EFM8 Universal Bee Family EFM8UB1 Errata This document contains information on the errata of revision C of EFM8UB1. For errata on older revisions, please refer to the errata history for the device. The

More information

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Quiz II

UNIVERSITY 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 information

SquareWear Programming Reference 1.0 Oct 10, 2012

SquareWear Programming Reference 1.0 Oct 10, 2012 Content: 1. Overview 2. Basic Data Types 3. Pin Functions 4. main() and initsquarewear() 5. Digital Input/Output 6. Analog Input/PWM Output 7. Timing, Delay, Reset, and Sleep 8. USB Serial Functions 9.

More information

ASSOCIATED ELECTRONICS RESEARCH FOUNDATION C-53 PHASE-II, NOIDA

ASSOCIATED ELECTRONICS RESEARCH FOUNDATION C-53 PHASE-II, NOIDA ASSOCIATED ELECTRONICS RESEARCH FOUNDATION C-53 PHASE-II, NOIDA SIX-MONTHS TRAINING PROGRAMME ON EMBEDDED SYSTEM, VLSI MAT LAB AND PCB DESIGN: Course syllabus: Theory: Introduction to C programming. More

More information

Description of the Simulator

Description of the Simulator Description of the Simulator The simulator includes a small sub-set of the full instruction set normally found with this style of processor. It includes advanced instructions such as CALL, RET, INT and

More information

P89V51RD2 Development Board May 2010

P89V51RD2 Development Board May 2010 P89V51RD2 Development Board May 2010 NEX Robotics Pvt. Ltd. 1 P89V51RD2 Development Board Introduction: P89V51RD2 Development Board P89V51RD2 Development Board is a low cost development board which have

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY GUJARAT TECHNOLOGICAL UNIVERSITY BRANCH NAME: INSTRUMENTATION & CONTROL ENGINEERING (17) SUBJECT NAME: EMBEDDED SYSTEM DESIGN SUBJECT CODE: 2171711 B.E. 7 th SEMESTER Type of course: Core Engineering Prerequisite:

More information

CSCE374 Robotics Fall 2013 Notes on the irobot Create

CSCE374 Robotics Fall 2013 Notes on the irobot Create CSCE374 Robotics Fall 2013 Notes on the irobot Create This document contains some details on how to use irobot Create robots. 1 Important Documents These notes are intended to help you get started, but

More information

ECGR 4101/5101, Fall 2016: Lab 1 First Embedded Systems Project Learning Objectives:

ECGR 4101/5101, Fall 2016: Lab 1 First Embedded Systems Project Learning Objectives: ECGR 4101/5101, Fall 2016: Lab 1 First Embedded Systems Project Learning Objectives: This lab will introduce basic embedded systems programming concepts by familiarizing the user with an embedded programming

More information

Bachelor of Engineering in Computer and Electronic Engineering

Bachelor of Engineering in Computer and Electronic Engineering Bachelor of Engineering in Computer and Electronic Engineering Computer Engineering 1 Year 2 Semester 3 Autumn 08 Niall O Keeffe Instructions to Candidates: - 2 hours duration Answer 4 out of 6 questions.

More information

AVR Board Setup General Purpose Digital Output

AVR Board Setup General Purpose Digital Output ECE3411 Fall 2016 Lab 2a. AVR Board Setup General Purpose Digital Output Marten van Dijk, Chenglu Jin Department of Electrical & Computer Engineering University of Connecticut Email: {marten.van_dijk,

More information

MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI. Department of Electronics and Communication Engineering COURSE INSTRUCTION MANUAL

MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI. Department of Electronics and Communication Engineering COURSE INSTRUCTION MANUAL MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI Vision Mission Envisioning a world Lead by our Engineers, holding a Beacon of Hope and Confidence for Generations to come. To Produce Competent, Disciplined

More information

Introduction to Embedded Systems

Introduction to Embedded Systems Stefan Kowalewski, 4. November 25 Introduction to Embedded Systems Part 2: Microcontrollers. Basics 2. Structure/elements 3. Digital I/O 4. Interrupts 5. Timers/Counters Introduction to Embedded Systems

More information

Microcontrollers and Interfacing week 8 exercises

Microcontrollers and Interfacing week 8 exercises 2 HARDWARE DEBOUNCING Microcontrollers and Interfacing week 8 exercises 1 More digital input When using a switch for digital input we always need a pull-up resistor. For convenience, the microcontroller

More information

Cypress FM4 Tools Set-up with Keil 5.x

Cypress FM4 Tools Set-up with Keil 5.x Introduction Mark Wickert, 9/4/16, Revised 1/28/19 This document will describe the details of setting up your own system with the ARM IDE Keil, and software drivers that support the Cypress FM4 board.

More information

Homework 9: Software Design Considerations

Homework 9: Software Design Considerations Homework 9: Software Design Considerations Team Code Name: Mind Readers Group No. 2 Team Member Completing This Homework: Richard Schuman E-mail Address of Team Member: _rschuman_ @ purdue.edu Evaluation:

More information

Interrupts in Zynq Systems

Interrupts in Zynq Systems Interrupts in Zynq Systems C r i s t i a n S i s t e r n a U n i v e r s i d a d N a c i o n a l d e S a n J u a n A r g e n t i n a Exception / Interrupt Special condition that requires a processor's

More information

Designing a USB Keyboard with the Cypress Semiconductor CY7C63413 USB Microcontroller

Designing a USB Keyboard with the Cypress Semiconductor CY7C63413 USB Microcontroller fax id: 3452 Designing a USB Keyboard with the Cypress Semiconductor CY7C6343 USB Microcontroller Introduction The Universal Serial Bus (USB) is an industry standard serial interface between a computer

More information

AN719 PRECISION32 IDE AND APPBUILDER DETAILED TUTORIAL AND WALKTHROUGH. 1. Introduction. Figure 1. Precision32 IDE and AppBuilder Walkthrough Overview

AN719 PRECISION32 IDE AND APPBUILDER DETAILED TUTORIAL AND WALKTHROUGH. 1. Introduction. Figure 1. Precision32 IDE and AppBuilder Walkthrough Overview PRECISION32 IDE AND APPBUILDER DETAILED TUTORIAL AND WALKTHROUGH 1. Introduction This document provides a step-by-step tutorial walkthrough for the Precision32 Development Tools (IDE and AppBuilder) using

More information

1.0 The System Architecture and Design Features

1.0 The System Architecture and Design Features 1.0 The System Architecture and Design Features Figure 1. System Architecture The overall guiding design philosophy behind the Data Capture and Logging System Architecture is to have a clean design that

More information

LAB1. Get familiar with Tools and Environment

LAB1. Get familiar with Tools and Environment LAB1 Get familiar with Tools and Environment Outline Intro to ARMmite Pro development board Intro to LPC2103 microcontroller Cross development environment and tools Program the broad in C: light the LED

More information

Embedded Systems Laboratory Manual ARM 9 TDMI

Embedded Systems Laboratory Manual ARM 9 TDMI Embedded Systems Laboratory Manual ARM 9 TDMI 1. Laboratory Rules a) Laboratory assessment: Presence during the laboratory is mandatory. One time unexcused absence is allowed within the semester. Students

More information

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

Goal: We want to build an autonomous vehicle (robot) Goal: We want to build an autonomous vehicle (robot) This means it will have to think for itself, its going to need a brain Our robot s brain will be a tiny computer called a microcontroller Specifically

More information

ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Primer Board... 3 Buzzer... 3 Interfacing Buzzer... 4 Interfacing Buzzer with LPC2148... 5 Pin Assignment with LPC2148...

More information

ECE 2036 Lab 4 Setup and Test mbed I/O Hardware Check-Off Deadline: Thursday, March 17, Name:

ECE 2036 Lab 4 Setup and Test mbed I/O Hardware Check-Off Deadline: Thursday, March 17, Name: ECE 2036 Lab 4 Setup and Test mbed I/O Hardware Check-Off Deadline: Thursday, March 17, 2016 Name: Item Part 1. (40%) Color LCD Hello World Part 2. (10%) Timer display on Color LCD Part 3. (25%) Temperature

More information

ECE 511 Project Group 11: MP3 Boombox 12/03/2013. Carlos R Araujo Divya Chinthalapuri Leegia S Jacob Brian D Jarvis Shawn Wilkinson

ECE 511 Project Group 11: MP3 Boombox 12/03/2013. Carlos R Araujo Divya Chinthalapuri Leegia S Jacob Brian D Jarvis Shawn Wilkinson ECE 511 Project Group 11: MP3 Boombox 12/03/2013 Carlos R Araujo Divya Chinthalapuri Leegia S Jacob Brian D Jarvis Shawn Wilkinson Motivation A toy in the entertainment genre: With the use of a single

More information

ECE 362 Lab Verification / Evaluation Form Experiment 3

ECE 362 Lab Verification / Evaluation Form Experiment 3 ECE 362 Lab Verification / Evaluation Form Experiment 3 Evaluation: IMPORTANT! You must complete this experiment during your scheduled lab perior. All work for this experiment must be demonstrated and

More information

Resource 2 Embedded computer and development environment

Resource 2 Embedded computer and development environment Resource 2 Embedded computer and development environment subsystem The development system is a powerful and convenient tool for embedded computing applications. As shown below, the development system consists

More information

Application Note: AN00144 xcore-xa - xcore ARM Boot Library

Application Note: AN00144 xcore-xa - xcore ARM Boot Library Application Note: AN00144 xcore-xa - xcore ARM Boot Library This application note shows how to create a simple application which targets the XMOS xcore-xa device and demonstrates how to build and run this

More information

F28335 ControlCard Lab1

F28335 ControlCard Lab1 F28335 ControlCard Lab1 Toggle LED LD2 (GPIO31) and LD3 (GPIO34) 1. Project Dependencies The project expects the following support files: Support files of controlsuite installed in: C:\TI\controlSUITE\device_support\f2833x\v132

More information

Start a New Project with Keil MDK-ARM Version 5 and ST Micro Nucleo-F446RE

Start a New Project with Keil MDK-ARM Version 5 and ST Micro Nucleo-F446RE Start a New Project with Keil MDK-ARM Version 5 and ST Micro Nucleo-F446RE This tutorial is intended for starting a new project to develop software with ST Micro Nucleo-F446RE board (with STM32F446RE MCU)

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 ELECTRONICS AND COMMUNICATION ENGINEERING TUTORIAL QUESTION BANK Name : EMBEDDED C Code : BES001 Class : I - M. Tech Branch

More information

Software debouncing of buttons

Software debouncing of buttons Software debouncing of buttons snigelen February 5, 2015 1 Introduction Connecting a button as an input to a micro-controller is a relatively easy task, but there are some problems. The main problem is

More information

Edge Power International (HK) Ltd. Product Specification

Edge Power International (HK) Ltd. Product Specification Edge Power International (HK) Ltd. EPM-1000 GSM Module Specification Product Specification Revision history Revision Date Description V1.0 28/05/2012 Original Date: 5/29/2012 1 TABLE OF CONTENTS1.... INTRODUCTION

More information