ECSE436 Tutorial HWI Laurier Boulianne. L. Boulianne Questions.

Slides:



Advertisements
Similar presentations
Service and Dispatch Updates Presented by: Derek Kratz.
Advertisements

Assembly and Linear Assembly Evgeny Kirshin, 05/10/2011
Exceptions. Exception Types Exception Handling Vectoring Interrupts Interrupt Handlers Interrupt Priorities Interrupt applications 6-2.
ASP.NET Best Practices Dawit Wubshet Park University.
Real-Time Library: RTX
11 ASP.NET Controls II Beginning ASP.NET 4.0 in C# 2010 Chapter 6.
0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Audio.
1 Homework Reading –Review previous material on “interrupts” Machine Projects –MP4 Due today –Starting on MP5 (Due at start of Class 28) Labs –Continue.
COMP3221: Microprocessors and Embedded Systems Lecture 15: Interrupts I Lecturer: Hui Wu Session 1, 2005.
Implementing interrupt driven IO. Why use interrupt driven IO? Positive points –Allows asynchronous operation of IO events –Good use of resources –Leads.
Introduction to Operating Systems – Windows process and thread management In this lecture we will cover Threads and processes in Windows Thread priority.
Chapter 13 Embedded Systems
INPUT/OUTPUT ORGANIZATION INTERRUPTS CS147 Summer 2001 Professor: Sin-Min Lee Presented by: Jing Chen.
1 Threads Chapter 4 Reading: 4.1,4.4, Process Characteristics l Unit of resource ownership - process is allocated: n a virtual address space to.
INTERRUPTS PROGRAMMING
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
Computing IV Visual C Introduction with OpenCV Example Xinwen Fu.
Nachos Phase 1 Code -Hints and Comments
FINAL MPX DELIVERABLE Due when you schedule your interview and presentation.
1-1 Embedded Network Interface (ENI) API Concepts Shared RAM vs. FIFO modes ENI API’s.
Microsoft Project – Tutorial 4 Assigning Resources to Tasks Switch to the Gantt Chart View Then click the Assign Resources button on the Standard toolbar.
KeyStone II Interrupts. Agenda Motivation for this presentation The interrupt Scheme – SPI 0 example Configure interrupt - Hyperlink example.
Microsoft Project – Tutorial 4 Leveling Overallocations In some cases, a resource could be assigned more work in a given time period than it has working.
NT Kernel CS Spring Overview Interrupts and Exceptions: Trap Handler Interrupt Request Levels and IRT DPC’s, and APC’s System Service Dispatching.
Chapter 10 System Monitoring Issues Performance Benchmarks NT Server Services Users and Server Access Information Task Manager for Applications Ram and.
VG101 RECITATION 1 By TAs. CONTENTS Intro to SAKAI Intro to APG Intro to Online Quiz System Installation of VS2005 and possible resources Some common.
ECE 371 – Unit 9 Interrupts (continued). Example Set up Two Interrupt Request Inputs: –Port H[0] Set Interrupt Flag on “0” to “1” transition (rising edge)
Getting Started with OPC.NET OPC.NET Software Client Interface Client Base Server Base OPC Wrapper OPC COM Server Server Interface WCF Alternate.
CS 6560 Operating System Design Lecture 5: System Calls Interrupts.
Introduction to the C6713 Laurier Boulianne
1/9/ :46 1 Priority Model Real-time class Idle Above Normal Normal Below Normal Lowest Highest 31 Time-critical Dynamic classes.
Microsoft Project – Tutorial 4 Material Costs so far we have entered work resources into our project open LAN-4-3-YourInitials (or the one I have put in.
Basic Memory Management Chapter 3 C6000 Integration Workshop Copyright © 2005 Texas Instruments. All rights reserved. Technical Training Organization T.
Device Driver Concepts Digital UNIX Internals II Device Driver Concepts Chapter 13.
Lecture 12 Page 1 CS 111 Online Using Devices and Their Drivers Practical use issues Achieving good performance in driver use.
CSCI-383 Object-Oriented Programming & Design Lecture 25.
DSP/BIOS Real Time Operating system using DSP /ARM processor.
Personal Planning System Enterprise Edition The Assigning a Training Objective.
Part IVI/O Systems Chapter 13: I/O Systems. I/O Hardware a typical PCI bus structure 2.
1 Handling Errors and Exceptions Chapter 6. 2 Objectives You will be able to: 1. Use the try, catch, and finally statements to handle exceptions. 2. Raise.
Transmitter Interrupts Review of Receiver Interrupts How to Handle Transmitter Interrupts? Critical Regions Text: Tanenbaum
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
ECSE436 Tutorial Assembly and Linear Assembly Laurier Boulianne.
Process Synchronization. Concurrency Definition: Two or more processes execute concurrently when they execute different activities on different devices.
Chapter 4 DSP/BIOS. DSP/BIOS Part 1 - Introduction.
Windows 7 Ultimate To Load Click Simulation PPSX
Homework Reading Machine Projects
Essentials of UrbanCode Deploy v6.1 QQ147
CCNA 2 v3 JEOPARDY Module 2 CCNA2 v3 Module 2 K. Martin.
CS501 Advanced Computer Architecture
TOPSpro Special Topics
Computer Architecture
BVM Engineering College Electrical Engineering Department : Microprocessor and Microcontroller Interfacing Interrupts of 8051 Prepared by:
Homework Reading Machine Projects Labs
RTS: Kernel Design and Cyclic Executives
Chapter 1: Intro (excerpt)
File Handling Programming Guides.
Lecture 16 - Interfaces Professor Adams.
Moving Arrays -- 2 Completion of ideas needed for a general and complete program Final concepts needed for Final DMA.
Transmitter Interrupts
Threads Chapter 4.
Moving Arrays -- 2 Completion of ideas needed for a general and complete program Final concepts needed for Final DMA.
Process Control B.Ramamurthy 2/22/2019 B.Ramamurthy.
Polling vs. Interrupts CS2852 4/9/2019
Unix Process Control B.Ramamurthy 4/11/2019 B.Ramamurthy.
COMP3221: Microprocessors and Embedded Systems
EECE.2160 ECE Application Programming
Configuring Classification Management
Threads CSE 2431: Introduction to Operating Systems
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

ECSE436 Tutorial HWI Laurier Boulianne

L. Boulianne Questions

L. Boulianne Outline Polling vs Hardware Interrupts Interrupts Implement Interrupts on the C6713 Assignments

L. Boulianne POLLING vs HWI 2 ways to get information in and out Polling Hardware Interrupts HWI is more efficient

L. Boulianne Hardware Interrupts

L. Boulianne Hardware Interrupts

L. Boulianne Hardware Interrupts

L. Boulianne Interrupt Handler Create a project as usual, make sure to create a DSP/BIOS configuration file In order to enable interrupts, we need to do a few changes in the configuration file (.cdb).

L. Boulianne Interrupt Handler First, in the configuration manager, expand the scheduling folder Right-click on the “TSK - Task Manager” item, select “Properties”, and ensure that the Task Manager is NOT enabled

L. Boulianne Interrupt Handler Expand the “HWI - Hardware Interrupt...” item, and select any of the interrupts from HWI INT4 to 15. Right-click on it, select properties.

L. Boulianne Interrupt Handler Change the “Interrupt Source” to “MCSP 1 Receive”, and the “function” to the name of your interrupt handling routine, preceded by an underscore

L. Boulianne Interrupt Handler Still in properties, select the “Dispatcher” tab, and enable it. Leave the other values unchanged.

L. Boulianne Changes in your C code In your main function, after all other initializations are done (DSK6713 init(), AIC23 configs, etc.), write IRQ_enable(IRQ_EVT_RINT1); IRQ_globalEnable();

L. Boulianne Changes in your C code Finally, write your ISR. Do not forget to use the name that you entered in the configuration manager (minus the underscore) void myHandler(void) {...your code... }

L. Boulianne Double Buffering Remember that you need some way to process the data without it being overwritten with new data, so you need to implement some sort of double-buffering scheme B A Write Data Process Data

L. Boulianne Questions

L. Boulianne Assignments Read C6713 One-day Workshop from TI (chapter 2) (WebCT) Redo exercise given in the handout, but this time handle the I/O with interrupts instead of polling