⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pwmmain.lst

📁 This program shows how to configure and use the Pulse Width Modulator of the following microcontroll
💻 LST
字号:
C51 COMPILER V6.14h  PWMMAIN                                                               07/27/2001 03:58:22 PAGE 1   


C51 COMPILER V6.14h, COMPILATION OF MODULE PWMMAIN
OBJECT MODULE PLACED IN pwmMain.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE pwmMain.c DEBUG OBJECTEXTEND

stmt level    source

   1          /*------------------------------------------------------------------------------
   2          pwmMain.c : Sample Program that demonstrates the pulse width modulator for the
   3          following microcontrollers
   4          
   5          Philips 80C552
   6          Philips 80C554
   7          Philips 83/87C552
   8          Philips 83/87C554
   9          Philips 83/87C557E4
  10          Philips 83/87C557E8
  11          
  12          
  13          Copyright (c) 1988-2001 Keil Elektronik GmbH and Keil Software, Inc.
  14          All rights reserved.
  15          --------------------------------------------------------------------------*/
  16          
  17          sfr PWM0   = 0xFC;
  18          sfr PWM1   = 0xFD;
  19          sfr PWMP   = 0xFE;
  20          
  21          /*------------------------------------------------------------------------------
  22          main() : Runs a while loop as the PWM automatically loops 
  23          ------------------------------------------------------------------------------*/
  24          void main( void )
  25          {
  26   1      	PWMP = 0x01;				//Set the repition frequenct to 2.85kHz
  27   1      	PWM0 = 0x3F;				//Set the Duty cycle to 75%
  28   1      	PWM1 = 0xAA;				//Set the Duty cycle to 33%
  29   1      
  30   1      	while(1);					//Loop while PWM runs in background
  31   1      }


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