⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.lis

📁 u-blox的GPS模块LEA-5x,三本例子为ATMEGA1280对他的操作的程序
💻 LIS
字号:
                        .module main.c
                        .area text(rom, con, rel)
 0000                   .dbfile E:\item\GPS-1280\main.c
 0000                   .dbfunc e init_devices _init_devices fV
                        .even
 0000           _init_devices::
 0000                   .dbline -1
 0000                   .dbline 12
 0000           ; //ICC-AVR application builder : 2008-10-26 13:13:33
 0000           ; // Target : m1280
 0000           ; // Crystal: 14.7456Mhz
 0000           ; 
 0000           ; #include <iom1280v.h>
 0000           ; #include <macros.h>
 0000           ; #include "uart3.h"
 0000           ; #include "debug.h"
 0000           ; #include "watchdog.h"
 0000           ; 
 0000           ; void init_devices(void)
 0000           ; {
 0000                   .dbline 13
 0000           ;       CLI(); 
 0000 F894              cli
 0002                   .dbline 15
 0002           ;       //--------------------------------
 0002           ;       DDRJ|=(1<<3);   //开GPS模块电源
 0002 80910401          lds R24,260
 0006 8860              ori R24,8
 0008 80930401          sts 260,R24
 000C                   .dbline 16
 000C           ;       PORTJ|=(1<<3);
 000C 80910501          lds R24,261
 0010 8860              ori R24,8
 0012 80930501          sts 261,R24
 0016                   .dbline 18
 0016           ;       //--------------------------------
 0016           ;       DDRG|=(1<<5);   //开GPRS,xflsh电源
 0016 9D9A              sbi 0x13,5
 0018                   .dbline 19
 0018           ;       PORTG|=(1<<5);
 0018 A59A              sbi 0x14,5
 001A                   .dbline 21
 001A           ;       //--------------------------------
 001A           ;       watchdog_init();
 001A 0E940000          xcall _watchdog_init
 001E                   .dbline 22
 001E           ;       uart3_init();
 001E 0E940000          xcall _uart3_init
 0022                   .dbline 23
 0022           ;       SEI();
 0022 7894              sei
 0024                   .dbline -2
 0024           L1:
 0024                   .dbline 0 ; func end
 0024 0895              ret
 0026                   .dbend
 0026                   .dbfunc e main _main fV
                        .even
 0026           _main::
 0026                   .dbline -1
 0026                   .dbline 27
 0026           ; }
 0026           ; 
 0026           ; void main(void)
 0026           ; {
 0026                   .dbline 28
 0026           ;       init_devices();
 0026 ECDF              xcall _init_devices
 0028                   .dbline 29
 0028           ;       debug_str("GPS ^_^");
 0028 00E0              ldi R16,<L3
 002A 10E0              ldi R17,>L3
 002C 0E940000          xcall _debug_str
 0030 04C0              xjmp L5
 0032           L4:
 0032                   .dbline 32
 0032           ;       
 0032           ;       while(1)
 0032           ;       {
 0032                   .dbline 33
 0032           ;               watchdog_set();
 0032 0E940000          xcall _watchdog_set
 0036                   .dbline 34
 0036           ;               uart3_function();
 0036 0E940000          xcall _uart3_function
 003A                   .dbline 35
 003A           ;       }
 003A           L5:
 003A                   .dbline 31
 003A FBCF              xjmp L4
 003C           X0:
 003C                   .dbline -2
 003C           L2:
 003C                   .dbline 0 ; func end
 003C 0895              ret
 003E                   .dbend
                        .area data(ram, con, rel)
 0000                   .dbfile E:\item\GPS-1280\main.c
 0000           L3:
 0000                   .blkb 8
                        .area idata
 0000 475053205E5F5E00  .byte 'G,'P,'S,32,94,95,94,0
                        .area data(ram, con, rel)
 0008                   .dbfile E:\item\GPS-1280\main.c
 0008           ; }
 0008           ; 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -