delay.LST 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. C251 COMPILER V5.60.0, delay 28/05/26 15:49:50 PAGE 1
  2. C251 COMPILER V5.60.0, COMPILATION OF MODULE delay
  3. OBJECT MODULE PLACED IN delay.OBJ
  4. COMPILER INVOKED BY: C:\Keil_v5\C251\BIN\C251.EXE delay.c LARGE INTR2 BROWSE DEBUG
  5. stmt level source
  6. 1 #include "STC32G.h"
  7. 2 #include <intrins.h>
  8. 3 #include "delay.h"
  9. 4
  10. 5
  11. 6 void Delay1000ms() //@22.1184MHz
  12. 7 {
  13. 8 1 unsigned long i;
  14. 9 1
  15. 10 1 _nop_();
  16. 11 1 _nop_();
  17. 12 1 i = 5529598UL;
  18. 13 1 while (i) i--;
  19. 14 1 }
  20. 15
  21. 16
  22. 17 void delay85ms(void) //85ms @22.1184MHz
  23. 18 {
  24. 19 1 unsigned long i;
  25. 20 1
  26. 21 1 _nop_();
  27. 22 1 _nop_();
  28. 23 1 i = 470014UL;
  29. 24 1 while (i) i--;
  30. 25 1
  31. 26 1 }
  32. 27
  33. 28 void delay29ms(void) //29ms 11.0592MHz
  34. 29 {
  35. 30 1 unsigned long i;
  36. 31 1
  37. 32 1 i = 160357UL;
  38. 33 1 while (i) i--;
  39. 34 1
  40. 35 1 }
  41. 36
  42. 37
  43. 38 void delay15ms(void) //15ms 11.0592MHz
  44. 39 {
  45. 40 1 unsigned long i;
  46. 41 1
  47. 42 1 _nop_();
  48. 43 1 _nop_();
  49. 44 1 i = 82942UL;
  50. 45 1 while (i) i--;
  51. 46 1
  52. 47 1 }
  53. 48
  54. 49 void delay2us(void) //2us 11.0592MHz
  55. 50 {
  56. 51 1 unsigned long i;
  57. 52 1
  58. 53 1 _nop_();
  59. 54 1 _nop_();
  60. 55 1 _nop_();
  61. 56 1 i = 9UL;
  62. 57 1 while (i) i--;
  63. 58 1
  64. 59 1 }
  65. C251 COMPILER V5.60.0, delay 28/05/26 15:49:50 PAGE 2
  66. 60 void delay2ms(void) //2ms @22.1184MHz
  67. 61
  68. 62 {
  69. 63 1 unsigned long i;
  70. 64 1
  71. 65 1 i = 11058UL;
  72. 66 1 while (i) i--;
  73. 67 1
  74. 68 1
  75. 69 1 }
  76. Module Information Static Overlayable
  77. ------------------------------------------------
  78. code size = 79 ------
  79. ecode size = ------ ------
  80. data size = ------ ------
  81. idata size = ------ ------
  82. pdata size = ------ ------
  83. xdata size = ------ ------
  84. xdata-const size = ------ ------
  85. edata size = ------ ------
  86. bit size = ------ ------
  87. ebit size = ------ ------
  88. bitaddressable size = ------ ------
  89. ebitaddressable size = ------ ------
  90. far data size = ------ ------
  91. huge data size = ------ ------
  92. const size = ------ ------
  93. hconst size = ------ ------
  94. End of Module Information.
  95. C251 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)