📄 watchdog.lst
字号:
C51 COMPILER V7.10 WATCHDOG 06/08/2004 13:56:49 PAGE 1
C51 COMPILER V7.10, COMPILATION OF MODULE WATCHDOG
OBJECT MODULE PLACED IN Watchdog.OBJ
COMPILER INVOKED BY: C:\KEIL\C51\BIN\C51.EXE Watchdog.c BROWSE DEBUG OBJECTEXTEND TABS(3)
line level source
1 /**
2 * @file $RCSfile: TWI.c,v $
3 *
4 * Copyright (c) 2004 Atmel.
5 *
6 * Please read file license.txt for copyright notice.
7 *
8 * @brief This file is an example to use Watchdog.
9 *
10 * This file can be parsed by Doxygen for automatic documentation
11 * generation.
12 * Put here the functional description of this file within the software
13 * architecture of your program.
14 *
15 * @version $Revision: 1.0 $ $Name: $
16 */
17
18 /* @section I N C L U D E S */
19 #include "reg_C51.h"
20
21 /**
22 * FUNCTION_PURPOSE:this function setup Watchdog.
23 * FUNCTION_INPUTS:void
24 * FUNCTION_OUTPUTS:void
25 */
26 void main(void)
27 {
28 1
29 1 /*
30 1 Selected Time-out
31 1
32 1 mode X1 12 clock periods per peripheral clock cycle.
33 1 mode X2 6 clock periods per peripheral clock cycle.
34 1
35 1 WDTPRG|=0x00 (2^14 - 1) machine cycles, 16. 3 ms @ FOSCA =12 MHz
36 1 WDTPRG|=0x01 (2^15 - 1) machine cycles, 32.7 ms @ FOSCA=12 MHz
37 1 WDTPRG|=0x02 (2^16 - 1) machine cycles, 65. 5 ms @ FOSCA=12 MHz
38 1 WDTPRG|=0x03 (2^17 - 1) machine cycles, 131 ms @ FOSCA=12 MHz
39 1 WDTPRG|=0x04 (2^18 - 1) machine cycles, 262 ms @ FOSCA=12 MHz
40 1 WDTPRG|=0x05 (2^19 - 1) machine cycles, 542 ms @ FOSCA=12 MHz
41 1 WDTPRG|=0x06 (2^20 - 1) machine cycles, 1.05 s @ FOSCA=12 MHz
42 1 WDTPRG|=0x07 (2^21 - 1) machine cycles, 2.09 s @ FOSCA=12 MHz
43 1
44 1 */
45 1
46 1 WDTPRG|=0x07;/*2.275s @ FOSCA=11.059200 MHz */
47 1
48 1 /* watchdog start sequence */
49 1 WDTRST=0x1E;
50 1 WDTRST=0xE1;
51 1
52 1 while(1) /* end less */
53 1 {
54 2 /***********************************************
55 2 * PROGRAM *
C51 COMPILER V7.10 WATCHDOG 06/08/2004 13:56:49 PAGE 2
56 2 ************************************************/
57 2
58 2 /* watchdog reset sequence */
59 2 WDTRST=0x1E;
60 2 WDTRST=0xE1;
61 2 }
62 1
63 1 }
64
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 17 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -