Motorola DSP56602 User Manual

Triple timer module.
Hide thumbs
Freescale Semiconductor, Inc.
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
SECTION 9
TRIPLE TIMER MODULE
MOTOROLA
9-1
Go to: www.freescale.com

   Related Manuals for Motorola DSP56602

No related manuals

   Summary of Contents for Motorola DSP56602

  • Page 1

    Freescale Semiconductor, Inc. ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 SECTION 9 TRIPLE TIMER MODULE MOTOROLA DSP56602 User’s Manual For More Information On This Product, Go to: www.freescale.com...

  • Page 2: Table Of Contents

    TRIPLE TIMER MODULE PROGRAMMING MODEL..9-6 TIMER MODES OF OPERATION ..... . .9-13 DSP56602 User’s Manual MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 3: Triple Timer Module Architecture

    The counter is enabled when at least one of the three timers is both enabled and is using the prescaler output as its source. Figure 9-1 shows a block diagram of the triple timer module. MOTOROLA DSP56602 User’s Manual For More Information On This Product, Go to: www.freescale.com...

  • Page 4: Timer Architecture

    DSP views each timer as a memory-mapped peripheral occupying four 16-bit words in the X data memory space. The user can use standard polled or interrupt programming techniques. The programming model is shown in Figure 9-3 on page 9-6. DSP56602 User’s Manual MOTOROLA For More Information On This Product,...

  • Page 5

    TCSR TCPR Control/Status Load Count Compare Register Register Register Register Timer Control Counter Logic Timer interrupt CLK/2 Prescaled CLK AA0744 Figure 9-2 16-bit Timer Module Block Diagram MOTOROLA DSP56602 User’s Manual For More Information On This Product, Go to: www.freescale.com...

  • Page 6: Triple Timer Module Programming Model, Dsp56602 User's Manual, For More Information On This Product

    Timer Control/Status Register Reset = $0000 Read/Write * Indicates reserved bits, read and written as 0 to ensure future compatibility AA0745 Figure 9-3 Triple Timers Programming Model DSP56602 User’s Manual MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 7

    2. To ensure proper functionality, the PS[1:0] bits should be changed only when the prescaler counter is disabled. The PS[1:0] bits are cleared by hardware and software reset. MOTOROLA DSP56602 User’s Manual For More Information On This Product, Go to: www.freescale.com...

  • Page 8

    In this mode, the counter is also reloaded whenever the TLR is written with a new value while the TE bit is set. In all modes, if the TRM bit is cleared, the counter operates as free running counter. DSP56602 User’s Manual MOTOROLA For More Information On This Product,...

  • Page 9

    (N – M + 1) events, where M is TLR value. Setting the TCIE bit enables the compare interrupts. When the TCIE bit is cleared, the compare interrupts are disabled. The TCIE bit is cleared by hardware and software reset. MOTOROLA DSP56602 User’s Manual For More Information On This Product, Go to: www.freescale.com...

  • Page 10

    — (Reserved) Output Internal Watchdog Pulse Output Internal Watchdog Toggle — — (Reserved) — — (Reserved) — — (Reserved) — — (Reserved) Output Internal Timer Pulse 9-10 DSP56602 User’s Manual MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 11

    The Data Input (DI) bit reflects the value of TIO pin according to the INV bit. Reading the DI bit reads the TIO pin if INV = 0, or the inverted TIO pin if INV = 1. MOTOROLA DSP56602 User’s Manual 9-11 For More Information On This Product,...

  • Page 12

    The PCE bit is cleared by hardware and software reset. 9-12 DSP56602 User’s Manual MOTOROLA For More Information On This Product, Go to: www.freescale.com...

  • Page 13: Timer Modes Of Operation

    Bit 3 of the TCSR is reserved. It is read as 0 and should be written with 0 for future compatibility. TIMER MODES OF OPERATION The DSP56602 timers have the following four modes of operation: • Timer • Measurement • Pulse Width Modulation •...

  • Page 14

    TRM is set) and the count is resumed. If TRM is cleared, the counter continues to be incremented on each timer pulse. This process is repeated until the timer is disabled 9-14 DSP56602 User’s Manual MOTOROLA For More Information On This Product,...

  • Page 15

    The counter contents can be read at any time by reading the TCR. The external clock is internally synchronized to the internal clock and its frequency should be lower than the DSP internal clock (CLK) divided by four. MOTOROLA DSP56602 User’s Manual 9-15 For More Information On This Product, Go to: www.freescale.com...

  • Page 16

    If counter wraparound occurs, the TOF bit is set. If the TOIE bit is set, an overflow interrupt is generated. The INV bit determines whether the period is measured 9-16 DSP56602 User’s Manual MOTOROLA For More Information On This Product,...

  • Page 17

    ($FFFF – TCPR + 1 vs. $FFFF – TLR + 1). Therefore, to ensure correct functionality, the values in TLR and TCPR should not be the same. MOTOROLA DSP56602 User’s Manual 9-17 For More Information On This Product, Go to: www.freescale.com...

  • Page 18

    INV bit. On the first transaction, the TIO output is set if the INV bit is cleared, or cleared if the INV bit is set. The counter contents can be read at any time by reading the TCR. 9-18 DSP56602 User’s Manual MOTOROLA For More Information On This Product,...

  • Page 19

    If a TIO pin is used as an input, changes that occur while in Stop mode are ignored. To ensure proper operation, disable the timer before executing the STOP instruction. MOTOROLA DSP56602 User’s Manual 9-19 For More Information On This Product, Go to: www.freescale.com...

  • Page 20

    Freescale Semiconductor, Inc. Triple Timer Module ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005 Timer Modes of Operation 9-20 DSP56602 User’s Manual MOTOROLA For More Information On This Product, Go to: www.freescale.com...

Comments to this Manuals

Symbols: 0
Latest comments: