Chapter 3 Software Configuration
3-9. WATCHDOG TIMER CONFIGURATION
The
Example Code
(1) |
|
| |
Enable |
|
| |
mov dx,(800h + 65h) | ;Time counting Unit minute or second |
mov al,80h | ;al = 00h : unit minute |
out dx,al | ;al = 80h : unit second |
| |
mov dx,(800h + 66h) ; |
|
mov al,20 | ;al = Watch dog Timer Second(s), 20 sec(s) |
out dx,al |
|
mov dx,(800h + 67h) |
|
mov al,00h |
|
out dx,al |
|
mov dx,(800h + 68h) | ;Start Watch Dog Timer |
mov al,00h |
|
out dx,al |
|
(2) |
|
| |
Disable |
|
| |
mov dx,(800h + 66h) | ;Disable Watch Dog Timer |
|
|
|
|
|