Motorola DSP56301 user manual Watchdog Toggle Mode, Mode 10 internal clock TRM =, Watchdog Output

Models: DSP56301

1 372
Download 372 pages 304 b
Page 286
Image 286

Operating Modes

9.3.4.2 Watchdog Toggle (Mode 10)

 

Bit Settings

 

 

 

Mode Characteristics

 

 

 

 

 

 

 

 

 

 

 

 

TC3

TC2

TC1

TC0

Mode

Name

 

Function

TIO

Clock

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

1

0

10

Toggle

 

Watchdog

Output

Internal

In Mode 10, the timer toggles an external signal after a preset period. The TIO signal is set to the value of the INV bit.When the counter equals the value in the TCPR, TCSR[TCF] is set, and a compare interrupt is generated if the TCSR[TCIE] bit is also set. If the TCSR[TRM] bit is set, the counter loads with the TLR value on the next timer clock and the count resumes.

Therefore, TRM = 1 is not useful for watchdog functions. If the TCSR[TRM] bit is cleared, the counter continues to increment on each subsequent timer clock. When a counter overflow occurs, the polarity of the TIO output signal is inverted. The counter is reloaded whenever the TLR is written with a new value while the TCSR[TE] bit is set. This process repeats until the timer is disabled. In Mode 10, internal logic preserves the TIO value and direction for an additional 2.5 internal clock cycles after the hardware RESET signal is asserted. This convention ensures that a valid reset signal is generated when the TIO signal resets the DSP56301.

Mode 10 (internal clock): TRM = 0

 

first event

 

 

TRM = 1 is not useful for watchdog function

N = write preload

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M = write compare

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(CLK/2 or prescale CLK)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TLR

N

Counter

(TCR)

0

N

N + 1

M

M + 1

0

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TCPR

M

TCF (Compare Interrupt if TCIE = 1)

TOF (Overflow Interrupt if TOIE = 1)

float

TIO pin (INV = 0)

low

float

TIO pin (INV = 1)

high

TIO can connect to the RESET pin, internal hardware preserves the TIO value and direction for an additional 2.5 clocks to ensure a reset of valid length.

Figure 9-19.Watchdog Toggle Mode

9-24

DSP56301 User’s Manual

Page 286
Image 286
Motorola DSP56301 user manual Watchdog Toggle Mode, Mode 10 internal clock TRM =, Watchdog Output