23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WDMOD<br />

(0x4004_0000)<br />

WDCR<br />

(0x4004_0004)<br />

Under development<br />

Watchdog Timer Mode Register<br />

7 6 5 4 3 2 1 0<br />

bit Symbol WDTE WDTP2 WDTP1 WDTP0 I2WDT RESCR<br />

Read/Write R/W R/W R R/W R/W<br />

After reset 1 0 0 0 0 1 0<br />

Function WDT Selects WDT detection time<br />

control<br />

1: enable<br />

000: 2 16 /fSYS<br />

001: 2 18 /fSYS<br />

010: 2 20 /fSYS<br />

011: 2 22 "0" is IDLE<br />

Write "0."<br />

/fSYS<br />

read. 0: Stop<br />

1: Start<br />

0:<br />

Generates<br />

NMI<br />

interrupt<br />

100: 2 24 /fSYS<br />

101: 2 26 /fSYS<br />

110: Setting prohibited<br />

111: Setting prohibited<br />

Detection time of watchdog timer @ fc = 40 MHz<br />

<strong>TMPM330</strong> (rev 0.4) 14-4<br />

1:<br />

Connects<br />

WDTOUT<br />

to reset<br />

Watchdog timer out control<br />

0 Generates NMI interrupt<br />

1 Connects WDT out to reset<br />

<strong>TMPM330</strong><br />

SYSCR1<br />

Detection time of watchdog timer<br />

clock gear<br />

WDMOD<br />

value<br />

<br />

000 001 010 011 100 101<br />

000 (fc) 1.63 ms 6.55 ms 26.21 ms 104.86 ms 419.43 ms 1.68 s<br />

100 (fc/2) 3.28 ms 13.11 ms 52.43 ms 209.72 ms 838.86 ms 3.36 s<br />

101 (fc/4) 6.55 ms 26.21 ms 104.86 ms 419.43 ms 1.68 s 6.71 s<br />

110 (fc/8) 13.11 ms 52.43 ms 209.72 ms 838.86 ms 3.36 s 13.42 s<br />

Enable/disable control of the watchdog timer<br />

0 Disable<br />

1 Enable<br />

Watchdog Timer Control Register<br />

¥ 7 6 5 4 3 2 1 0<br />

bit Symbol ⎯<br />

Read/Write W<br />

After reset ⎯<br />

Function B1H : WDT disable code<br />

4EH : WDT clear code<br />

Fig. 14-4 Watchdog Timer Registers<br />

Disable & clear of WDT<br />

B1H WDT disable code<br />

4EH WDT clear code<br />

Others ⎯<br />

Watchdog Timer

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!