📄 gps.s
字号:
.module gps.c
.area data(ram, con, rel)
_bn::
.blkb 2
.area idata
.word 0
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e bn _bn I
_lin1::
.blkb 16
.area idata
.byte 202,177,188,228,58,48,48,58,48,48,58,48,48,32,'A,0
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e lin1 _lin1 A[16:16]c
_lin2::
.blkb 16
.area idata
.byte 190,173,182,200,58,48,48,48,48,48,46,48,48,48,48,0
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e lin2 _lin2 A[16:16]c
_lin3::
.blkb 15
.area idata
.byte 206,179,182,200,58,48,48,48,48,46,48,48,48,48,0
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e lin3 _lin3 A[15:15]c
_lin4::
.blkb 15
.area idata
.byte 32,32,182,171,190,173,32,32,177,177,206,179,32,32,0
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e lin4 _lin4 A[15:15]c
_data_item::
.blkb 1
.area idata
.byte 0
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e data_item _data_item c
_g_Ptr::
.blkb 1
.area idata
.byte 0
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e g_Ptr _g_Ptr c
_g_Class::
.blkb 1
.area idata
.byte 0
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e g_Class _g_Class c
_g_DataVari::
.blkb 1
.area idata
.byte 0
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e g_DataVari _g_DataVari c
_rece_num::
.blkb 2
.area idata
.word 0
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e rece_num _rece_num i
_g_DisTime::
.blkb 6
.area idata
.byte 48,48,48,48,48,48
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e g_DisTime _g_DisTime A[6:6]c
_g_Diss::
.blkb 1
.area idata
.byte 32
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e g_Diss _g_Diss A[1:1]c
_g_Diswie::
.blkb 9
.area idata
.byte 48,48,48,48,46,49,49,49,49
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e g_Diswie _g_Diswie A[9:9]c
_g_Disns::
.blkb 1
.area idata
.byte 'N
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e g_Disns _g_Disns A[1:1]c
_g_Disjing::
.blkb 10
.area idata
.byte 48,48,48,48,48,46,48,48,48,48
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e g_Disjing _g_Disjing A[10:10]c
_g_Disew::
.blkb 1
.area idata
.byte 'E
.area data(ram, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbsym e g_Disew _g_Disew A[1:1]c
.area text(rom, con, rel)
.dbfile E:\单片机\AVR程序\GPS通信\gps.c
.dbfunc e delay_1us _delay_1us fV
.even
_delay_1us::
.dbline -1
.dbline 94
; //包含所需头文件
; #include <ioM16v.h>
; #include <macros.h>
; //*
; //*
; /***************************************************************************************************
; 宏定义
; ****************************************************************************************************/
;
; #define uchar unsigned char
; #define uint unsigned int
;
; //串行通信
; #define PORT PORTA //选择引脚口
;
; #define setRS PORT|=(1<<1) //串行的片选信号
; #define clearRS PORT&=~(1<<1)
;
; #define setRW PORT|=(1<<2) //串行的数据口
; #define clearRW PORT&=~(1<<2)
;
; #define setCKL PORT|=(1<<3),delay_nus(1) //串行的同步时钟
; #define clearCKL PORT&=~(1<<3),delay_nus(1)
;
; #define Clear WriteCommand(0x01),delay_nms(5) //清屏
;
; #define hanzishu 18 //输入汉字数
; #define howmany0 1 //在开始显示汉字前填入多少个相同的汉字 (一般填空字)
; #define position 6 //填什么样的相同汉字(一般填空字)
; #define homMHZPosition 8 //以多少个汉字位来显示移动汉字
;
; /***************************************************************************************************
; 宏定义
; ****************************************************************************************************/
;
; //全局变量
; uchar temp[17][(howmany0+hanzishu)*2+2];
; bn=0;
;
; char lin1[]={"时间:00:00:00 A"};
; char lin2[]={"经度:00000.0000"};
; char lin3[]={"纬度:0000.0000"};
; char lin4[]={" 东经 北纬 "};
;
; uchar data_item=0; //接收到第几个字节
; uchar g_Ptr = 0; //所要提取的一节信息的字节数
; uchar g_Class = 0; //提取信息节数
; uchar g_DataVari = 0;
; uint rece_num = 0; //
;
;
; uchar g_DisTime[6]={"000000"}; //时间
; uchar g_Diss [1]={" "}; //定位状态
; uchar g_Diswie [9]={"0000.1111"}; //纬度
; uchar g_Disns [1]={"N"}; //北纬N/南纬S
; uchar g_Disjing[10]={"00000.0000"};//经度
; uchar g_Disew [1]={"E"}; //东经E/西经W
; /***************************************************************************************************
; 下面是 全局函数
; ****************************************************************************************************/
; void delay_1us(void) ;//
; void delay_nus(unsigned int n);
; void delay_1ms(void);
; void delay_nms(unsigned int n);
; void send_8bit(uchar ch);//发送8位数据
; void WriteData(uchar data);//写数据
; void WriteCommand(uchar command);//写地址
; void guangbiao(uchar x); //光标开关,1开,0关
; void lcd12864_init(void); //液晶初始化程序
; void Set_display_Adress(uchar y,uchar x);//设置显示坐标:y行,x列
; void display_Char(uchar y, uchar x,uchar);
; void display_String(uchar y,uchar x,uchar *s) ; //显示字符串
; void display_Num(uchar y,uchar x,uint num,char N);//可以显示 N 位的的整数num,(从个位起)最多显示6位
; void Display_Picture(const uchar *tab );//全屏显示图形子程序 128*64
; void Display_Picture32( uchar *tab );//显示图形子程序 32*32
; void display_hanzi();
; void leftmove32x32(uchar *tu );
; void putin (uchar point);
; void clearRAM (void);
; void left_move(void);
; void zaihanzi(void);
; void left_movedisplay(void);
; shownum( unsigned char i,unsigned char j, float num);//LCD显示 显示带有数码包括整数,浮点
; /***************************************************************************************************
; 上述为 全局函数
; ****************************************************************************************************/
;
;
; /*-----------------------------------------------------------------------
; 延时函数
; 系统时钟:8M
; -----------------------------------------------------------------------*/
; void delay_1us(void) //1us延时函数
; {
.dbline 95
; asm("nop");
nop
.dbline -2
L1:
.dbline 0 ; func end
ret
.dbend
.dbfunc e delay_nus _delay_nus fV
; i -> R20,R21
; n -> R22,R23
.even
_delay_nus::
xcall push_gset2
movw R22,R16
.dbline -1
.dbline 98
; }
; void delay_nus(unsigned int n) //N us延时函数
; {
.dbline 99
; unsigned int i=0;
clr R20
clr R21
.dbline 100
; for (i=0;i<n;i++)
xjmp L6
L3:
.dbline 101
xcall _delay_1us
L4:
.dbline 100
subi R20,255 ; offset = 1
sbci R21,255
L6:
.dbline 100
cp R20,R22
cpc R21,R23
brlo L3
.dbline -2
L2:
xcall pop_gset2
.dbline 0 ; func end
ret
.dbsym r i 20 i
.dbsym r n 22 i
.dbend
.dbfunc e delay_1ms _delay_1ms fV
; i -> R16,R17
.even
_delay_1ms::
.dbline -1
.dbline 104
; delay_1us();
; }
; void delay_1ms(void) //1ms延时函数
; {
.dbline 106
clr R16
clr R17
xjmp L11
L8:
.dbline 106
L9:
.dbline 106
subi R16,255 ; offset = 1
sbci R17,255
L11:
.dbline 106
; unsigned int i;
; for (i=0;i<1140;i++);
cpi R16,116
ldi R30,4
cpc R17,R30
brlo L8
.dbline -2
L7:
.dbline 0 ; func end
ret
.dbsym r i 16 i
.dbend
.dbfunc e delay_nms _delay_nms fV
; i -> R20,R21
; n -> R22,R23
.even
_delay_nms::
xcall push_gset2
movw R22,R16
.dbline -1
.dbline 109
; }
; void delay_nms(unsigned int n) //N ms延时函数
; {
.dbline 110
; unsigned int i=0;
clr R20
clr R21
.dbline 111
; for (i=0;i<n;i++)
xjmp L16
L13:
.dbline 112
xcall _delay_1ms
L14:
.dbline 111
subi R20,255 ; offset = 1
sbci R21,255
L16:
.dbline 111
cp R20,R22
cpc R21,R23
brlo L13
.dbline -2
L12:
xcall pop_gset2
.dbline 0 ; func end
ret
.dbsym r i 20 i
.dbsym r n 22 i
.dbend
.area lit(rom, con, rel)
_HZ::
.byte 64,16
.byte 32,16
.byte 48,16
.byte 32,16
.byte 7,254
.byte 0,16
.byte 2,16
.byte 225,16
.byte 33,144
.byte 33,16
.byte 32,16
.byte 32,'P
.byte 32,32
.byte 'X,0
.byte 135,254
.byte 0,0
.byte 1,0
.byte 1,0
.byte 1,0
.byte 63,252
.byte 1,0
.byte 1,0
.byte 1,0
.byte 1,0
.byte 127,254
.byte 2,0
.byte 6,0
.byte 8,32
.byte 16,16
.byte 63,248
.byte 16,16
.byte 0,0
.byte 63,252
.byte 32,4
.byte 63,252
.byte 32,0
.byte 47,248
.byte 32,128
.byte 39,248
.byte 36,136
.byte 39,248
.byte 32,128
.byte 47,252
.byte 40,164
.byte 'H,244
.byte 'K,20
.byte 136,4
.byte 8,12
.byte 0,0
.byte 63,252
.byte 1,0
.byte 1,0
.byte 1,0
.byte 1,0
.byte 255,254
.byte 1,0
.byte 1,0
.byte 1,0
.byte 1,0
.byte 1,0
.byte 1,0
.byte 9,0
.byte 5,0
.byte 2,0
.byte 0,0
.byte 127,254
.byte 8,64
.byte 8,64
.byte 31,64
.byte 17,'F
.byte 33,'X
.byte 50,96
.byte 'J,64
.byte 138,64
.byte 4,64
.byte 4,'B
.byte 8,'B
.byte 48,'B
.byte 192,62
.byte 0,0
.byte 32,32
.byte 16,32
.byte 16,32
.byte 253,252
.byte 5,36
.byte 9,36
.byte 17,252
.byte 57,36
.byte 'U,36
.byte 149,252
.byte 17,36
.byte 16,32
.byte 16,32
.byte 16,32
.byte 16,32
.byte 16,32
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 255,248
.byte 18,8
.byte 18,'H
.byte 18,'H
.byte 18,'H
.byte 126,'H
.byte 18,'H
.byte 18,'H
.byte 18,168
.byte 28,160
.byte 225,34
.byte 1,34
.byte 2,34
.byte 4,30
.byte 8,0
.byte 2,0
.byte 2,0
.byte 127,254
.byte 4,0
.byte 4,0
.byte 8,64
.byte 24,64
.byte 23,252
.byte 48,64
.byte 'P,64
.byte 144,64
.byte 16,64
.byte 16,64
.byte 23,254
.byte 16,0
.byte 0,0
.byte 0,0
.byte 8,0
.byte 8,4
.byte 15,254
.byte 8,0
.byte 8,0
.byte 15,252
.byte 0,4
.byte 0,4
.byte 0,36
.byte 127,244
.byte 0,4
.byte 0,4
.byte 0,'H
.byte 0,48
.byte 0,0
.byte 1,0
.byte 1,0
.byte 1,0
.byte 63,248
.byte 1,0
.byte 1,0
.byte 255,254
.byte 3,0
.byte 3,128
.byte 5,64
.byte 5,32
.byte 9,24
.byte 49,14
.byte 193,4
.byte 1,0
.byte 1,0
.byte 1,0
.byte 1,0
.byte 63,252
.byte 1,0
.byte 9,48
.byte 5,32
.byte 3,64
.byte 127,254
.byte 1,128
.byte 3,64
.byte 5,32
.byte 9,24
.byte 49,14
.byte 193,4
.byte 1,0
.byte 1,0
.byte 8,0
.byte 8,124
.byte 8,'D
.byte 127,'D
.byte 8,'D
.byte 8,'D
.byte 8,'D
.byte 255,'D
.byte 16,'D
.byte 18,'D
.byte 33,'D
.byte 39,212
.byte 'y,'H
.byte 32,64
.byte 0,64
.byte 0,64
.byte 1,0
.byte 1,0
.byte 1,0
.byte 1,0
.byte 63,248
.byte 33,8
.byte 33,8
.byte 33,8
.byte 63,248
.byte 33,8
.byte 33,8
.byte 33,8
.byte 33,8
.byte 63,248
.byte 32,8
.byte 0,0
.byte 6,64
.byte 56,'P
.byte 8,'H
.byte 8,'H
.byte 8,64
.byte 255,254
.byte 8,64
.byte 8,'H
.byte 14,40
.byte 56,48
.byte 200,32
.byte 8,'P
.byte 9,146
.byte 8,10
.byte 40,6
.byte 16,2
.byte 10,0
.byte 9,0
.byte 17,188
.byte 17,4
.byte 52,4
.byte 36,4
.byte 'd,4
.byte 164,4
.byte 36,4
.byte 36,4
.byte 36,4
.byte 36,4
.byte 36,4
.byte 36,20
.byte 36,8
.byte 0,0
.byte 17,16
.byte 9,32
.byte 127,254
.byte 64,4
.byte 15,224
.byte 8,32
.byte 15,224
.byte 0,0
.byte 63,240
.byte 1,0
.byte 63,248
.byte 1,0
.byte 127,252
.byte 1,0
.byte 5,0
.byte 2,0
.byte 32,0
.byte 35,252
.byte 34,4
.byte 251,252
.byte 34,0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -