RX Compare Match Timer (CMT)

Slides:



Advertisements
Similar presentations
Instructor: Dr Aleksandar Milenkovic Lecture Notes
Advertisements

Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver
Synthesis of OR 1200 Peripherals Elena Weinberg ECE 6502.
NS Training Hardware. System Controller Module.
CE-2800: Embedded Systems Software I Watchdog Timers 1 The Watchdog timer.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the different.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose:  This training module provides a technical description of Renesas.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
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.
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
Timers The timers of the PIC16C7X microcontroller can be briefly described in only one sentence. There are three completely independent timers/counters.
Lecture 25: LM3S9B96 Microcontroller – Watchdog Timer.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the CPU architecture.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This course provides an introduction to the peripheral functions.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This training course provides an overview of the CPU architecture.
Renesas Electronics Corporation © 2010 Renesas Electronics America Inc. All rights reserved. RX 12 Bit Analog-to-Digital Converter A Rev /1/10.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the peripherals.
Lecture 12 Multi-Function Timer Pulse Unit 2 (MTU2a)
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Advanced Debugging on the RX600.
Timers and Interrupts Anurag Dwivedi. Let Us Revise.
1 ARM University Program Copyright © ARM Ltd 2013 Using Direct Memory Access to Improve Performance.
Conclusion Speech. Content Organization Pronunciation Handwriting.
RX Serial Peripheral Interface (RSPI)
ECE 447 Fall 2009 Lecture 7: MSP430 Polling and Interrupts.
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.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This course provides an introduction to the peripheral functions.
Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX Direct Memory Access Controller (DMAC) Ver
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
Time Management.  Time management is concerned with OS facilities and services which measure real time.  These services include:  Keeping track of.
Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX Interrupt Control Unit (ICU) Ver
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Watchdog Timers Refer to Chapter 11 in the reference book “Stellaris® LM3S9B96 Microcontroller.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 AD converter.
TM Freescale Confidential Proprietary Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names.
TIMERS.
Timer modules in PIC 16F877.  The PIC 16F877 basically has three independent timer modules,  denoted by the symbols, TIMER-0, TIMER1,andTIMER2. . These.
16F877A.
Why are Timer Functions Important?
Lecture 10: TI MSP430 Timers and Capture Modes
Synchronous Counter with MSI Gates
Timer and Interrupts.
RL78 POC and LVD © 2010 Renesas Electronics Corporation. All rights reserved.
NS Training Hardware.
RX Watchdog Timer (WDT)
Programmable Interval Timer
AVR Addressing Modes Subject: Microcontoller & Interfacing
RX Data Transfer Controller (DTC)
RX 8-Bit Timer (TMR) 4/20/2011 Rev. 1.00
8-bit Timer/Counter0 with PWM
ECE 3430 – Intro to Microcomputer Systems
Synchronous Counters with MSI Gates
Programmable Interval timer 8253 / 8254
Synchronous Counters with MSI Gates
Processor Fundamentals
CPE 323 Introduction to Embedded Computer Systems: DMA Controller
전자의료시스템 및 실습 System Configuration/Interrupt
Programmable Interval timer 8253 / 8254
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
嵌入式微控制器编程 Embedded Microcontroller Programming
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Lecture 12 Multi-Function Timer Pulse Unit 2 (MTU2a)
Timer Source: under
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
Wireless Embedded Systems
Presentation transcript:

RX Compare Match Timer (CMT) Hello and welcome to this Renesas Interactive course that covers the RX Compare Match Timer 4/20/2011 Rev. 1.00 © 2011 Renesas Electronics America Inc. All rights reserved. 00000-A

Agenda This course contains a description of specific features of the RX Compare Match Timer (CMT). Contained in this Module Block Diagram Interrupt Generation Usage Notes This course covers specific features of the Compare Match Timer, or CMT, found on RX MCUs. In this course we will cover the CMT’s block diagram, interrupts generation, and some helpful usage notes. © 2011 Renesas Electronics America Inc. All rights reserved.

Block Diagram Peripheral Bus This figure shows a block diagram of a typical CMT unit on an RX MCU. An RX MCU might have multiple CMT units. Note that a single CMT unit contains 2 CMT timer channels. These channels share a single register CMSTR containing each channels’ start bits. At the bottom right we see that the CMT sits on the peripheral bus \and that the clock used for driving the timer is generated from a prescaled peripheral clock ranging from divide by 8 to divide by 512. The prescalar selection is determined by a field in the CMCR register. The period of the timeout is controlled by resetting the 16-bit counter value CMCNT when it equals the value set in the compare register CMCOR. When the counter is reset by the compare match value, an event CMI is sent to the interrupt control unit. This event can generate an interrupt or the interrupt request state can be polled by software. There is a separate CMI interrupt for each CMT channel. Note that the CMT’s have no external pins associated with them…they are completely internal resources that are typically used to generate periodic RTOS pre-emptions, software timeout notifications, or to trigger a DMAC or DTC transfer. Peripheral Bus © 2011 Renesas Electronics America Inc. All rights reserved.

Interrupt Generation To understand the detailed timing of the interrupt generation, the timing of the counter CMCNT needs to be explained. Once per prescalar countdown, a count clock is generated for one peripheral clock period. It is this count clock that causes the counter CMCNT to be incremented. The compare match signal is generated when counter CMNT is incremented by the count clock after it has matched the compare match CMCOR register. The period of the interrupt signal is therefore CMCOR+1 cycles of the count clock. On the peripheral clock edge after the compare match signal is generated, the counter is reset and the CMI signal is sent to the interrupt control unit. The CMI signal can generate an interrupt to the CPU core, trigger a DTC or DMAC transfer or be polled by software…the particular behavior is controlled by the configuration of the interrupt control unit. © 2011 Renesas Electronics America Inc. All rights reserved.

Writing to the Count Regsiter Usage Notes Enable the CMT Unit Writing to the Count Regsiter Initializing Compare Match and Count Register On this slide we will cover some usage notes for the CMT peripheral. First, the user should always remember to bring each unit of CMT that they are using out of the module stop state. This is done by clearing the bit in the module stop control registers that corresponds to the CMT unit you are using. Please refer to the Low Power Consumption section of your RX group’s hardware manual to see which bits should be cleared. If this bit is not cleared then the CMT peripheral will be disabled and its registers will not writable. The second note has to do with writing to the count register CMCNT. When the timer is running, writing to the count register at the instant of a compare match event will be ignored, and the count will be cleared to zero. If writing to the count register occurs at the same time as a count clock is present, the newly written value will be used and the count clock will be ignored. Finally writing the same value to count register CMCNT and the compare register CMCOR can result in an interrupt being generated if the CMIE interrupt enable bit is set…even if the timer not running. Also writing the same value to both registers will cause the counter register to be reset to zero as the match has technically occurred. © 2011 Renesas Electronics America Inc. All rights reserved.

Summary Block Diagram Interrupt Generation Usage Notes Thanks for Viewing! In summary, in this course we covered: the block diagram of the RX's CMT peripheral, Detailed information on the interrupt generation, And usage notes to be aware of when using the CMT peripheral. We would like to thank for viewing this course. You may consider viewing the RX Family Overview Course for more information on RX MCUs. © 2011 Renesas Electronics America Inc. All rights reserved.

© 2011 Renesas Electronics America Inc. All rights reserved. Thank You © 2011 Renesas Electronics America Inc. All rights reserved.