📄 uart.lst
字号:
C51 COMPILER V7.50 UART 01/06/2006 13:37:04 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE UART
OBJECT MODULE PLACED IN UART.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE UART.C BROWSE MODDP2 DEBUG OBJECTEXTEND
line level source
1 #include "REG1210.H"
2 #include"SystemDeclare.h"
3 ////////////////////////////////////////////////////
4 struct Communication{
5 unsigned char ReceivedLength;
6 unsigned char SentLength;
7 unsigned char ReceiveMaxLength;
8 unsigned char SendLength;
9 unsigned char ReceiveTimeOut;
10 unsigned char FinishReceiving;
11 unsigned char FinishSending;
12 } Usart;
13 unsigned char xdata UsartReceiveBuff[UARTBuffLength];
14 unsigned char xdata UsartSendBuff[UARTBuffLength];
15
16 ////////////////////////////////////////////////////
17 void UsartReceive(void)
18 { if(Usart.ReceivedLength<Usart.ReceiveMaxLength)
19 1 {
20 2 UsartReceiveBuff[Usart.ReceivedLength++]=SBUF0;
21 2 }
22 1 Usart.ReceiveTimeOut=0;
23 1 }
24 ////////////////////////////////////////////////////
25 void UsartSend(void)
26 {
27 1 if(Usart.SentLength<Usart.SendLength)
28 1 {
29 2 SBUF0=UsartSendBuff[Usart.SentLength++];
30 2 }
31 1 else
32 1 {
33 2 Usart.FinishSending=1;
34 2 }
35 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 57 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = 200 ----
PDATA SIZE = ---- ----
DATA SIZE = 7 ----
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 + -