51单片机应用开发25例Proteus仿真.zip

  • 文执
    了解作者
  • C/C++
    开发工具
  • 2.1MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 1
    下载次数
  • 2019-12-26 18:59
    上传日期
51单片机开发例程,带仿真程序,带完整例程。里面的的SD卡读写程序亲测可用。
51单片机应用开发25例Proteus仿真.zip
  • 应用实例12 模拟时钟
  • 模拟时钟.hex
    12.4KB
  • STARTUP.LST
    13.7KB
  • 模拟时钟.Uv2
    2.1KB
  • 模拟时钟.plg
    1.2KB
  • MCU.LST
    38.1KB
  • 模拟时钟.PWI
    1.1KB
  • 模拟时钟.lnp
    59B
  • MCU.c
    24.2KB
  • 模拟时钟.M51
    25.4KB
  • STARTUP.A51
    6.2KB
  • 模拟时钟_Uv2.Bak
    0B
  • 模拟时钟.Opt
    1KB
  • STARTUP.OBJ
    749B
  • 模拟时钟.DSN
    91.2KB
  • Last Loaded 模拟时钟.DBK
    91.1KB
  • MCU.OBJ
    26.8KB
  • 模拟时钟
    23.5KB
  • 应用实例16 自动换挡电压表
  • STARTUP.LST
    13.7KB
  • MCU.LST
    8.4KB
  • MCU.c
    4.5KB
  • 自动档程电压表.DSN
    115.5KB
  • Last Loaded 自动档程电压表.DBK
    115.5KB
  • 自动档程电压表.lnp
    65B
  • STARTUP.A51
    6.2KB
  • 自动档程电压表.Opt
    1013B
  • 自动档程电压表.Uv2
    2.1KB
  • 自动档程电压表.PWI
    742B
  • 自动档程电压表
    10.8KB
  • 自动档程电压表_Uv2.Bak
    0B
  • STARTUP.OBJ
    749B
  • 自动档程电压表.plg
    244B
  • MCU.OBJ
    11.4KB
  • 自动档程电压表_Opt.Bak
    1KB
  • 自动档程电压表.M51
    12.8KB
  • 自动档程电压表.hex
    3.4KB
  • 应用实例24 俄罗斯方块
  • STARTUP.LST
    13.7KB
  • 俄罗斯方块.DSN
    77.6KB
  • MCU.LST
    34.5KB
  • MCU.c
    18.6KB
  • 俄罗斯方块.plg
    786B
  • 俄罗斯方块.Opt
    1023B
  • STARTUP.A51
    6.2KB
  • 俄罗斯方块
    38.2KB
  • 俄罗斯方块.hex
    11KB
  • Last Loaded 俄罗斯方块.DBK
    77.6KB
  • STARTUP.OBJ
    749B
  • 俄罗斯方块.Uv2
    2.1KB
  • MCU.OBJ
    44.2KB
  • 俄罗斯方块_Uv2.Bak
    0B
  • 俄罗斯方块.PWI
    1KB
  • 俄罗斯方块.M51
    46.5KB
  • 俄罗斯方块.lnp
    61B
  • 应用实例1 呼吸灯
  • STARTUP.LST
    13.7KB
  • MCU.LST
    3.2KB
  • 呼吸灯.Opt
    1023B
  • 呼吸灯.plg
    228B
  • MCU.c
    1.4KB
  • STARTUP.A51
    6.2KB
  • 呼吸灯.M51
    6.5KB
  • 呼吸灯
    5.1KB
  • 呼吸灯.lnp
    57B
  • STARTUP.OBJ
    749B
  • 呼吸灯.hex
    909B
  • 呼吸灯_Uv2.Bak
    2.1KB
  • Last Loaded 呼吸灯.DBK
    83.5KB
  • 呼吸灯.Uv2
    2.1KB
  • MCU.OBJ
    4.9KB
  • 呼吸灯.PWI
    766B
  • 呼吸灯.DSN
    87.5KB
  • 呼吸灯_Opt.Bak
    1013B
  • 应用实例17 货车超重监测系统
  • 电子地秤_Opt.Bak
    1020B
  • STARTUP.LST
    13.7KB
  • MCU.c.bak
    7.4KB
  • MCU.LST
    14.5KB
  • 电子地秤.M51
    21.5KB
  • 电子地秤.DSN
    99.8KB
  • MCU.c
    7.4KB
  • 电子地秤.plg
    663B
  • 电子地秤.Uv2
    2.1KB
  • STARTUP.A51
    6.2KB
  • Last Loaded 电子地秤.DBK
    99.8KB
  • 电子地秤.lnp
    59B
  • 电子地秤.hex
    5KB
  • 电子地秤.PWI
    885B
  • 电子地秤.Opt
    1013B
  • STARTUP.OBJ
    749B
  • 电子地秤_Uv2.Bak
    0B
  • 电子地秤
    18.1KB
  • MCU.OBJ
    18.1KB
  • 应用实例22 数字示波器
  • STARTUP.LST
    13.7KB
  • MCU.LST
    15.7KB
  • 简易示波器.M51
    23.4KB
  • 简易示波器.hex
    6.6KB
  • MCU.c
    8.1KB
内容介绍
#include <aT89X52.H rel='nofollow' onclick='return false;'> #include<intrins.h> #include<math.h> #ifndef BIT #define BIT(x) (1 << (x)) #endif #define DBPort P0 #define DISP_OFF 0x3e //关显示 #define DISP_ON 0x3f //开显示 #define DISP_Y 0xc0 //起始行 #define DISP_PAGE 0xb8 //起始页 #define DISP_X 0x40 //起始列 unsigned char code AsciiDot[] = // ASCII { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // - - 0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, // -!- 0x00,0x0E,0x02,0x00,0x0E,0x02,0x00,0x00,0x00,0x00,0x00,0x00, // -"- 0x00,0x50,0xF8,0x56,0xF8,0x56,0x00,0x03,0x00,0x03,0x00,0x00, // -#- 0x00,0xD8,0xA4,0xA6,0x64,0x00,0x00,0x00,0x00,0x03,0x00,0x00, // -$- 0x00,0x24,0x2A,0xA4,0x50,0x90,0x00,0x00,0x00,0x00,0x01,0x00, // -%- 0x00,0xC0,0x30,0x48,0x88,0x40,0x00,0x00,0x01,0x01,0x00,0x01, // -&- 0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // -'- 0x00,0x00,0x00,0xF8,0x06,0x00,0x00,0x00,0x00,0x01,0x06,0x00, // -(- 0x00,0x00,0x06,0xF8,0x00,0x00,0x00,0x00,0x06,0x01,0x00,0x00, // -)- 0x00,0x04,0x34,0x0E,0x34,0x04,0x00,0x00,0x00,0x00,0x00,0x00, // -*- 0x20,0x20,0x20,0xFC,0x20,0x20,0x00,0x00,0x00,0x01,0x00,0x00, // -+- 0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x00,0x06,0x03,0x00,0x00, // -,- 0x00,0x20,0x20,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00, // --- 0x00,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, // -.- 0x00,0x00,0x80,0x60,0x18,0x06,0x00,0x02,0x01,0x00,0x00,0x00, // -/- 0x00,0xFC,0x0A,0x32,0x42,0xFC,0x00,0x00,0x01,0x01,0x01,0x00, // -0- 0x00,0x00,0x04,0xFE,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x00, // -1- 0x00,0x04,0x82,0x42,0x22,0x9C,0x00,0x01,0x01,0x01,0x01,0x01, // -2- 0x00,0x84,0x02,0x12,0x12,0xEC,0x00,0x00,0x01,0x01,0x01,0x00, // -3- 0x00,0x60,0x58,0x44,0xFE,0x40,0x00,0x00,0x00,0x00,0x01,0x00, // -4- 0x00,0x9E,0x12,0x12,0x12,0xE2,0x00,0x00,0x01,0x01,0x01,0x00, // -5- 0x00,0xF8,0x14,0x12,0x12,0xE2,0x00,0x00,0x01,0x01,0x01,0x00, // -6- 0x00,0x06,0x02,0xC2,0x32,0x0E,0x00,0x00,0x00,0x01,0x00,0x00, // -7- 0x00,0xEC,0x12,0x12,0x12,0xEC,0x00,0x00,0x01,0x01,0x01,0x00, // -8- 0x00,0x1C,0x22,0x22,0xA2,0x7C,0x00,0x01,0x01,0x01,0x00,0x00, // -9- 0x00,0x00,0x98,0x98,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, // -:- 0x00,0x00,0x00,0x98,0x98,0x00,0x00,0x00,0x03,0x01,0x00,0x00, // -;- 0x20,0x50,0x50,0x88,0x04,0x04,0x00,0x00,0x00,0x00,0x01,0x01, // -<- 0x00,0x50,0x50,0x50,0x50,0x50,0x00,0x00,0x00,0x00,0x00,0x00, // -=- 0x04,0x04,0x88,0x50,0x50,0x20,0x01,0x01,0x00,0x00,0x00,0x00, // ->- 0x00,0x00,0x08,0x44,0x24,0x18,0x00,0x00,0x01,0x01,0x00,0x00, // -?- 0x00,0xFE,0x01,0x31,0x49,0x7E,0x00,0x01,0x02,0x02,0x02,0x01, // -@- 0xC0,0x78,0x46,0x78,0xC0,0x00,0x01,0x01,0x00,0x01,0x01,0x01, // -A- 0x02,0xFE,0x12,0x12,0x12,0xEC,0x01,0x01,0x01,0x01,0x01,0x00, // -B- 0x78,0x84,0x02,0x02,0x02,0x86,0x00,0x00,0x01,0x01,0x01,0x00, // -C- 0x02,0xFE,0x02,0x02,0x84,0x78,0x01,0x01,0x01,0x01,0x00,0x00, // -D- 0x02,0xFE,0x12,0x3A,0x02,0x86,0x01,0x01,0x01,0x01,0x01,0x01, // -LCDEN- 0x02,0xFE,0x12,0x3A,0x02,0x06,0x01,0x01,0x01,0x00,0x00,0x00, // -F- 0x78,0x84,0x02,0x02,0x22,0xE6,0x00,0x00,0x01,0x01,0x01,0x00, // -G- 0x02,0xFE,0x12,0x10,0x12,0xFE,0x01,0x01,0x01,0x00,0x01,0x01, // -H- 0x00,0x02,0xFE,0x02,0x00,0x00,0x00,0x01,0x01,0x01,0x00,0x00, // -I- 0x00,0x02,0xFE,0x02,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00, // -J- 0x02,0xFE,0x12,0x28,0x46,0x82,0x01,0x01,0x01,0x00,0x01,0x01, // -K- 0x02,0xFE,0x02,0x00,0x00,0x80,0x01,0x01,0x01,0x01,0x01,0x01, // -L- 0x02,0xFE,0x04,0x18,0x04,0xFE,0x01,0x01,0x01,0x00,0x01,0x01, // -M- 0x02,0xFE,0x08,0x30,0x42,0xFE,0x01,0x01,0x01,0x00,0x00,0x01, // -N- 0x00,0xFC,0x02,0x02,0x02,0xFC,0x00,0x00,0x01,0x01,0x01,0x00, // -O- 0x02,0xFE,0x22,0x22,0x22,0x1C,0x01,0x01,0x01,0x00,0x00,0x00, // -P- 0x00,0xFC,0x02,0x02,0x02,0xFC,0x00,0x00,0x01,0x03,0x05,0x04, // -Q- 0x02,0xFE,0x12,0x32,0xD2,0x0C,0x01,0x01,0x01,0x00,0x01,0x01, // -R- 0x00,0x8C,0x12,0x22,0xC6,0x00,0x00,0x01,0x01,0x01,0x00,0x00, // -S- 0x06,0x02,0xFE,0x02,0x06,0x00,0x00,0x01,0x01,0x01,0x00,0x00, // -T- 0x02,0xFE,0x02,0x00,0x02,0xFE,0x00,0x00,0x01,0x01,0x01,0x00, // -U- 0x02,0x0E,0x72,0x80,0x72,0x0E,0x00,0x00,0x00,0x01,0x00,0x00, // -V- 0x02,0xFE,0x02,0xF0,0x02,0xFE,0x00,0x00,0x01,0x00,0x01,0x00, // -W- 0x02,0x86,0x48,0x30,0x48,0x86,0x01,0x01,0x00,0x00,0x00,0x01, // -X- 0x02,0x06,0x1A,0xE0,0x1A,0x06,0x00,0x00,0x01,0x01,0x01,0x00, // -Y- 0x86,0x42,0x32,0x0A,0x06,0x82,0x01,0x01,0x01,0x01,0x01,0x01, // -Z- 0x00,0x00,0xFE,0x02,0x02,0x00,0x00,0x00,0x07,0x04,0x04,0x00, // -[- 0x00,0x02,0x1C,0x60,0x80,0x00,0x00,0x00,0x00,0x00,0x03,0x00, // -\- 0x00,0x00,0x02,0x02,0xFE,0x00,0x00,0x00,0x04,0x04,0x07,0x00, // -]- 0x00,0x10,0x08,0x06,0x08,0x10,0x00,0x00,0x00,0x00,0x00,0x00, // -^- 0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x08, // -_- 0x00,0x00,0x00,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // -`- 0x80,0x50,0x50,0xE0,0x00,0x00,0x00,0x01,0x01,0x00,0x01,0x00, // -a- 0x02,0xFE,0x10,0x10,0xE0,0x00,0x01,0x01,0x01,0x01,0x00,0x00, // -b- 0x00,0xE0,0x10,0x10,0x30,0x00,0x00,0x00,0x01,0x01,0x01,0x00, // -c- 0x00,0xE0,0x10,0x12,0xFE,0x00,0x00,0x00,0x01,0x01,0x00,0x01, // -d- 0x00,0xE0,0x50,0x50,0x60,0x00,0x00,0x00,0x01,0x01,0x01,0x00, // -LCDEN- 0x00,0x10,0xFC,0x12,0x02,0x06,0x00,0x01,0x01,0x01,0x00,0x00, // -f- 0xA0,0x50,0x50,0x30,0x10,0x00,0x03,0x05,0x05,0x05,0x02,0x00, // -g- 0x02,0xFE,0x20,0x10,0xF0,0x00,0x01,0x01,0x01,0x00,0x01,0x01, // -h- 0x00,0x10,0xF2,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x00,0x00, // -i- 0x00,0x10,0xF2,0x00,0x00,0x00,0x04,0x04,0x03,0x00,0x00,0x00, // -j- 0x02,0xFE,0x40,0xB0,0x10,0x00,0x01,0x01,0x00,0x01,0x01,0x00, // -k- 0x00,0x02,0xFE,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x00,0x00, // -l- 0x10,0xE0,0x10,0xE0,0x10,0xE0,0x01,0x01,0x00,0x01,0x00,0x01, // -m- 0x10,0xF0,0x20,0x10,0xF0,0x00,0x01,0x01,0x01,0x00,0x01,0x01, // -n- 0xE0,0x10,0x10,0x10,0xE0,0x00,0x00,0x01,0x01,0x01,0x00,0x00, // -o- 0x10,0xF0,0x10,0x10,0xE0,0x00,0x04,0x07,0x05,0x01,0x00,0x00, // -p- 0x00,0xE0,0x10,0x10,0xF0,0x00,0x00,0x00,0x01,0x05,0x07,0x04, // -q- 0x00,0x10,0xF0,0x20,0x10,0x00,0x00,0x01,0x01,0x01,0x00,0x00, // -r- 0x00,0x20,0x50,0xD0,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, // -s- 0x00,0x10,0xFC,0x10,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, // -t- 0x10,0xF0,0x00,0x10,0xF0,0x00,0x00,0x00,0x01,0x01,0x00,0x01, // -u- 0x10,0x70,0x80,0x50,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00, // -v- 0xF0,0x00,0xE0,0x00,0xF0,0x00,0x00,0x01,0x00,0x01,0x00,0x00, // -w- 0x10,0xB0,0x40,0xB0,0x10,0x00,0x01,0x01,0x00,0x01,0x01,0x00, // -x- 0x10,0x70,0x80,0xD0,0x30,0x10,0x00,0x04,0x03,0x00,0x00,0x00, // -y- 0x30,0x90,0x50,0x30,0x90,0x00,0x01,0x01,0x01,0x01,0x01,0x00, // -z- 0x00,0x00,0x40,0xBC,0x02,0x00,0x00,0x00,0x00,0x03,0x04,0x00, // -{- 0x00,0x00,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00, // -|- 0x00,0x00,0x02,0xBC,0x40,0x00,0x00,0x00,0x04,0x03,0x00,0x00, // -}- 0x00,0x40,0x20,0x40,0x40,0x20,0x00,0x00,0x00,0x00,0x00,0x00, // -~- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // -- }; typedef struct typFNT_GB12 // 汉字字模数据结构 { unsigned char Index[2]; // 汉字内码索引 unsigned char Msk[24]; // 点阵码数据 }; struct typFNT_GB12 code GB_12[] = // 数据表 { "模", 0xC4,0x34,0xFF,0x24,0x02,0x7A,0x5F,0xDA,0x6F,0x7A,0x02,0x00, 0x00,0x00,0x07,0x00,0x05,0x05,0x03,0x01,0x03,0x05,0x05,0x00, "拟", 0x44,0x24,0xFF,0x14,0x00,0xFE,0x81,0x46,0x00,0xFF,0x00,0x00, 0x04,0x04,0x07,0x00,0x04,0x05,0x04,0x02,0x01,0x01,0x06,0x00, "时", 0xFE,0x22,0x22,0xFE,0x04,0x14,0x64,0x04,0xFF,0x04,0x04,0x00, 0x03,0x01,0x01,0x03,0x00,0x00,0x04,0x04,0x07,0x00,0x00,0x00, "钟", 0x58,0x4F,0xFA,0x4A,0x42,0x7C,0x44,0x44,0xFF
评论
    相关推荐