📄 uart.lst
字号:
C51 COMPILER V7.06 UART 06/12/2008 23:57:32 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE UART
OBJECT MODULE PLACED IN uart.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE uart.c DEBUG OBJECTEXTEND
stmt level source
1 #ifndef __UART_C__
2 #define __UART_C__
3 #include <config.h>
4 extern uchar idata Data_Pkg[MAX_NUM];
5 extern uchar idata Command[CMD_MAX_NUM];
6 extern uchar idata Buffer[BUFFER_NUM];
7 extern uchar data Ptr_i,Ptr_j;
8 extern uchar data buffer_empty,buffer_ful;
9 void uart_init(void)
10 { /*猧疭瞯19200,22.1184MHZ*/
11 1 EA = 0;
12 1 ES = 0;
13 1 TMOD = 0x21;
14 1 SCON = 0x50;
15 1 TH1 = 0xfd;
16 1 TL1 = 0xfd;
17 1 TCON = 0x44;
18 1 }
19 void uart_interrupt(void) interrupt 4
20 {
21 1
22 1 if (RI)
23 1 {
24 2 RI = 0; /*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -