Texas Instruments TMS320C3x User Manual
Page 393

Timers
12-14
2) Configure the timer through the timer global-control register (with GO =
HLD = 0 ), the timer-counter register, and timer-period register, if necessary.
3) Start the timer by setting the GO/HLD bits of the timer global-control register.
Example 12–2 shows how to set up the ‘C3x timer to generate the maximum
clock frequency through the TCLKx pin.
Example 12–2. Maximum Frequency Timer Clock Setup
*
Maximum Frequency Timer Clock Setup
*
.data
Timer0
.word
808020h
; Timer global control address
TCTRL_RST
.word
301h
TCTRL_GD
.word
3C1h
TCNT
.word
0
; Timer counter value
TPRD
.word
0
; Timer-period value
.text
.
.
.
LDP
Timer0
LD1
@Timer0,AR0
; Load data page pointer
LD1
0,R0
ST1
R0,*AR0
; Halt timer
LD1
@TCTRL_RST,R0
; Configure timer
ST1
R0,*AR0
LD1
@TCNT,R0
ST1
R0,*+AR0(4)
; Load timer counter
LD1
@TPRD,R0
ST1
R0,**+AR0(8)
; Load timer period
LD1
@TCTRL_G0,R0
ST1
R0,*AR0
; Start timer
- Digital Signal Processor SM320F2812-HT (153 pages)
- MSP430x1xx (440 pages)
- Laser And Motor Drives DRV8811EVM (13 pages)
- TMS320 DSP (88 pages)
- MSP430x11x1 (45 pages)
- TVP5154EVM (55 pages)
- TMS320DM646X DMSOC (64 pages)
- CC2511 (24 pages)
- SN65HVS880 (4 pages)
- TPS650231EVM (14 pages)
- TMS320TCI648x (256 pages)
- TSC2007EVM-PDK (16 pages)
- UCC38500EVM (16 pages)
- TMS320C6000 (62 pages)
- SCAU020 (21 pages)
- TPS40051 (17 pages)
- TNETE2201 (14 pages)
- TMS320C64x DSP (306 pages)
- UCC2891 (21 pages)
- MSP430 (138 pages)
- TMS320C6712D (102 pages)
- MSP430x4xx (512 pages)
- TMS320C6454 (225 pages)
- SPRU938B (48 pages)
- TUSB3210 (22 pages)
- TMS320C6457 (43 pages)
- CC2530ZNP (3 pages)
- TMS320C6455 (50 pages)
- TSB12LV26 (91 pages)
- TMS320C6472 (2 pages)
- VLYNQ Port (49 pages)
- TMS380C26 (92 pages)
- MSP-FET430 (95 pages)
- TMS320TCI6486 (160 pages)
- TPS2330 (22 pages)
- DM648 DSP (47 pages)
- TMS320DM36X (134 pages)
- MSC1211 (35 pages)
- SPRAA56 (29 pages)
- DAC7741EVM (28 pages)
- CDCM7005 (34 pages)
- TMS370 (99 pages)
- Adpater (37 pages)
- TMS320C6452 DSP (46 pages)