beautypg.com

Motorola DSP56301 User Manual

Page 10

background image

x

DSP56303 DSP56301 User’s Manual

Chapter

9

Triple Timer Module

9.1

Overview................................................................................................................................ 9-1

9.1.1

Triple Timer Module Block Diagram .................................................................................... 9-2

9.1.2

Individual Timer Block Diagram........................................................................................... 9-2

9.2

Operation ............................................................................................................................... 9-3

9.2.1

Timer After Reset .................................................................................................................. 9-3

9.2.2

Timer Initialization ................................................................................................................ 9-4

9.2.3

Timer Exceptions ................................................................................................................... 9-4

9.3

Operating Modes.................................................................................................................... 9-5

9.3.1

Triple Timer Modes ............................................................................................................... 9-6

9.3.1.1

Timer GPIO (Mode 0) ..................................................................................................... 9-6

9.3.1.2

Timer Pulse (Mode 1) ...................................................................................................... 9-8

9.3.1.3

Timer Toggle (Mode 2) ................................................................................................. 9-10

9.3.1.4

Timer Event Counter (Mode 3) ..................................................................................... 9-12

9.3.2

Signal Measurement Modes................................................................................................. 9-14

9.3.2.1

Measurement Input Width (Mode 4) ............................................................................. 9-14

9.3.2.2

Measurement Input Period (Mode 5)............................................................................. 9-16

9.3.2.3

Measurement Capture (Mode 6) .................................................................................... 9-18

9.3.3

Pulse Width Modulation (PWM, Mode 7)........................................................................... 9-19

9.3.4

Watchdog Modes ................................................................................................................. 9-22

9.3.4.1

Watchdog Pulse (Mode 9) ............................................................................................. 9-22

9.3.4.2

Watchdog Toggle (Mode 10)......................................................................................... 9-24

9.3.4.3

Reserved Modes............................................................................................................. 9-25

9.3.5

Special Cases ....................................................................................................................... 9-25

9.3.6

DMA Trigger ....................................................................................................................... 9-25

9.4

Triple Timer Module Programming Model ......................................................................... 9-25

9.4.1

Prescaler Counter ................................................................................................................. 9-25

9.4.2

Timer Prescaler Load Register (TPLR) ............................................................................... 9-27

9.4.3

Timer Prescaler Count Register (TPCR) ............................................................................. 9-28

9.4.4

Timer Control/Status Register (TCSR)................................................................................ 9-28

9.4.5

Timer Load Register (TLR) ................................................................................................. 9-33

9.4.6

Timer Compare Register (TCPR) ........................................................................................ 9-34

9.4.7

Timer Count Register (TCR) ............................................................................................... 9-34

Chapter

A

Bootstrap Program

Chapter

B

Programming Reference

B.1

Internal I/O Memory Map......................................................................................................B-3

B.2

Interrupt Sources and Priorities .............................................................................................B-9

B.3

Programming Sheets ............................................................................................................B-13

Index