LED_DIS.LST
资源名称:TELEPHONE.rar [点击查看]
上传用户:woden7206
上传日期:2015-11-28
资源大小:14486k
文件大小:14k
源码类别:
单片机开发
开发平台:
MultiPlatform
- C51 COMPILER V8.08 LED_DIS 04/26/2008 20:29:08 PAGE 1
- C51 COMPILER V8.08, COMPILATION OF MODULE LED_DIS
- OBJECT MODULE PLACED IN LED_DIS.OBJ
- COMPILER INVOKED BY: C:KeilC51BINC51.EXE LED_DIS.c BROWSE DEBUG OBJECTEXTEND
- line level source
- 1 #include<reg52.h>
- 2 #include <intrins.h>
- 3 #include"type.h"
- 4 #include"LED_DIS.H"
- 5 void delay(UINT t)
- 6 {
- 7 1 UCHAR i;
- 8 1 while(t--)
- 9 1 {
- 10 2 for(i=0;i<10;i++);
- 11 2 }
- 12 1
- 13 1 }
- 14 void switch_DIS(UCHAR S_DAT)
- 15 {
- 16 1 switch(S_DAT)
- 17 1 {
- 18 2 case 0:
- 19 2 {
- 20 3 LED_DIS_D0=0;
- 21 3 LED_DIS_D1=0;
- 22 3 LED_DIS_D2=0;
- 23 3 LED_DIS_D3=0;
- 24 3
- 25 3 } break;
- 26 2 case 1:
- 27 2 {
- 28 3 LED_DIS_D0=1;
- 29 3 LED_DIS_D1=0;
- 30 3 LED_DIS_D2=0;
- 31 3 LED_DIS_D3=0;
- 32 3
- 33 3 } break;
- 34 2 case 2:
- 35 2 {
- 36 3
- 37 3 LED_DIS_D0=0;
- 38 3 LED_DIS_D1=1;
- 39 3 LED_DIS_D2=0;
- 40 3 LED_DIS_D3=0;
- 41 3
- 42 3 } break;
- 43 2 case 3:
- 44 2 {
- 45 3
- 46 3 LED_DIS_D0=1;
- 47 3 LED_DIS_D1=1;
- 48 3 LED_DIS_D2=0;
- 49 3 LED_DIS_D3=0;
- 50 3
- 51 3 } break;
- 52 2 case 4:
- 53 2 {
- 54 3
- 55 3 LED_DIS_D0=0;
- C51 COMPILER V8.08 LED_DIS 04/26/2008 20:29:08 PAGE 2
- 56 3 LED_DIS_D1=0;
- 57 3 LED_DIS_D2=1;
- 58 3 LED_DIS_D3=0;
- 59 3
- 60 3 } break;
- 61 2 case 5:
- 62 2 {
- 63 3
- 64 3
- 65 3 LED_DIS_D0=1;
- 66 3 LED_DIS_D1=0;
- 67 3 LED_DIS_D2=1;
- 68 3 LED_DIS_D3=0;
- 69 3
- 70 3 } break;
- 71 2 case 6:
- 72 2 {
- 73 3
- 74 3 LED_DIS_D0=0;
- 75 3 LED_DIS_D1=1;
- 76 3 LED_DIS_D2=1;
- 77 3 LED_DIS_D3=0;
- 78 3
- 79 3 } break;
- 80 2 case 7:
- 81 2 {
- 82 3 LED_DIS_D0=1;
- 83 3 LED_DIS_D1=1;
- 84 3 LED_DIS_D2=1;
- 85 3 LED_DIS_D3=0;
- 86 3
- 87 3 } break;
- 88 2 case 8:
- 89 2 {
- 90 3
- 91 3 LED_DIS_D0=0;
- 92 3 LED_DIS_D1=0;
- 93 3 LED_DIS_D2=0;
- 94 3 LED_DIS_D3=1;
- 95 3
- 96 3 } break;
- 97 2 case 9:
- 98 2 {
- 99 3
- 100 3 LED_DIS_D0=1;
- 101 3 LED_DIS_D1=0;
- 102 3 LED_DIS_D2=0;
- 103 3 LED_DIS_D3=1;
- 104 3
- 105 3 } break;
- 106 2 default:break;
- 107 2
- 108 2
- 109 2 }
- 110 1 }
- 111 void LED_DIS(UCHAR LED_DSI_DAT)
- 112 {
- 113 1 UCHAR DIS_DAT0,DIS_DAT1;
- 114 1
- 115 1 DIS_DAT0=LED_DSI_DAT/10;
- 116 1 DIS_DAT1=LED_DSI_DAT%10;
- 117 1
- C51 COMPILER V8.08 LED_DIS 04/26/2008 20:29:08 PAGE 3
- 118 1 LED_DIS_A0=0;
- 119 1 LED_DIS_A1=1;
- 120 1 switch_DIS(DIS_DAT0);
- 121 1 delay(5);
- 122 1 LED_DIS_A0=1;
- 123 1 LED_DIS_A1=0;
- 124 1 switch_DIS(DIS_DAT1);
- 125 1 delay(5);
- 126 1 /* case 0:
- 127 1 {
- 128 1 LED_DIS_D0=0;
- 129 1 LED_DIS_D1=0;
- 130 1 LED_DIS_D2=0;
- 131 1 LED_DIS_D3=0;
- 132 1 LED_DIS_A0=0;
- 133 1 LED_DIS_A1=0;
- 134 1 } break;
- 135 1 case 1:
- 136 1 {
- 137 1 LED_DIS_D0=0;
- 138 1 LED_DIS_D1=0;
- 139 1 LED_DIS_D2=0;
- 140 1 LED_DIS_D3=0;
- 141 1 LED_DIS_A0=0;
- 142 1 LED_DIS_A1=1;
- 143 1 delay(1);
- 144 1 LED_DIS_A0=1;
- 145 1 LED_DIS_A1=0;
- 146 1 LED_DIS_D0=1;
- 147 1 LED_DIS_D1=0;
- 148 1 LED_DIS_D2=0;
- 149 1 LED_DIS_D3=0;
- 150 1 delay(1);
- 151 1 } break;
- 152 1 case 2:
- 153 1 {
- 154 1 LED_DIS_D0=0;
- 155 1 LED_DIS_D1=0;
- 156 1 LED_DIS_D2=0;
- 157 1 LED_DIS_D3=0;
- 158 1 LED_DIS_A0=0;
- 159 1 LED_DIS_A1=1;
- 160 1 delay(1);
- 161 1 LED_DIS_A0=1;
- 162 1 LED_DIS_A1=0;
- 163 1 LED_DIS_D0=0;
- 164 1 LED_DIS_D1=1;
- 165 1 LED_DIS_D2=0;
- 166 1 LED_DIS_D3=0;
- 167 1 delay(1);
- 168 1 } break;
- 169 1 case 3:
- 170 1 {
- 171 1 LED_DIS_D0=0;
- 172 1 LED_DIS_D1=0;
- 173 1 LED_DIS_D2=0;
- 174 1 LED_DIS_D3=0;
- 175 1 LED_DIS_A0=0;
- 176 1 LED_DIS_A1=1;
- 177 1 delay(1);
- 178 1 LED_DIS_A0=1;
- 179 1 LED_DIS_A1=0;
- C51 COMPILER V8.08 LED_DIS 04/26/2008 20:29:08 PAGE 4
- 180 1 LED_DIS_D0=1;
- 181 1 LED_DIS_D1=1;
- 182 1 LED_DIS_D2=0;
- 183 1 LED_DIS_D3=0;
- 184 1 delay(1);
- 185 1 } break;
- 186 1 case 4:
- 187 1 {
- 188 1 LED_DIS_D0=0;
- 189 1 LED_DIS_D1=0;
- 190 1 LED_DIS_D2=0;
- 191 1 LED_DIS_D3=0;
- 192 1 LED_DIS_A0=0;
- 193 1 LED_DIS_A1=1;
- 194 1 delay(1);
- 195 1 LED_DIS_A0=1;
- 196 1 LED_DIS_A1=0;
- 197 1 LED_DIS_D0=0;
- 198 1 LED_DIS_D1=0;
- 199 1 LED_DIS_D2=1;
- 200 1 LED_DIS_D3=0;
- 201 1 delay(1);
- 202 1 } break;
- 203 1 case 5:
- 204 1 {
- 205 1
- 206 1 LED_DIS_D0=0;
- 207 1 LED_DIS_D1=0;
- 208 1 LED_DIS_D2=0;
- 209 1 LED_DIS_D3=0;
- 210 1 LED_DIS_A0=0;
- 211 1 LED_DIS_A1=1;
- 212 1 delay(1);
- 213 1 LED_DIS_A0=1;
- 214 1 LED_DIS_A1=0;
- 215 1 LED_DIS_D0=1;
- 216 1 LED_DIS_D1=0;
- 217 1 LED_DIS_D2=1;
- 218 1 LED_DIS_D3=0;
- 219 1 delay(1);
- 220 1 } break;
- 221 1 case 6:
- 222 1 {
- 223 1 LED_DIS_D0=0;
- 224 1 LED_DIS_D1=0;
- 225 1 LED_DIS_D2=0;
- 226 1 LED_DIS_D3=0;
- 227 1 LED_DIS_A0=0;
- 228 1 LED_DIS_A1=1;
- 229 1 delay(1);
- 230 1 LED_DIS_A0=1;
- 231 1 LED_DIS_A1=0;
- 232 1 LED_DIS_D0=0;
- 233 1 LED_DIS_D1=1;
- 234 1 LED_DIS_D2=1;
- 235 1 LED_DIS_D3=0;
- 236 1 delay(1);
- 237 1 } break;
- 238 1 case 7:
- 239 1 { LED_DIS_D0=0;
- 240 1 LED_DIS_D1=0;
- 241 1 LED_DIS_D2=0;
- C51 COMPILER V8.08 LED_DIS 04/26/2008 20:29:08 PAGE 5
- 242 1 LED_DIS_D3=0;
- 243 1 LED_DIS_A0=0;
- 244 1 LED_DIS_A1=1;
- 245 1 delay(1);
- 246 1 LED_DIS_A0=1;
- 247 1 LED_DIS_A1=0;
- 248 1 LED_DIS_D0=1;
- 249 1 LED_DIS_D1=1;
- 250 1 LED_DIS_D2=1;
- 251 1 LED_DIS_D3=0;
- 252 1 delay(1);
- 253 1 } break;
- 254 1 case 8:
- 255 1 {
- 256 1 LED_DIS_D0=0;
- 257 1 LED_DIS_D1=0;
- 258 1 LED_DIS_D2=0;
- 259 1 LED_DIS_D3=0;
- 260 1 LED_DIS_A0=0;
- 261 1 LED_DIS_A1=1;
- 262 1 delay(1);
- 263 1 LED_DIS_A0=1;
- 264 1 LED_DIS_A1=0;
- 265 1 LED_DIS_D0=0;
- 266 1 LED_DIS_D1=0;
- 267 1 LED_DIS_D2=0;
- 268 1 LED_DIS_D3=1;
- 269 1 delay(1);
- 270 1 } break;
- 271 1 case 9:
- 272 1 {
- 273 1 LED_DIS_D0=0;
- 274 1 LED_DIS_D1=0;
- 275 1 LED_DIS_D2=0;
- 276 1 LED_DIS_D3=0;
- 277 1 LED_DIS_A0=0;
- 278 1 LED_DIS_A1=1;
- 279 1 delay(1);
- 280 1 LED_DIS_A0=1;
- 281 1 LED_DIS_A1=0;
- 282 1 LED_DIS_D0=1;
- 283 1 LED_DIS_D1=0;
- 284 1 LED_DIS_D2=0;
- 285 1 LED_DIS_D3=1;
- 286 1 delay(1);
- 287 1 } break; */
- 288 1
- 289 1
- 290 1
- 291 1 }
- MODULE INFORMATION: STATIC OVERLAYABLE
- CODE SIZE = 175 ----
- 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)