Computer Operating Properly Module MTT48 11- 1 COMPUTER OPERATING PROPERLY MODULE (COP)

Slides:



Advertisements
Similar presentations
Parul Polytechnic Institute
Advertisements

Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
System Overview MTT48 V Motorol a MOTOROLA 68HC08 INTRODUCTION AND SYSTEM OVERVIEW.
MC68HC11 System Overview. System block diagram (A8 version)
Programmable Interval Timer
External Interrupt Module MTT EXTERNAL INTERRUPT REQUEST MODULE (IRQ)
Microprocessor and Microcontroller
I/O Unit.
Appendix C: Mask Option Register MTT48 V2.0 C - 1 APPENDIX C: MASK OPTION REGISTER.
Introduction of Holtek HT-46 series MCU
68HC11 Polling and Interrupts
ECE 372 – Microcontroller Design Parallel IO Ports - Interrupts
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Read Chapter 3 (David E. Simon, An Embedded Software Primer)
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
GURSHARAN SINGH TATLA PIN DIAGRAM OF 8085 GURSHARAN SINGH TATLA
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – System Control Refer to Chapter 6 in the reference book “Stellaris® LM3S9B96 Microcontroller.
Clock Generation Module MTT CLOCK GENERATION MODULE (CGM)
NS Training Hardware. System Controller Module.
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
ECE 447: Lecture 1 Microcontroller Concepts. ECE 447: Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device.
Monitor ROM Module MTT48 V MONITOR ROM MODULE (MON)
7/23 Timers in Coldfire Processor Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee (480)
Chapter 6: Interrupts and Resets
M Semiconductor Products Sector Computer Operating Properly Module Detail Slide #1 of 7 Tutorial Introduction PURPOSE -To explain how to configure and.
HC08 ARCHITECTURE DETAILS
Interrupts and reset operations. Overview  Introduction to interrupts – What are they – How are they used  68HC11 interrupt mechanisms – Types of interrupts.
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
Lecture 11 Low Power Modes & Watchdog Timers
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
ELE22MIC Lecture 15 Applications of Parallel Input Output (I/O)
Timer Timer is a device, which counts the input at regular interval (δT) using clock pulses at its input. The counts increment on each pulse and store.
Direct Memory Access Module MTT M DIRECT MEMORY ACCESS MODULE (DMA)
Low Power Modes MTT48 V LOW POWER OPERATION.
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.
Timers and Interrupts Anurag Dwivedi. Let Us Revise.
1 Interrupts, Resets Today: First Hour: Interrupts –Section 5.2 of Huang’s Textbook –In-class Activity #1 Second Hour: More Interrupts Section 5.2 of Huang’s.
I/O Ports MTT I/O PORTS. I/O Ports MTT Module Objectives Configure any pin as either input or output Read or write data from/to port.
Conclusion Speech. Content Organization Pronunciation Handwriting.
Appendix B: System Development Example MTT48 V2.1 B - 1 APPENDIX B: SYSTEM DEVELOPMENT.
1 68HC11 Timer HC11 or HC12: Chapter HC11 Timer Subsystem  Several timing functions: Basic timing Basic timing Real time interrupts Real time.
Serial Communications Interface Module Slide #1 of 19 MC68HC908GP20 Training PURPOSE -To explain how to configure and use the Serial Communications Interface.
System Integration Module MTT Motoola SYSTEM INTEGRATION MODULE (SIM)
Execution Architecture MTT CPU08 Core M CPU08 INTRODUCTION.
MICRO-CONTROLLER MOTOROLA HCS12 Interrupts Mechatronics Department Faculty of Engineering Ain Shams University.
Resets & Interrupts MTT CPU08 Core Motorola CPU08 RESETS & INTERRUPTS.
#1 of 10 Tutorial Introduction PURPOSE -To explain how to configure and use the Timer Interface Module in common applications OBJECTIVES: -Identify the.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
EPROM/OTPROM Module MTT48 V EPROM PROGRAMMING.
1 68HC11 Timer. 2 68HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output compare.
Low-Voltage Inhibit Module MTT M LOW VOLTAGE INHIBIT MODULE (LVI)
Chapter 3. Advanced Hardware Fundamentals The various parts you will commonly find in an embedded-system circuit 발표일시 : 발표자 : 채화영.
INTV1 & MMCV4 By: Prof. Mahendra B. Salunke Asst. Prof., Department of Computer Engg., SITS, Pune-41 URL: microsig.webs.com.
HCS12 Exceptions Maskable Interrupts
68HC11 Interrupts & Resets.
Timer and Interrupts.
Introduction of microprocessor
BVM Engineering College Electrical Engineering Department : Microprocessor and Microcontroller Interfacing Interrupts of 8051 Prepared by:
8085 Microprocessor Architecture
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
8085 Microprocessor Architecture
전자의료시스템 및 실습 System Configuration/Interrupt
Interrupt Source: under
Interrupt Source: under
8051 Micro Controller.
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Presentation transcript:

Computer Operating Properly Module MTT COMPUTER OPERATING PROPERLY MODULE (COP)

Computer Operating Properly Module MTT Module Objective By the end of this module you should be able to: Understand the COP timer function and purpose Configure the COP for your application needs Module exercise Write a subroutine which will service the COP timer

Computer Operating Properly Module MTT HC08 CPU System Integration Module (SIM) Clock Generation Module (CGM) Timer Interface Module (TIM) Direct Memory Access Module (DMA) Serial Communications Interface (SCI) Internal Bus (IBUS) Serial Peripheral Interface (SPI) Random Access Memory (RAM) Electronically Programmable ROM LVI COP Monitor ROM IRQ BREAK RESET COMPUTER OPERATING PROPERLY (COP) MODULE Watchdog timer system - free running Counter Allows recovery from unexpected events Runaway code Software processing errors

Computer Operating Properly Module MTT COPCTL WRITE CGMXCLK RESET VECTOR FETCH SIM RESET CIRCUIT SIM RESET STATUS REGISTER INTERNAL RESET SOURCES STOP INSTRUCTION SIM 13-BIT SIM COUNTER 6-BIT COP COUNTER COPD (FROM MOR) RESET COPCTL WRITE CLEAR COP MODULE COPEN (FROM SIM) COP COUNTER COP Block Diagram COP Enable - Signal which inhibits COP counter COPRRESET- Generated by SIM from accessing counter IRST - Global Reset, resets COP counter

Computer Operating Properly Module MTT COP Functional Description COP operation Generates an asynchronous reset unless serviced –RST pin held low for 32 CGMXCLK cycles –COP bit in SIM SRS is set to 1 Based on the COP 6 bit counter roll over –Input to the counter is CGMXCLK/8192 Hz –Counter can be disabled preventing COP time out Requires servicing before timeout period With MHz Crystal, COP timeout period is 53.3 ms

Computer Operating Properly Module MTT Refresh rate depends on CGMXCLK frequency COP must be serviced within: Example: 4 MHz external crystal (CGMXCLK = 4 MHz) –COP needs to be serviced within 65.53ms * seconds ~ ~ CGMXCLK frequency 8192 * 32 Seconds COP Reset Rate

Computer Operating Properly Module MTT COP Control Register COP Control register (COPCTL) Overlaps the CPU reset vector Writing any value to COPCTL before counter overflows: –Clears COP counter –Clears bits 12 through 4 of the SIM Counter –Prevents reset –Starts new timeout period Reading COPCTL returns low byte of the reset vector RESET: UNAFFECTED BY RESET D7 D6D5D4 D3 D2D1 D0 COPCTL $FFFF READ: WRITE: Low byte of reset vector Clear COP Counter

Computer Operating Properly Module MTT COP Exercise Write a routine to reset the COP timer.

Computer Operating Properly Module MTT Additional Information - Low Power Modes - Low Power modes WAIT –Operation continues during wait mode ( if enabled ) –To prevent a COP timeout you must periodically clear the COP counter CPU service routine or DMA Service routine STOP –Disables the clock(CGMXCLK) input to the COP module, Clears SIM counter –After exiting Stop, COP counter continues at last value

Computer Operating Properly Module MTT COP Enable/Disable Mask Option Register (MOR) COP Disable (COPD) –Controls COP module –EPROM/OTPROM byte 1 = COP module disabled 0 = COP module enabled (erased state) NOTE: Mask Option Register contents cannot be changed by program Bits set or cleared at time of EPROM/OTP programming RESET: UNAFFECTED BY RESET WRITE: MOR READ: 0 LVISTOP LVIRST LVIPWR SSREC SEC STOP COPD

Computer Operating Properly Module MTT COP Register Summary RESET: UNAFFECTED BY RESET WRITE: MOR READ: 0 LVISTOP LVIRST LVIPWR SSREC SEC STOP COPD RESET: UNAFFECTED BY RESET D7 D6D5D4 D3 D2D1 D0 COPCTL $FFFF READ: WRITE: Low byte of reset vector Clear COP Counter

Computer Operating Properly Module MTT Exercise Solution * COP Module ORG$7000 RSTCOPLDA#$00 STA$FFFF; Reset COP timer RTS