Interrupts CML-12C32 Lecture L4.2.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

7-Segment Displays Lecture L6.1 Section 6.3. Turning on an LED.
External Interrupt Module MTT EXTERNAL INTERRUPT REQUEST MODULE (IRQ)
I/O Unit.
EET 2261 Unit 8 Seven-Segment Displays; S19 Records; System Clocks
Set 20 Interrupts. INTERRUPTS The Pentium has a mechanism whereby external devices can interrupt it. Devices such as the keyboard, the monitor, hard disks.
68HC11 Polling and Interrupts
EET 2261 Unit 9 Interrupts  Read Almy, Chapters 17 – 19.  Homework #9 and Lab #9 due next week.  Quiz next week.
ECE 372 – Microcontroller Design Parallel IO Ports - Interrupts
Programming Examples Lecture L2.2. References S12CPUV2 Reference Manual S12CPUV2.pdf(in.zip file) CML-12C32 Manual Development Board for Motorola MC9S12C32.
Startup Code Lecture L5.2. Reference MC9S12C Family Device User Guide V S12C128DGV1.pdf.
Interrupts Chapter 6. Interrupts 68HC12 Interrupts 68HC11 Interrupts Interrupt Vector Jump Tables Writing WHYP Interrupt Service Routines Real-Time Interrupts.
Subroutines and Stacks Lecture L3.1. Subroutine and Stacks The System Stack Subroutines A Data Stack.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
EET 2261 Unit 2 HCS12 Architecture
Introduction to Computer Engineering by Richard E. Haskell Interrupts Module M17.3 Sections 11.3, 14.1.
The MC9S12C Family of Microcontrollers Lecture L1.3.
ECE 265 – LECTURE 12 The Hardware Interface 8/22/ ECE265.
Lab 1 – Assembly Language and Interfacing Start date: Week 3 Due date: Week 4 1.
DAT2343 Accessing Services Through Interrupts © Alan T. Pinck / Algonquin College; 2003.
ME4447/6405 The George W. Woodruff School of Mechanical Engineering ME4447/6405 Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics.
M Semiconductor Products Sector Computer Operating Properly Module Detail Slide #1 of 7 Tutorial Introduction PURPOSE -To explain how to configure and.
ME 4447/6405 Interrupts and Resets Suzanne Price Scott Gilliliand Greg Graf.
ELE22MIC Lecture 15 Applications of Parallel Input Output (I/O)
Number Conversions Lecture L3.4. Number Conversions ASCII Number String to Binary Conversion Binary Number to ASCII String Conversion.
CHAPTER 6 INTERRUPTS AND THE 8259 CHIP. What happens on interrupt? Micro automatically saves (on stack) the FR (flag register), IP (instruction pointer),
Operating Systems Lecture November 2015© Copyright Virtual University of Pakistan 2 Agenda for Today Review of previous lecture Hardware (I/O, memory,
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
ELE22MIC Lecture 8 ASll Examples –16 Bit Counters –Buffalo Jump Table Interrupt processing (IRQ/RTI) Stack Frame & Base Pointer Wired OR.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Keypad Lecture L4.6. Port Integration Module PIM_9C32 Block Guide V01.06 Reference: S12C32PIMV1.pdf.
ECE 265 – LECTURE 5 The M68HC11 Basic Instruction Set 12/8/ ECE265.
1 Stacks, Subroutines, I/O Routines Today: First Hour: Stacks, Subroutines –Section 3.9,3.10 of Huang’s Textbook –In-class Activity #1 Second Hour: I/O.
The Serial Communication Interface (SCI) MC9S12-C32
Real Time Interrupts Section Real-Time Interrupt (RTI) Most operating systems (OS) require an interrupt every T seconds by the RTI RTI interrupts.
Parallel I/O. Introduction This section focuses on performing parallel input and output operations on the 68HC11 3 operation types – Simple, blind data.
OS part I, , Part I Computer System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
MICRO-CONTROLLER MOTOROLA HCS12 Interrupts Mechatronics Department Faculty of Engineering Ain Shams University.
Resets & Interrupts MTT CPU08 Core Motorola CPU08 RESETS & INTERRUPTS.
© 2010 Kettering University, All rights reserved..
Embedded Computer - Definition When a microcomputer is part of a larger product, it is said to be an embedded computer. The embedded computer retrieves.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
HCS12 Technical Training Module 15 – Break Module Slide 1 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
INTV1 & MMCV4 By: Prof. Mahendra B. Salunke Asst. Prof., Department of Computer Engg., SITS, Pune-41 URL: microsig.webs.com.
ELE22MIC Lecture 17 Writing 68HC11 software 68HC11 Main Timer System –Output Compare –What is different about TOC1?
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Timers Lecture L4.4. Reference TIM_16B8C Block User Guide S12TIM16B8CV1.pdf.
ELE22MIC Lecture 6 Continuation of Lecture 5 Instruction Set Overview, Part 4 –HC-COM - Lab notes –Stack Pointer, Push, Pull Call/return Data –Conditional.
EET 2261 Unit 6 The Stack; Subroutines
HCS12 Exceptions Maskable Interrupts
ELE22MIC Lecture 18 Writing 68HC11 software 68HC11 Main Timer System
Example 14 Real-time Interrupts
68HC11 Interrupts & Resets.
ECE 3430 – Intro to Microcomputer Systems
Mon. Oct 2 Announcements Quiz Postponed to Wednesday – still only on 2.a + 2.b Video lecture for 2.a posted Lab 6 experiment extension You must come to.
Anton Burtsev February, 2017
ELE22MIC Lecture 18 Writing 68HC11 software 68HC11 Main Timer System
ECE 3430 – Intro to Microcomputer Systems
The CPU12 Microprocessor Core
Graded Quiz #4 Sept. 25, 2017 Clicker [AB]
EET 2261 Unit 9 Interrupts Read Almy, Chapters 17 – 19.
Accessing Services Through Interrupts
Operating Systems Lecture 3.
Interrupt-Driven State Machine
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
ECE 3430 – Intro to Microcomputer Systems
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Indexing Through Memory
Presentation transcript:

Interrupts CML-12C32 Lecture L4.2

References S12CPUV2 Reference Manual Section 7 S12CPUV2.pdf CML-12C32 Development Board for Motorola MC9S12C32 CML12C32_UG.pdf Interrupt (INT) Module V1 S12INTV1.pdf CRG Block User Guide V04.05 S12CRGV4.pdf

Interrupts 68HC12 Interrupts Real-Time Interrupts

HCS12 Interrupts

Register Stacking for Interrupts

Interrupt Vector Table Ref: MC9S12C Family Device User Guide 9S12C128DGV1.pdf

Interrupt Vector Table (cont.)

Interrupt Vector Table (cont.)

Interrupt (INT) Module V1 S12INTV1.pdf

Monitor Interrupt Vector Table Off by 2

S12MEBIV3.pdf Multiplexed External Bus Interface (MEBI) Block User Guide Module V3

S12MEBIV3.pdf

Interrupts 68HC12 Interrupts Real-Time Interrupts

Real-Time Interrupt Registers $0037

$0038

$003B

; RTI test outa equ $FF4F rti_ivec equ $0FF2 crgflg equ $0037 crgint equ $0038 rtictl equ $003b org $800 ticks dw 0 Note: Should be $0FF0. Monitor error Interrupt routine increments ticks

rti_init sei ;disable interrupts ldaa #$59 staa rtictl ;set rti to 10.24 ms ldaa #$80 staa crgint ;enable rti ldx #rti_intser stx rti_ivec ;store rti int vector cli ;enable interrupts rts rti_intser ldd ticks addd #1 ;inc ticks std ticks staa crgflg ;clear rti flag rti

ORG $4000 main jsr rti_init ldab #10 mn1 tba jsr hexasc jsr outa bsr sec_delay decb bne mn1 swi

sec_delay pshb ;save B ldd ticks std 2,-sp ;store tick0 sd1 ldd ticks ;read ticks subd 0,sp ;diff = ticks-ticks0 cpd #100 ;repeat until 100 ticks blo sd1 leas 2,sp ;fix stack pulb ;restore B rts