Infineon Technologies XMC4000 User Manual

Capture compare unit, ccu4, ccu basics
Hide thumbs Also See for XMC4000:

Advertisement

Quick Links

XM C 400 0
XMC4500 Family
Cap tur e C om par e U nit - C C U 4
CCU Basics
User Guid e
Device Guide
<Revision 1.0>, <2012-30-03>
Mic rocon t rolle r

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XMC4000 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Infineon Technologies XMC4000

  • Page 1 XM C 400 0 XMC4500 Family Cap tur e C om par e U nit - C C U 4 CCU Basics User Guid e Device Guide <Revision 1.0>, <2012-30-03> Mic rocon t rolle r...
  • Page 2 Infineon Technologies components may be used in life-support devices or systems only with the express written approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain and/or protect human life.
  • Page 3 Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential Revision History Page or Item Subjects (major changes since previous revision) <Revision 1.0>, <2012-30-03> Trademarks of Infineon Technologies AG AURIX™, C166™, CanPAK™, CIPOS™, CIPURSE™, EconoPACK™, CoolMOS™, CoolSET™, CORECONTROL™, CROSSAVE™, DAVE™, EasyPIM™, EconoBRIDGE™, EconoDUAL™, EconoPIM™, EiceDRIVER™, eupec™, FCOS™, HITFET™, HybridPACK™, I²RF™, ISOFACE™, IsoPACK™, MIPAQ™,...
  • Page 4 Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential List of Tables Table of Contents CCU Basics ............................6 Basic Timer Functions .......................... 7 The Compound CAPCOM4 System CCU40 – CCU43 ................ 7 1.1.1 CCU Use Cases ........................... 9 Typical Use Case Features of the CAPCOM4/8 .................. 9 Additional CCU Features .........................
  • Page 5 Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential List of Tables List of Figures Figure 1 The Timer Slice Block Diagram ......................6 Figure 2 Basic Functions of each Timer Slice ....................7 Figure 3 The four Capture/Compare units CCU40-CCU43 basic system of CAPCOM4 ........8 Some Features and Use Cases (1 –...
  • Page 6: Ccu Basics

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential CCU Basics CCU Basics A CAPCOM Unit (CCU) is a multi purpose timer unit for many use cases. It is designed with repetitive structures with multiple timer slices, which have all the same base functionalities. This allows the development of re-usable software low level drivers.
  • Page 7: Basic Timer Functions

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential CCU Basics Basic Timer Functions Figure 2 Basic Functions of each Timer Slice Each timer slice can handle all basic modes and typical options as illustrated here independently of another. See Figure 2. The Compound CAPCOM4 System CCU40 –...
  • Page 8: Figure 3 The Four Capture/Compare Units Ccu40-Ccu43 Basic System Of Capcom4

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential CCU Basics Figure 3 The four Capture/Compare units CCU40-CCU43 basic system of CAPCOM4...
  • Page 9: Ccu Use Cases

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential CCU Basics CCU Use Cases The various capabilities of the CAPCOM timer slices are illustrated here by typical use cases, shortly described. See Figure 4. Some Features and Use Cases (1 – 9) characterizing an CAPCOM Unit (CCU) Features Figure 5 Typical Use Case Features of the CAPCOM4/8 1.
  • Page 10: Additional Ccu Features

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential Additional CCU Features 9. Auto Adjusting Time Base by Floating Prescaler for adaption of time measurement to unknown dynamics Additional CCU Features Single Shot A slice may be set in Timer Single Shot Mode (TSSM). Both the Timer and its Run Bit (TRB) is cleared by the Period/One match that occurs next to when the TSSM bit was set - and thus the timer is stopped.
  • Page 11: Multi Channel Use Case

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential CCU4 Input Control 2.8.1 Multi Channel Use Case The Position Interface module POSIF in conjunction with a CCU4x unit in multi channel mode enables complete synchronicity between the output state update and the application of a new pattern. With POSIF in Hall Sensor Mode, this can be used for direct control of brushless DC motors, to output the wanted motor control pattern.
  • Page 12: External Events Sources

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential Capture Basics Figure 6 External Control of Timer Input Functions on Events by any External Units External Events Sources CCU4xCC4y Input Functions can be linked to external trigger requests – from such as the following sources: GPIO, ERU, POSIF, CAN, CCU4x, USIC, ADC, CCU8x or SCU.
  • Page 13: Ccu4 Output Control

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential CCU4 Output Control Figure 7 Timer Slice four Capture Registers Basic Capture Mechanism – setup in two possible scheme alternatives Figure 8 CCU4 Output Control External Control by Timer Events A timer event may trigger external actions via the Top-Level Interconnect matrix or request for an Interrupt. Each CAPCOM4 has four Service Request Lines and each slice has a dedicated output signal CC4ySR[3...0] selectable to a line by CC4ySRS.
  • Page 14: Top-Level Control Of Event Requests To/From A Timer Slice

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential Compare Basics Top-Level Control of Event Requests to/from a Timer Slice Top-Level control means also conditional control of events requests between a slice and other action providers. The Event Request Unit (ERU1) plus the Top-Level Interconnect matrix may combine, control and link event signals according to user defined request-to-action event patterns - e.g.
  • Page 15: Asymmetric Compare Events

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential Compare Basics Figure 10 Basic Shadow Transfer Mechanism for Compare Register Values Asymmetric Compare Events The benefit of shadow transfers on both Period Match and One Match, allows asymmetric compare events to be provided in center aligned mode.
  • Page 16: Shadow Transfers In General - Compound Shadow Transfers

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential How to Start a Timer Figure 11 Asymmetric Compare by Shadow Transfers on both Period Match and One Match Shadow Transfers in General - Compound Shadow Transfers Beside the Compare (CR) values, there are also the the timer Period register (PR) and the PWM Active/Passive control bit (PSL) that may be updated simultaneously on the SySE flag.
  • Page 17: Global Start Of Capcom Units

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential How to Start a Timer Global Start of CAPCOM Units There is a way to get a synchronized start of CAPCOM Units, both CCU40/-41/-42,/-43 and CCU80/-81:  Global Start by SW, by the CCUx Global Start Control bits in the Global Start Control register CCUCON ...
  • Page 18: Getting Started With Capture Compare Unit - Ccu4

    Device Guide XMC4500 Capture Compare Unit - CCU4 Confidential Getting Started with Capture Compare Unit - CCU4 Getting Started with Capture Compare Unit - CCU4 How to Start Timer CC4y (y=0-3) In the following examples it is assumed that the CAPCOM4 Ultimate Initialization Sequence start is done before. 8.1.1 Example 1: Start Timer by SW (by Instruction) CC40TCSET |= 0x00000001;...
  • Page 19: Runtime Handling Of Capture Compare Unit – Ccu4

    Device Guide XMC4500 Capture Compare Unit - CCU4 Runtime Handling of Capture Compare Unit – CCU4 Confidential Runtime Handling of Capture Compare Unit – CCU4 Example: Handling Shadow Transfers Figure 13 Compound Shadow Transfer Mechanism with Coherent Update of PWM...
  • Page 20 . i n f i n e o n . c o m Published by Infineon Technologies AG...

This manual is also suitable for:

Xmc4500 family

Table of Contents