C51 COMPILER V9.60.7.0 MAIN 12/28/2024 14:20:14 PAGE 1 C51 COMPILER V9.60.7.0, COMPILATION OF MODULE MAIN OBJECT MODULE PLACED IN .\Objects\main.obj COMPILER INVOKED BY: D:\software\KEIL51\C51\BIN\C51.EXE main.c OPTIMIZE(8,SPEED) BROWSE DEBUG OBJECTEXTEND PRINT(.\Listi -ngs\main.lst) TABS(2) OBJECT(.\Objects\main.obj) line level source 1 #include 2 #include 3 4 sfr P3M0 = 0xb2; 5 sfr P3M1 = 0xb1; 6 sfr P5M0 = 0xca; 7 sfr P5M1 = 0xc9; 8 9 sfr P5 = 0xc8; 10 11 sbit negative = P3^3; 12 sbit positive = P3^2; 13 sbit synchronous = P5^5; 14 void Delay1ms() //@30.000MHz 15 { 16 1 unsigned char i, j; 17 1 18 1 _nop_(); 19 1 _nop_(); 20 1 i = 39; 21 1 j = 243; 22 1 do 23 1 { 24 2 while (--j); 25 2 } while (--i); 26 1 } 27 28 29 void Delay500us() //@30.000MHz 30 { 31 1 unsigned char i, j; 32 1 33 1 _nop_(); 34 1 _nop_(); 35 1 i = 39; 36 1 j = 121; 37 1 do 38 1 { 39 2 while (--j); 40 2 } while (--i); 41 1 } 42 43 void delay_ms(unsigned int ms) 44 { 45 1 unsigned int a ; 46 1 for (a = 0;a