资源简介
这是我在网上淘的一个包含非常多仿真内容的PROTUES仿真实例!!!
4X4键盘、128*64大屏液晶显示、1602+ds18b20、A/D、D/A,DAC0832、ADC0809、有源滤波、数字电压表、数控电压源、LED点阵、单片机通讯等内容
代码片段和文件信息
//EDM12864B DRIVE//
/**************************************
PAGEADD为页地址起使
TIERADD为行地址起使
DIS_STARTADD为开始命令
CTABLE为汉字字库数组
ETABLE为英文字库数组
***************************************/
#include
#define uchar unsigned char
#define uint unsigned int
#define High 1
#define Low 0
#define _nop {}
#define PAGEADD 0xb8
#define TIERADD 0x40
#define DIS_STARADD 0xc0
uint key_value;
sbit DI=P1^4;
sbit E=P1^2;
sbit CS1=P1^1;
sbit CS2=P1^0;
sbit RW=P1^3;
sbit cs=P1^7;
sbit sclk=P1^6;
sbit dout=P1^5;
sbit I2C_SCL = P3^7;
sbit I2C_SDA = P3^6;
//uchar ntable[]={614957601949624960635520062256
//63686149576017516361};//email:analog2006@hotmail.com
uchar data voltage_display[8];
/*****************************
字符表
显示“Welcome Use“
******************************/
uchar code table1[]={
0x000x3e0x510x490x450x3e0x000x00//0(0)
0x000x000x420x7f0x400x000x000x00//1
0x000x420x610x510x490x460x000x00//2
0x000x210x410x450x4b0x310x000x00//3
0x000x180x140x120x7f0x100x000x00//4
0x000x270x450x450x450x390x000x00//5
0x000x3c0x4a0x490x490x300x000x00//6
0x000x010x010x790x050x030x000x00//7
0x000x360x490x490x490x360x000x00//8
0x000x060x490x490x290x1e0x000x00//9
0x000x000x000x000x000x000x000x00// (10)
0x000x000x000x470x000x000x000x00//!
0x000x230x130x080x640x620x000x00//%
0x000x360x490x550x220x500x000x00//&
0x000x140x080x3e0x080x140x000x00//*
0x000x080x080x3e0x080x080x000x00//+
0x000x080x080x080x080x080x000x00//-
0x000x000x600x600x000x000x000x00//.
0x000x200x100x080x040x020x000x00///
0x000x000x360x360x000x000x000x00//:(19)
0x000x140x140x140x140x140x000x00//=
0x000x020x010x510x090x060x000x00//?
0x000x320x490x790x410x3E0x000x00//@(22)
0x000x7e0x110x110x110x7f0x000x00//A
0x000x410x7f0x490x490x360x000x00//B
0x000x3e0x410x410x410x220x000x00//C
0x000x410x7f0x410x410x3e0x000x00//D
0x000x7f0x490x490x490x490x000x00//E
0x000x7f0x090x090x090x010x000x00//F
0x000x3e0x410x410x490x7a0x000x00//G(29)
0x000x7f0x080x080x080x7f0x000x00//H
0x000x000x410x7f0x410x000x000x00//I
0x200x400x410x3f0x010x010x000x00//J
0x000x7f0x080x140x220x410x000x00//K
0x000x7f0x400x400x400x400x000x00//L
0x000x7f0x020x0c0x020x7f0x000x00//M
0x000x7f0x060x080x300x7f0x000x00//N
0x000x3e0x410x410x410x3e0x000x00//O
0x000x7f0x090x090x090x060x000x00//P
0x000x3e0x410x510x210x5e0x000x00//Q(39)
0x000x7f0x090x190x290x460x000x00//R
0x000x260x490x490x490x320x000x00//S
0x000x010x010x7f0x010x010x000x00//T
0x000x3f0x400x400x400x3f0x000x00//U
0x000x1f0x200x410x200x1f0x000x00//V
0x000x7f0x200x800x200x7f0x000x00//W
0x000x630x140x080x140x630x000x00
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 791463 2008-06-20 10:18 PROTEUS实例\单片机笔记.pdf
文件 4750 2009-05-28 16:03 PROTEUS实例\jyskzy\dy
文件 143670 2009-07-09 20:41 PROTEUS实例\jyskzy\dy.DSN
文件 591 2009-05-28 16:03 PROTEUS实例\jyskzy\dy.hex
文件 6648 2009-05-28 16:03 PROTEUS实例\jyskzy\dy.M51
文件 1115 2009-06-11 16:19 PROTEUS实例\jyskzy\dy.Opt
文件 197 2009-06-11 16:19 PROTEUS实例\jyskzy\dy.plg
文件 792 2009-07-23 13:44 PROTEUS实例\jyskzy\dy.PWI
文件 2071 2009-05-23 16:51 PROTEUS实例\jyskzy\dy.Uv2
文件 1116 2009-05-28 18:34 PROTEUS实例\jyskzy\dy_Opt.Bak
文件 0 2009-05-23 16:21 PROTEUS实例\jyskzy\dy_Uv2.Bak
文件 5744 2009-06-17 17:07 PROTEUS实例\jyskzy\jyskdy
文件 0 2009-06-11 16:19 PROTEUS实例\jyskzy\jyskdy.c
文件 2300 2009-06-17 17:07 PROTEUS实例\jyskzy\jyskdy.hex
文件 7739 2009-06-17 17:07 PROTEUS实例\jyskzy\jyskdy.M51
文件 1095 2009-06-18 15:52 PROTEUS实例\jyskzy\jyskdy.Opt
文件 175 2009-06-18 15:52 PROTEUS实例\jyskzy\jyskdy.plg
文件 2063 2009-06-11 16:35 PROTEUS实例\jyskzy\jyskdy.Uv2
文件 1105 2009-06-17 19:12 PROTEUS实例\jyskzy\jyskdy_Opt.Bak
文件 143670 2009-07-09 20:41 PROTEUS实例\jyskzy\Last Loaded dy.DBK
文件 1365 2009-06-17 19:12 PROTEUS实例\jyskzy\skdy.c
文件 3821 2009-06-17 17:07 PROTEUS实例\jyskzy\skdy.LST
文件 4758 2009-06-17 17:07 PROTEUS实例\jyskzy\skdy.OBJ
文件 5115 2004-08-31 19:16 PROTEUS实例\jyskzy\STARTUP.A51
文件 11774 2009-06-11 16:23 PROTEUS实例\jyskzy\STARTUP.lst
文件 874 2009-06-11 16:23 PROTEUS实例\jyskzy\STARTUP.obj
文件 10055 2007-07-17 08:59 PROTEUS实例\128X64液晶显示\126X64液晶多功能显示.ASM
文件 1368 2007-07-17 08:59 PROTEUS实例\128X64液晶显示\126X64液晶多功能显示.HEX
文件 5893 2007-07-04 08:14 PROTEUS实例\128X64液晶显示\126X64液晶显示.HEX
文件 17502 2007-07-04 08:14 PROTEUS实例\128X64液晶显示\126X64液晶显示1.ASM
............此处省略2172个文件信息
评论
共有 条评论