?? 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 + -