• 大小: 445KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: 其他
  • 标签: 51单片机  

资源简介

本例运行时,由GPS实物模块或虚拟GPS软件Virtual GPS输出的 GPS协议数据将被系统接收,并对其中的"$GPRMC"协议数据进行解析, 所获取的当前经度、纬度、速度、时间信息将被刷新显示LCD.

资源截图

代码片段和文件信息

//-----------------------------------------------------------------
// PG160128液晶驱动程序(T6963C)
//-----------------------------------------------------------------
#include 
#include 
#include 
#include 
#include 
#include 
#include “LCD_160128.h“ 
//ASCII字模8*8
#define ASC_CHR_WIDTH    8
#define ASC_CHR_HEIGHT  12 
//汉字字模12*12
#define HZ_CHR_HEIGHT   12
#define HZ_CHR_WIDTH    12
//液晶宽度/高度定义
INT8U code LCD_WIDTH  = 20;   //宽160像素(160/8 = 20个字节)
INT8U code LCD_HEIGHT = 128;  //高128像素
//ASC字符点阵库
INT8U code ASC_MSK[96 * 12] = {
0x000x000x000x000x000x000x000xff0xff0xff0xff0xff// <0x20时
0x000x000x000x000x000x000x000x000x000x000x000x00// ‘ ‘
0x000x300x780x780x780x300x300x000x300x300x000x00// ‘!‘
0x000x660x660x660x240x000x000x000x000x000x000x00// ‘“‘
0x000x6c0x6c0xfe0x6c0x6c0x6c0xfe0x6c0x6c0x000x00// ‘#‘
0x300x300x7c0xc00xc00x780x0c0x0c0xf80x300x300x00// ‘$‘
0x000x000x000xc40xcc0x180x300x600xcc0x8c0x000x00// ‘%‘
0x000x700xd80xd80x700xfa0xde0xcc0xdc0x760x000x00// ‘&‘
0x000x300x300x300x600x000x000x000x000x000x000x00// ‘‘‘
0x000x0c0x180x300x600x600x600x300x180x0c0x000x00// ‘(‘
0x000x600x300x180x0c0x0c0x0c0x180x300x600x000x00// ‘)‘
0x000x000x000x660x3c0xff0x3c0x660x000x000x000x00// ‘*‘
0x000x000x000x180x180x7e0x180x180x000x000x000x00// ‘+‘
0x000x000x000x000x000x000x000x000x380x380x600x00// ‘‘
0x000x000x000x000x000xfe0x000x000x000x000x000x00// ‘-‘
0x000x000x000x000x000x000x000x000x380x380x000x00// ‘.‘
0x000x000x020x060x0c0x180x300x600xc00x800x000x00// ‘/‘
0x000x7c0xc60xce0xde0xd60xf60xe60xc60x7c0x000x00// ‘0‘
0x000x100x300xf00x300x300x300x300x300xfc0x000x00// ‘1‘
0x000x780xcc0xcc0x0c0x180x300x600xcc0xfc0x000x00// ‘2‘
0x000x780xcc0x0c0x0c0x380x0c0x0c0xcc0x780x000x00// ‘3‘
0x000x0c0x1c0x3c0x6c0xcc0xfe0x0c0x0c0x1e0x000x00// ‘4‘
0x000xfc0xc00xc00xc00xf80x0c0x0c0xcc0x780x000x00// ‘5‘
0x000x380x600xc00xc00xf80xcc0xcc0xcc0x780x000x00// ‘6‘
0x000xfe0xc60xc60x060x0c0x180x300x300x300x000x00// ‘7‘
0x000x780xcc0xcc0xec0x780xdc0xcc0xcc0x780x000x00// ‘8‘
0x000x780xcc0xcc0xcc0x7c0x180x180x300x700x000x00// ‘9‘
0x000x000x000x380x380x000x000x380x380x000x000x00// ‘:‘
0x000x000x000x380x380x000x000x380x380x180x300x00// ‘;‘
0x000x0c0x180x300x600xc00x600x300x180x0c0x000x00// ‘<‘
0x000x000x000x000x7e0x000x7e0x000x000x000x000x00// ‘=‘
0x000x600x300x180x0c0x060x0c0x180x300x600x000x00// ‘>‘
0x000x780xcc0x0c0x180x300x300x000x300x300x000x00// ‘?‘
0x000x7c0xc60xc60xde0xde0xde0xc00xc00x7c0x000x00// ‘@‘
0x000x300x780xcc0xcc0xcc0xfc0xcc0xcc0xcc0x000x00// ‘A‘
0x000xfc

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-12-06 10:30  23 GPS导航系统仿真\
     文件       91454  2012-06-09 18:57  23 GPS导航系统仿真\GPS导航系统仿真.DSN
     目录           0  2012-12-06 10:30  23 GPS导航系统仿真\Keil C\
     文件        2304  2011-05-24 16:31  23 GPS导航系统仿真\Keil C\GPS导航系统仿真.Uv2
     文件       19273  2012-06-09 18:44  23 GPS导航系统仿真\Keil C\GPS导航系统仿真.hex
     文件       15980  2012-12-04 20:26  23 GPS导航系统仿真\Keil C\LCD_160128.c
     文件        4521  2011-05-24 16:14  23 GPS导航系统仿真\Keil C\LCD_160128.h
     文件        1329  2012-12-04 20:27  23 GPS导航系统仿真\Keil C\Main.c
     文件        4343  2011-05-24 15:54  23 GPS导航系统仿真\Keil C\PictureDots.h
     文件      442880  2008-03-21 02:42  23 GPS导航系统仿真\VirtualGPS(虚拟GPS软件).exe
     目录           0  2012-12-06 10:30  23 GPS导航系统仿真\config\
     文件        1495  2011-03-23 22:15  23 GPS导航系统仿真\config\satellites.ini
     文件         219  2011-05-24 16:39  23 GPS导航系统仿真\config\vgps.log

评论

共有 条评论