전자의료시스템 및 실습 System Configuration/Interrupt

Slides:



Advertisements
Similar presentations
External Interrupt Module MTT EXTERNAL INTERRUPT REQUEST MODULE (IRQ)
Advertisements

8051 Core Specification.
CSCI 4717/5717 Computer Architecture
68HC11 Polling and Interrupts
Timers in Hardware ECE152. Overview Why are timers important – Watchdog – Task switching – Accurate time of day Can use polling or interrupts.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – System Control Refer to Chapter 6 in the reference book “Stellaris® LM3S9B96 Microcontroller.
INTERRUPTS PROGRAMMING
Clock Generation Module MTT CLOCK GENERATION MODULE (CGM)
NS Training Hardware. System Controller Module.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose:  This training module provides a technical description of Renesas.
Ch. 9 Interrupt Programming and Real-Time Sysstems From Valvano’s Introduction to Embedded Systems.
7/23 Timers in Coldfire Processor Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee (480)
ARM Timers.
System Clocks.
M Semiconductor Products Sector Computer Operating Properly Module Detail Slide #1 of 7 Tutorial Introduction PURPOSE -To explain how to configure and.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
Lecture 25: LM3S9B96 Microcontroller – Watchdog Timer.
Timers.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the CPU architecture.
1 68HC11 Timer Chapter HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
1 © Unitec New Zealand Interrupt Lecture 6 Date: - 20 Sept, 2011 Embedded Hardware ETEC 6416.
Bit-Digital Signal Controller TMS320F2812 Texas Instruments Incorporated Module 3: F28x –Digital I/O.
Conclusion Speech. Content Organization Pronunciation Handwriting.
32-Bit-Digital Signal Controller Texas Instruments Incorporated
4 - 1 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH) Module 4 : Interrupt System C28x 32-Bit-Digital.
Copyright © Am Road Electronics Co., Ltd. TMS320C24x Overview Max Chyou Engineering Manager AmRoad Co.Ltd.
ECE 447 Fall 2009 Lecture 7: MSP430 Polling and Interrupts.
1 68HC11 Timer HC11 or HC12: Chapter HC11 Timer Subsystem  Several timing functions: Basic timing Basic timing Real time interrupts Real time.
Interrupts  An interrupt is any service request that causes the CPU to stop its current execution stream and to execute an instruction stream that services.
System Integration Module MTT Motoola SYSTEM INTEGRATION MODULE (SIM)
The Silicon Laboratories C8051F020
Execution Architecture MTT CPU08 Core M CPU08 INTRODUCTION.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Watchdog Timers Refer to Chapter 11 in the reference book “Stellaris® LM3S9B96 Microcontroller.
Computer Operating Properly Module MTT COMPUTER OPERATING PROPERLY MODULE (COP)
Timer Programming in Assembly and C Prepared By:
Introduction to Exceptions 1 Introduction to Exceptions ARM Advanced RISC Machines.
One more PIC18F252 example and revision for exam B222L Branislav Vuksanovic, UoP, ECE.
Chapter 10 Interrupts. Basic Concepts in Interrupts  An interrupt is a communication process set up in a microprocessor or microcontroller in which:
Unit Microprocessor.
An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal) OR A Software-generated CALL (internally derived from.
COURSE OUTCOMES OF Microprocessor and programming
68HC11 Interrupts & Resets.
Networked Embedded Systems Sachin Katti
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.
Timer and Interrupts.
Refer to Chapter 5 in the reference book
Interrupts In 8085 and 8086.
AVR Addressing Modes Subject: Microcontoller & Interfacing
BVM Engineering College Electrical Engineering Department : Microprocessor and Microcontroller Interfacing Interrupts of 8051 Prepared by:
Reset Sources and Watchdog Timer
8086/8088 Hardware Specifications
RX Compare Match Timer (CMT)
Timer/Counter Modified from Dr. Lam Phung’s Slides.
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Interrupt.
Lecture 8 Interrupts.
Interrupts Interrupt is a process where an external device can get the attention of the microprocessor. The process starts from the I/O device The process.
Getting the Most Out of Low Power MCUs
8-bit Timer/Counter2 with PWM and Asynchronous Operation
8085 Microprocessor Architecture
ECE 3430 – Intro to Microcomputer Systems
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Interrupt.
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
8051 Micro Controller.
Wireless Embedded Systems
Computer System Overview
Presentation transcript:

전자의료시스템 및 실습 System Configuration/Interrupt 구 환 경희대학교 전자정보대학 동서의료공학과

Architecture Summary 2007 Summer Seminar

DSP Initialization Decision - Clock frequency - Wait state of external ROM, RAM, I/O - Enable peripheral module by supplying clock 2007 Summer Seminar

Configuration Registers 2007 Summer Seminar

2007 Summer Seminar

2007 Summer Seminar

2007 Summer Seminar

2007 Summer Seminar

2007 Summer Seminar

2007 Summer Seminar

2007 Summer Seminar

2007 Summer Seminar

Reset 2007 Summer Seminar

Wait-State Generation 2007 Summer Seminar

2007 Summer Seminar

2007 Summer Seminar

Clock Generation 2007 Summer Seminar

2007 Summer Seminar

External Memory Interface C240x PLL Clock Module XTAL1/CLKIN WDCLK 1/512 Prescaler Watchdog crystal FIn PLL Clock Module 3-bit PLL Select XTAL OSC CPU Core Memory CAN Event Manager SCI SPI External Memory Interface XTAL2 CLKOUT ADCCLK Prescaler ADC CLK PS2 CLK PS1 CLK PS0 Clock Frequency 1 4 x FIn 2 x FIn 1.33 x FIn 1 x FIn 0.8 x FIn 0.66 x FIn 0.57 x FIn 0.5 x Fin (default) 2007 Summer Seminar

Watch-dog Timer Clock 2007 Summer Seminar

Watchdog Timer Resets the C240x if the CPU crashes Watchdog must be serviced (or disabled) within ~3.28ms after reset(40 MHz device) This translates into 131,072 instructions! - Watchdog counter runs independent of CPU - If counter overflows, reset is triggered - CPU must write correct data key sequence to reset the counter before overflow 2007 Summer Seminar

Watchdog Timer Module 6 – bit Free – Running Counter /64 111 /32 110 WDPS /16 101 WDCLK /8 100 WDCR.2.0 /4 011 /2 010 WDCR.6 System Reset 001 CLR WDDIS 000 WDCNTR.7-0 WDFLAG 8 – bit Watchdog Counter CLR One-Cycle Delay WDCR.7 System Reset Request WDKEY.7-0 WDCR.5-3 WDCHK 2-0 Watchdog Reset Key Register 55 + AA Detector Good Key 3 Bad Key Bad WDCR Key 3 1 2007 Summer Seminar

Watchdog Period Selection WDPS Bits FRC rollover C240x timeout Period @ 40 MHz 00x: 010: 011: 100: 101: 110: 111: 1 2 4 8 16 32 64 3.28 ms 6.55 ms 13.11 ms 26.21 ms 52.43 ms 104.86 ms 209.72 ms WDPS set to 000 after any CPU reset Watchdog starts counting immediately after reset is released 2007 Summer Seminar

Watchdog Timer Control Register WDCR @ 7029h WD Flag Bit Gets set when the WD causes a reset Writing a 1 clears this bit Writing a 0 has no effect 15-8 7 6 5 4 3 2 1 reserved WDFLAG WDDIS WDCHK2 WDCHK1 WDCHK0 WDPS2 WDPS1 WDPS0 Logic check Bit Write as 101 or reset Immediately triggered WD Prescale Selection Bits Watchdog Disable Bit (Function only if WD OVERRIDE Bit in SCSR2 is equal to 1) 2007 Summer Seminar

Resetting the Watchdog WDKEY @ 7025h 15-8 7 6 5 4 3 2 1 reserved D7 D6 D5 D4 D3 D2 D1 D0 Allowable write values: - 55h – counter enabled for reset followed by an AAh - AAh – counter set to zero if reset enabled Writing any other value immediately triggers a CPU reset Watchdog should not be serviced solely in an ISR - If main code crashes, but interrupt continues to execute, the watchdog will not catch the crash - Could put the 55h WDKEY in the main code, and the AAh WDKEY in an ISR; this catches main code crashes and also ISR crashes 2007 Summer Seminar

WDKEY Write Results Sequential Step Value Written to WDKEY Result 1 2 3 4 5 6 7 8 9 10 11 AAh 55h 23h No action NO action WD counter enabled for reset on next AAh write WD counter is reset CPU reset triggered due to improper write value 2007 Summer Seminar

Low-Power Modes 2007 Summer Seminar

Interrupt Description ※ 폴링(Polling) 방식 - 어떤 작업을 수행 중이라도 다른 작업이 필요하다면 필요하다는 신 호를 받은 후 다른 작업을 마치고 나서 예전에 하던 작업의 나머지 부분을 계속하는 방식 ※ 폴링(Polling) 방식 - 어떤 신호가 발생하기만을 계속하여 기다리면서 다른 일은 하지 못 하고 있다가 해당 신호가 발생하면 해당 작업을 마친 후에야 비로서 그 다음 작업을 수행하는 형식 2007 Summer Seminar

Maskable Interrupt Timeline Valid External signal Individual flag bit set Individual interrupt enabled? Core interrupt flag bit set Core interrupt enabled? Global interrupt switch enabled? interrupt hardware sequence Branch to ISR (interrupt vectors) H A R D W E S O F T W A R E 9. Interrupt Service Routine 2007 Summer Seminar

Interrupt Requests 2007 Summer Seminar

Individual Flag and Mask Bits Interrupt management Individual Flag and Mask Bits To core Interrupt INT1 XINT1 flag polarity enable Arbitrator XINT2 flag polarity enable ADCINT flag enable 2007 Summer Seminar

Conceptual Core Overview Interrupt management Conceptual Core Overview (INTM) “Global Switch” (IFR) “Latch” Core Interrupt (IMR) “Switch” C240x core INT1 1 INT2 INT3 1 A valid signal on a specific interrupt line causes the latch to display a “1” in the appropriate bit. If the individual and Global switches are turned on, the interrupt reaches the core. 2007 Summer Seminar

Interrupt Registers 2007 Summer Seminar

2007 Summer Seminar

2007 Summer Seminar

2007 Summer Seminar