C51 COMPILER V9.54   TIMER3                                                                12/03/2024 14:58:48 PAGE 1   


C51 COMPILER V9.54, COMPILATION OF MODULE TIMER3
OBJECT MODULE PLACED IN .\Objects\timer3.obj
COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE public\timer3.c OPTIMIZE(8,SPEED) BROWSE INCDIR(.\public) DEBUG OBJECTEX
                    -TEND PRINT(.\Listings\timer3.lst) OBJECT(.\Objects\timer3.obj)

line level    source

   1          #include "timer3.h"
   2          
   3          
   4          void T3_Init(void)
   5          {
   6   1              CLKCFG &= 0xBF;         //SSEL选择ILRC
   7   1              
   8   1              T3CON |= 0x02;          //T3时钟源选择内部32K 
   9   1      //      T3CON |= 0x30;          //预分频选择256分频
  10   1              
  11   1              TL3 = 0x33;                                     //100MS左右
  12   1              TH3 = 0xF3;
  13   1              T3CON |= 0x04;          //TR3 = 1开始定时器3
  14   1      }
  15          //STOP下定时器3工作唤醒
  16          void Timer3_Test(void)
  17          {
  18   1              P4CR |= 0x01;
  19   1              P4 |= 0x01;
  20   1              
  21   1      
  22   1              T3_Init();
  23   1              IEN1 |= 0x02;
  24   1              EA = 1;
  25   1              
  26   1              while(1)
  27   1              {
  28   2                      PCON |= 0x02;           //进入停机模式
  29   2                      P4 = 0x00;
  30   2              }
  31   1              
  32   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     38    ----
   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)
