Zlg7290.LST
资源名称:USB_2.0.rar [点击查看]
上传用户:ids068
上传日期:2013-04-04
资源大小:639k
文件大小:3k
源码类别:
USB编程
开发平台:
C/C++
- C51 COMPILER V7.06 ZLG7290 07/02/2003 10:05:14 PAGE 1
- C51 COMPILER V7.06, COMPILATION OF MODULE ZLG7290
- OBJECT MODULE PLACED IN Zlg7290.OBJ
- COMPILER INVOKED BY: C:KEILC51BINC51.EXE Zlg7290.c OPTIMIZE(2,SPEED) BROWSE DEBUG OBJECTEXTEND
- stmt level source
- 1 #include "reg51.h"
- 2 #include "viic_c51.h"
- 3
- 4 #define zlg7290 0x70
- 5
- 6 #define SubKey 0x01
- 7 #define SubCmdBuf 0x07
- 8 #define SubDpRam 0x10
- 9
- 10 void delayMS(unsigned char i)
- 11 {
- 12 1 unsigned char j,k;
- 13 1 for(k=0;k<i;k++)
- 14 1 for(j=0;j<60;j++);
- 15 1 }
- 16 unsigned char ZLG7290_SendData(unsigned char SubAdd,unsigned char Data)
- 17 {
- 18 1 if(SubAdd>0x17)
- 19 1 return 0;
- 20 1 ISendStr(zlg7290,SubAdd,&Data,1);
- 21 1 delayMS(10);
- 22 1 return 1;
- 23 1 }
- 24 unsigned char ZLG7290_SendCmd(unsigned char Data1,unsigned char Data2)
- 25 {
- 26 1 unsigned char Data[2];
- 27 1 Data[0]=Data1;
- 28 1 Data[1]=Data2;
- 29 1 ISendStr(zlg7290,0x07,Data,2);
- 30 1 delayMS(10);
- 31 1 return 1;
- 32 1 }
- 33 void ZLG7290_SendBuf(unsigned char * disp_buf,unsigned char num)
- 34 {
- 35 1 unsigned char i;
- 36 1 for(i=0;i<num;i++)
- 37 1 {
- 38 2 ZLG7290_SendCmd(0x60+i,*disp_buf);
- 39 2 disp_buf++;
- 40 2 }
- 41 1 }
- 42 unsigned char ZLG7290_GetKey()
- 43 {
- 44 1 unsigned char rece;
- 45 1 rece=0;
- 46 1 IRcvStr(zlg7290,1,&rece,1);
- 47 1 delayMS(10);
- 48 1 return rece;
- 49 1 }
- 50
- MODULE INFORMATION: STATIC OVERLAYABLE
- CODE SIZE = 182 ----
- CONSTANT SIZE = ---- ----
- C51 COMPILER V7.06 ZLG7290 07/02/2003 10:05:14 PAGE 2
- XDATA SIZE = ---- ----
- PDATA SIZE = ---- ----
- DATA SIZE = ---- 15
- IDATA SIZE = ---- ----
- BIT SIZE = ---- ----
- END OF MODULE INFORMATION.
- C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)