📄 cw6695.lst
字号:
C51 COMPILER V7.50 CW6695 06/07/2007 20:31:54 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE CW6695
OBJECT MODULE PLACED IN .\Debug\cw6695.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE Source\cw6695.c ROM(COMPACT) OPTIMIZE(9,SPEED) BROWSE DEBUG OBJECTEXTEND PR
-INT(.\List\cw6695.lst) OBJECT(.\Debug\cw6695.obj)
line level source
1 #define _CW6695_C_
2 #include"cw6695.h"
3 #include"intrins.h"
4 #undef _CW6695_C_
5 /************************************************************************************
6 * Function : The Reg. Transmit.(16 Bits)
7 * Description : when the ssp start "1111" four bits logic "1" been transmited and
8 * the R/W bit followed then is the 3 bits address,last is the 8 bits
9 * data .MSB
10 *
11 *************************************************************************************/
12 //-------------------- Write Template ---------------
13 void ByteWrite(unsigned char _byte)
14 {
15 1 unsigned char i;
16 1 i=8;
17 1 while(i)
18 1 {
19 2 SSPCLK=0;
20 2 if(_byte&0x80) SSPTR=1;
21 2 else SSPTR=0;
22 2 SSPCLK=1;
23 2 _byte<<=1;
24 2 i--;
25 2 }
26 1 }
27 void SSPWrite(unsigned char _rg,unsigned char _data)
28 {
29 1 ByteWrite((_rg&0x03)|0xf0);
30 1 ByteWrite(_data);
31 1 }
32
33 void InitCW6695(void)
34 {// Power On Inition CW6695
35 1 RESET=0;
36 1 _nop_();
37 1 _nop_();
38 1 _nop_();
39 1 _nop_();
40 1 _nop_();
41 1 _nop_();
42 1 RESET=1;
43 1
44 1 SSPWrite(aCW_reg0,dCW_reg0);
45 1 SSPWrite(aCW_reg1,dCW_reg1);
46 1 SSPWrite(aCW_reg2,dCW_reg2);
47 1 SSPWrite(aCW_reg3,dCW_reg3);
48 1 }
49
50
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 71 ----
C51 COMPILER V7.50 CW6695 06/07/2007 20:31:54 PAGE 2
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 + -