色哟哟视频在线观看-色哟哟视频在线-色哟哟欧美15最新在线-色哟哟免费在线观看-国产l精品国产亚洲区在线观看-国产l精品国产亚洲区久久

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線(xiàn)課程
  • 觀看技術(shù)視頻
  • 寫(xiě)文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

proteus雙機(jī)仿真系統(tǒng)

Harmony&嵌入式學(xué)習(xí) ? 來(lái)源:Harmony&嵌入式學(xué)習(xí) ? 作者:Harmony&嵌入式學(xué) ? 2023-07-17 09:29 ? 次閱讀

1)兩個(gè)單片機(jī)系統(tǒng)分別作為服務(wù)器和答題終端。服務(wù)器負(fù)責(zé)驗(yàn)正考生個(gè)人信息,發(fā)送試愿到降端,定時(shí)收卷及判分功能。答題終端負(fù)責(zé)輸入考生個(gè)人信息,答題,修改答案及傳送答案到服務(wù)器。
2)服務(wù)器驗(yàn)證考生個(gè)人信息,若信息不正確則向終端發(fā)出提示信息。信息驗(yàn)證正確后將試題發(fā)送到答題終端,同時(shí)開(kāi)始計(jì)時(shí)。無(wú)論答題是否完成??荚嚂r(shí)間到則強(qiáng)制收題。也可在考試時(shí)同尚有剩余時(shí)接收答題終端發(fā)送過(guò)來(lái)的答案。收題后進(jìn)行判分工作并給出最終得分及答題情況統(tǒng)計(jì)信息。對(duì)回答錯(cuò)誤的題日則給出原題及正確答案。
3)答題終端在收到試題后向考生顯示試題內(nèi)容(可逐道顯示)并接受考生輸入的答案。試題顯示應(yīng)具備翻頁(yè)功能以允許考生反復(fù)瀏覽試題或檢查所作答案。當(dāng)考生檢查完畢且考試時(shí)間尚有剩余,允許考生向服務(wù)器發(fā)送最終答案。
4)實(shí)現(xiàn)服務(wù)器和答題終端的兩個(gè)單片機(jī)系統(tǒng)均應(yīng)包含鍵盤(pán)和LCD液品顯示模塊。兩個(gè)單片機(jī)系統(tǒng)通過(guò)串口進(jìn)行通信。
*************************************************
(1)給出使用說(shuō)明,包括按鍵的定義,操作方法等。
(2)所有功能用途均可實(shí)現(xiàn)且各功能轉(zhuǎn)換正常(模擬5道題即可)。
(3)考生個(gè)人信息包括考生姓名(可用拼音表示)和6位的學(xué)號(hào)。
(4)驗(yàn)收時(shí)需要演示考生個(gè)人信息不正確時(shí)的處理情況:
(5)服務(wù)器和終端都應(yīng)實(shí)時(shí)顯示考試剩余時(shí)間:
(6)四則運(yùn)算應(yīng)覆蓋加減乘除四種運(yùn)算:
(7)終端答題時(shí),在未提交答案前應(yīng)允許反復(fù)瀏覽或修改答案

wKgZomSz_KiATZtVAAILvPoTU9c033.png

服務(wù)端

#include "reg52.h"			 //此文件中定義了單片機(jī)的一些特殊功能寄存器
#define uchar unsigned char
#define uint unsigned int
typedef unsigned int u16;	  //對(duì)數(shù)據(jù)類(lèi)型進(jìn)行聲明定義
typedef unsigned char u8;
sbit wr=P2^0;				//數(shù)據(jù)寫(xiě)
sbit rd=P2^1;				//數(shù)據(jù)讀
sbit ce=P2^2;				//片選
sbit cd=P2^3;				//指令數(shù)據(jù)通道,1指令,0數(shù)據(jù)
sbit rst=P2^4;			//復(fù)位信號(hào)
sbit key = P3^2;
uchar S_datt[2][6]={{1,2,3,4,5,6},{1,1,1,1,1,1}};
uchar Title[10] = {5,1,3,2,1,5,6,3,1,1};
uchar Answer[5] = {6,1,5,2,2};
uchar R_mode;
uchar R_wei;
uchar R_buff[20];
uint dis_tim;
uint ALL_time=30;
uchar flag_mode;
uchar C_T[6];
uchar bl;
uchar code HZ0[][32]={
	
{0x00,0x00,0x3E,0xFC,0x22,0x84,0x22,0x84,0x22,0x94,0x3E,0x88,0x22,0x80,0x22,0xFC,
0x22,0xA4,0x3E,0xA4,0x22,0xA8,0x22,0xA8,0x22,0x90,0x42,0xA8,0x4A,0xC4,0x84,0x82},/*"服",0*/

{0x04,0x00,0x04,0x00,0x0F,0xF0,0x18,0x20,0x24,0xC0,0x03,0x00,0x0C,0xC0,0x32,0x30,
0xC2,0x0E,0x1F,0xF0,0x02,0x10,0x04,0x10,0x04,0x10,0x08,0x10,0x10,0xA0,0x20,0x40},/*"務(wù)",1*/

{0x00,0x00,0x3E,0x7C,0x22,0x44,0x22,0x44,0x3E,0x7C,0x01,0x20,0x01,0x10,0xFF,0xFE,
0x02,0x80,0x0C,0x60,0x30,0x18,0xC0,0x06,0x3E,0x7C,0x22,0x44,0x22,0x44,0x3E,0x7C},/*"器",2*/


{0x01,0x00,0x21,0x08,0x11,0x08,0x09,0x10,0x09,0x20,0x01,0x00,0x7F,0xF8,0x00,0x08,
0x00,0x08,0x00,0x08,0x3F,0xF8,0x00,0x08,0x00,0x08,0x00,0x08,0x7F,0xF8,0x00,0x08},/*"當(dāng)",3*/

{0x10,0x10,0x08,0x10,0x08,0x20,0xFF,0xFE,0x00,0x00,0x3E,0x08,0x22,0x48,0x22,0x48,
0x3E,0x48,0x22,0x48,0x22,0x48,0x3E,0x48,0x22,0x08,0x22,0x08,0x2A,0x28,0x24,0x10},/*"前",4*/

{0x08,0x40,0x08,0x20,0x0B,0xFE,0x10,0x00,0x10,0x00,0x31,0xFC,0x30,0x00,0x50,0x00,
0x91,0xFC,0x10,0x00,0x10,0x00,0x11,0xFC,0x11,0x04,0x11,0x04,0x11,0xFC,0x11,0x04},/*"信",5*/

{0x01,0x00,0x02,0x00,0x1F,0xF0,0x10,0x10,0x1F,0xF0,0x10,0x10,0x1F,0xF0,0x10,0x10,
0x1F,0xF0,0x10,0x10,0x01,0x00,0x08,0x84,0x48,0x92,0x48,0x12,0x87,0xF0,0x00,0x00},/*"息",6*/

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x30,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x30,0x00,0x00,0x00,0x00,0x00},/*":",7*/

{0x07,0x02,0x78,0x02,0x08,0x02,0xFF,0x82,0x2A,0x12,0x2A,0x92,0xEB,0x12,0x2A,0x92,
0x6A,0x92,0xA9,0x92,0x1C,0x12,0x2A,0x12,0x49,0x02,0x88,0x82,0x08,0x0A,0x08,0x04},/*"剩",8*/

{0x01,0x00,0x01,0x00,0x02,0x80,0x04,0x40,0x08,0x20,0x10,0x10,0x2F,0xE8,0xC1,0x06,
0x01,0x00,0x3F,0xF8,0x01,0x00,0x11,0x10,0x11,0x08,0x21,0x04,0x45,0x04,0x02,0x00},/*"余",9*/

{0x00,0x08,0x00,0x08,0x7C,0x08,0x44,0x08,0x45,0xFE,0x44,0x08,0x44,0x08,0x7C,0x08,
0x44,0x88,0x44,0x48,0x44,0x48,0x44,0x08,0x7C,0x08,0x44,0x08,0x00,0x28,0x00,0x10},/*"時(shí)",10*/

{0x20,0x00,0x13,0xFC,0x10,0x04,0x40,0x04,0x47,0xC4,0x44,0x44,0x44,0x44,0x44,0x44,
0x47,0xC4,0x44,0x44,0x44,0x44,0x44,0x44,0x47,0xC4,0x40,0x04,0x40,0x14,0x40,0x08},/*"間",11*/

{0x1F,0xF0,0x10,0x10,0x1F,0xF0,0x10,0x10,0x1F,0xF0,0x00,0x00,0xFF,0xFE,0x22,0x00,
0x3E,0xF8,0x22,0x88,0x3E,0x90,0x22,0x50,0x2F,0x20,0xF2,0x50,0x42,0x88,0x03,0x06},/*"最",12*/

{0x10,0x80,0x10,0x80,0x20,0xF8,0x21,0x08,0x4B,0x10,0xFC,0xA0,0x10,0x40,0x20,0xA0,
0x43,0x18,0xFC,0x06,0x40,0xC0,0x00,0x20,0x18,0x10,0xE1,0x80,0x40,0x60,0x00,0x10},/*"終",13*/

{0x00,0x40,0x04,0x40,0x04,0x20,0x08,0x20,0x10,0x10,0x20,0x08,0x40,0x04,0x9F,0xE2,
0x04,0x20,0x04,0x20,0x04,0x20,0x08,0x20,0x08,0x20,0x10,0x20,0x21,0x40,0x40,0x80},/*"分",14*/

{0x08,0x20,0x49,0x20,0x2A,0x20,0x08,0x3E,0xFF,0x44,0x2A,0x44,0x49,0x44,0x88,0xA4,
0x10,0x28,0xFE,0x28,0x22,0x10,0x42,0x10,0x64,0x28,0x18,0x28,0x34,0x44,0xC2,0x82},/*"數(shù)",15*/

{0x00,0x00,0x7F,0xFC,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x11,0x00,0x11,0xF8,
0x11,0x00,0x11,0x00,0x11,0x00,0x11,0x00,0x11,0x00,0x11,0x00,0xFF,0xFE,0x00,0x00},/*"正",16*/

{0x00,0x40,0x00,0x40,0xFC,0x7C,0x10,0x84,0x11,0x08,0x22,0xFE,0x3C,0x92,0x64,0x92,
0x64,0xFE,0xA4,0x92,0x24,0x92,0x24,0xFE,0x3C,0x92,0x25,0x12,0x21,0x0A,0x02,0x04},/*"確",17*/

{0x21,0x10,0x21,0x10,0x39,0x10,0x27,0xFC,0x41,0x10,0x79,0x10,0xAF,0xFE,0x20,0x00,
0xFB,0xF8,0x22,0x08,0x22,0x08,0x23,0xF8,0x2A,0x08,0x32,0x08,0x23,0xF8,0x02,0x08},/*"錯(cuò)",18*/

{0x00,0x00,0x43,0xF8,0x22,0x08,0x22,0x08,0x03,0xF8,0x00,0x00,0xE0,0x00,0x27,0xFC,
0x20,0x40,0x20,0x40,0x2F,0xFE,0x20,0x40,0x28,0xA0,0x31,0x10,0x22,0x08,0x0C,0x06},/*"誤",19*/


{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",20*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},


};
uchar code SZ[][16]={
	
{0x00,0x00,0x00,0x18,0x24,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x24,0x18,0x00,0x00},/*"0",0*/

{0x00,0x00,0x00,0x08,0x38,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x3E,0x00,0x00},/*"1",1*/

{0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x02,0x04,0x08,0x10,0x20,0x42,0x7E,0x00,0x00},/*"2",2*/

{0x00,0x00,0x00,0x3C,0x42,0x42,0x02,0x04,0x18,0x04,0x02,0x42,0x42,0x3C,0x00,0x00},/*"3",3*/

{0x00,0x00,0x00,0x04,0x0C,0x0C,0x14,0x24,0x24,0x44,0x7F,0x04,0x04,0x1F,0x00,0x00},/*"4",4*/

{0x00,0x00,0x00,0x7E,0x40,0x40,0x40,0x78,0x44,0x02,0x02,0x42,0x44,0x38,0x00,0x00},/*"5",5*/

{0x00,0x00,0x00,0x18,0x24,0x40,0x40,0x5C,0x62,0x42,0x42,0x42,0x22,0x1C,0x00,0x00},/*"6",6*/

{0x00,0x00,0x00,0x7E,0x42,0x04,0x04,0x08,0x08,0x10,0x10,0x10,0x10,0x10,0x00,0x00},/*"7",7*/

{0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x24,0x18,0x24,0x42,0x42,0x42,0x3C,0x00,0x00},/*"8",8*/

{0x00,0x00,0x00,0x38,0x44,0x42,0x42,0x42,0x46,0x3A,0x02,0x02,0x24,0x18,0x00,0x00},/*"9",9*/

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",10*/

{0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x7F,0x08,0x08,0x08,0x00,0x00,0x00,0x00},/*"+",11*/

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"-",12*/

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x76,0x24,0x18,0x18,0x18,0x24,0x6E,0x00,0x00},/*"x",13*/

{0x00,0x00,0x02,0x04,0x04,0x04,0x08,0x08,0x10,0x10,0x10,0x20,0x20,0x40,0x40,0x00},/*"/",14*/
{0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x7F,0x08,0x08,0x08,0x00,0x00,0x00,0x00},/*"=",15*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00},/*"=",16*/
};





void delay(uint t) //延時(shí)函數(shù)
{
uint i,j;
for(i=0;i

答題端:

#include "reg52.h"			 //此文件中定義了單片機(jī)的一些特殊功能寄存器
#define uchar unsigned char
#define uint unsigned int
typedef unsigned int u16;	  //對(duì)數(shù)據(jù)類(lèi)型進(jìn)行聲明定義
typedef unsigned char u8;
u8 data_send;
sbit wr=P2^0;				//數(shù)據(jù)寫(xiě)
sbit rd=P2^1;				//數(shù)據(jù)讀
sbit ce=P2^2;				//片選
sbit cd=P2^3;				//指令數(shù)據(jù)通道,1指令,0數(shù)據(jù)
sbit rst=P2^4;			//復(fù)位信號(hào)
sbit h1 = P1^0;
sbit h2 = P1^1;
sbit h3 = P1^2;
sbit h4 = P1^3;
sbit l1 = P1^4;	
sbit l2 = P1^5;
sbit l3 = P1^6;
sbit l4 = P1^7;	
uchar flag_mode;//當(dāng)前輸入模式   0為考生號(hào) 1為學(xué)號(hào)
uchar S_num;		//考生號(hào)
uchar S_buff[6];		//學(xué)號(hào)
uchar S_wei;
uchar R_mode;
uchar R_wei;
uchar R_buff[20];
uchar Tit[10];
uchar Tit_Now;
uchar Answer[5];
uint dis_tim;
uint ALL_time=30;
uchar code HZ0[][32]={
	
{0x10,0x40,0x10,0x40,0x3F,0x7E,0x28,0x90,0x45,0x08,0x82,0x80,0x0C,0x60,0x30,0x18,
0xCF,0xE6,0x00,0x00,0x1F,0xF0,0x10,0x10,0x10,0x10,0x10,0x10,0x1F,0xF0,0x10,0x10},/*"答",0*/

{0x00,0x00,0x3E,0xFE,0x22,0x10,0x3E,0x20,0x22,0x7C,0x3E,0x44,0x00,0x54,0xFF,0x54,
0x08,0x54,0x08,0x54,0x2F,0x28,0x28,0x44,0x28,0x82,0x58,0x00,0x4F,0xFE,0x80,0x00},/*"題",1*/

{0x00,0xF8,0x3F,0x00,0x04,0x00,0x08,0x20,0x10,0x40,0x3F,0x80,0x01,0x00,0x06,0x10,
0x18,0x08,0x7F,0xFC,0x01,0x04,0x09,0x20,0x11,0x10,0x21,0x08,0x45,0x04,0x02,0x00},/*"系",2*/

{0x10,0x40,0x10,0x20,0x20,0x20,0x23,0xFE,0x48,0x40,0xF8,0x88,0x11,0x04,0x23,0xFE,
0x40,0x92,0xF8,0x90,0x40,0x90,0x00,0x90,0x19,0x12,0xE1,0x12,0x42,0x0E,0x04,0x00},/*"統(tǒng)",3*/

{0x00,0x40,0x40,0x40,0x27,0xFC,0x20,0x40,0x03,0xF8,0x00,0x40,0xE7,0xFE,0x20,0x00,
0x23,0xF8,0x22,0x08,0x23,0xF8,0x22,0x08,0x2B,0xF8,0x32,0x08,0x22,0x28,0x02,0x10},/*"請(qǐng)",4*/

{0x20,0x40,0x20,0xA0,0x21,0x10,0xFA,0x08,0x25,0xF6,0x40,0x00,0x53,0xC4,0x92,0x54,
0xFA,0x54,0x13,0xD4,0x1A,0x54,0xF2,0x54,0x53,0xD4,0x12,0x44,0x12,0x54,0x12,0xC8},/*"輸",5*/

{0x04,0x00,0x02,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x02,0x80,0x02,0x80,0x02,0x80,
0x04,0x40,0x04,0x40,0x08,0x20,0x08,0x20,0x10,0x10,0x20,0x10,0x40,0x08,0x80,0x06},/*"入",6*/

{0x02,0x00,0x02,0x08,0x3F,0xD0,0x02,0x20,0x02,0x40,0xFF,0xFE,0x01,0x00,0x02,0x00,
0x0F,0xF8,0x12,0x00,0x24,0x00,0x47,0xF0,0x80,0x10,0x00,0x10,0x00,0xA0,0x00,0x40},/*"考",7*/

{0x01,0x00,0x11,0x00,0x11,0x00,0x11,0x00,0x3F,0xFC,0x21,0x00,0x41,0x00,0x81,0x00,
0x01,0x00,0x3F,0xF8,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0xFF,0xFE,0x00,0x00},/*"生",8*/

{0x00,0x00,0x1F,0xF0,0x10,0x10,0x10,0x10,0x10,0x10,0x1F,0xF0,0x00,0x00,0xFF,0xFE,
0x08,0x00,0x10,0x00,0x1F,0xF0,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0xA0,0x00,0x40},/*"號(hào)",9*/

{0x00,0x40,0x40,0x40,0x27,0xFC,0x20,0x40,0x03,0xF8,0x00,0x40,0xE7,0xFE,0x20,0x00,
0x23,0xF8,0x22,0x08,0x23,0xF8,0x22,0x08,0x2B,0xF8,0x32,0x08,0x22,0x28,0x02,0x10},/*"請(qǐng)",10*/

{0x20,0x40,0x20,0xA0,0x21,0x10,0xFA,0x08,0x25,0xF6,0x40,0x00,0x53,0xC4,0x92,0x54,
0xFA,0x54,0x13,0xD4,0x1A,0x54,0xF2,0x54,0x53,0xD4,0x12,0x44,0x12,0x54,0x12,0xC8},/*"輸",11*/

{0x04,0x00,0x02,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x02,0x80,0x02,0x80,0x02,0x80,
0x04,0x40,0x04,0x40,0x08,0x20,0x08,0x20,0x10,0x10,0x20,0x10,0x40,0x08,0x80,0x06},/*"入",12*/

{0x22,0x08,0x11,0x08,0x11,0x10,0x00,0x20,0x7F,0xFE,0x40,0x02,0x80,0x04,0x1F,0xE0,
0x00,0x40,0x01,0x80,0xFF,0xFE,0x01,0x00,0x01,0x00,0x01,0x00,0x05,0x00,0x02,0x00},/*"學(xué)",13*/

{0x00,0x00,0x1F,0xF0,0x10,0x10,0x10,0x10,0x10,0x10,0x1F,0xF0,0x00,0x00,0xFF,0xFE,
0x08,0x00,0x10,0x00,0x1F,0xF0,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0xA0,0x00,0x40},/*"號(hào)",14*/

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x30,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x30,0x00,0x00,0x00,0x00,0x00},/*":",15*/

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",16*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},

{0x00,0x00,0x7F,0xFC,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x11,0x00,0x11,0xF8,
0x11,0x00,0x11,0x00,0x11,0x00,0x11,0x00,0x11,0x00,0x11,0x00,0xFF,0xFE,0x00,0x00},/*"正",17*/

{0x00,0x40,0x00,0x40,0xFC,0x7C,0x10,0x84,0x11,0x08,0x22,0xFE,0x3C,0x92,0x64,0x92,
0x64,0xFE,0xA4,0x92,0x24,0x92,0x24,0xFE,0x3C,0x92,0x25,0x12,0x21,0x0A,0x02,0x04},/*"確",18*/

{0x21,0x10,0x21,0x10,0x39,0x10,0x27,0xFC,0x41,0x10,0x79,0x10,0xAF,0xFE,0x20,0x00,
0xFB,0xF8,0x22,0x08,0x22,0x08,0x23,0xF8,0x2A,0x08,0x32,0x08,0x23,0xF8,0x02,0x08},/*"錯(cuò)",19*/

{0x00,0x00,0x43,0xF8,0x22,0x08,0x22,0x08,0x03,0xF8,0x00,0x00,0xE0,0x00,0x27,0xFC,
0x20,0x40,0x20,0x40,0x2F,0xFE,0x20,0x40,0x28,0xA0,0x31,0x10,0x22,0x08,0x0C,0x06},/*"誤",20*/

};

uchar code SZ[][16]={
	
{0x00,0x00,0x00,0x18,0x24,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x24,0x18,0x00,0x00},/*"0",0*/

{0x00,0x00,0x00,0x08,0x38,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x3E,0x00,0x00},/*"1",1*/

{0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x02,0x04,0x08,0x10,0x20,0x42,0x7E,0x00,0x00},/*"2",2*/

{0x00,0x00,0x00,0x3C,0x42,0x42,0x02,0x04,0x18,0x04,0x02,0x42,0x42,0x3C,0x00,0x00},/*"3",3*/

{0x00,0x00,0x00,0x04,0x0C,0x0C,0x14,0x24,0x24,0x44,0x7F,0x04,0x04,0x1F,0x00,0x00},/*"4",4*/

{0x00,0x00,0x00,0x7E,0x40,0x40,0x40,0x78,0x44,0x02,0x02,0x42,0x44,0x38,0x00,0x00},/*"5",5*/

{0x00,0x00,0x00,0x18,0x24,0x40,0x40,0x5C,0x62,0x42,0x42,0x42,0x22,0x1C,0x00,0x00},/*"6",6*/

{0x00,0x00,0x00,0x7E,0x42,0x04,0x04,0x08,0x08,0x10,0x10,0x10,0x10,0x10,0x00,0x00},/*"7",7*/

{0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x24,0x18,0x24,0x42,0x42,0x42,0x3C,0x00,0x00},/*"8",8*/

{0x00,0x00,0x00,0x38,0x44,0x42,0x42,0x42,0x46,0x3A,0x02,0x02,0x24,0x18,0x00,0x00},/*"9",9*/

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",10*/

{0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x7F,0x08,0x08,0x08,0x00,0x00,0x00,0x00},/*"+",11*/

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"-",12*/

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x76,0x24,0x18,0x18,0x18,0x24,0x6E,0x00,0x00},/*"x",13*/

{0x00,0x00,0x02,0x04,0x04,0x04,0x08,0x08,0x10,0x10,0x10,0x20,0x20,0x40,0x40,0x00},/*"/",14*/
{0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x7F,0x08,0x08,0x08,0x00,0x00,0x00,0x00},/*"=",15*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00},/*"=",16*/
};


void delay(uint t) //延時(shí)函數(shù)
{
uint i,j;
for(i=0;i1)
			{
			Tit_Now--;
			display_SZ(3,0,SZ[Tit[(Tit_Now-1)*2]]);
		  display_SZ(3,1,SZ[Tit_Now+10]);
			display_SZ(3,2,SZ[Tit[(Tit_Now-1)*2+1]]);
			display_SZ(3,3,SZ[16]);
			display_SZ(3,10,SZ[Tit_Now]);
			display_SZ(3,4,SZ[Answer[Tit_Now-1]]);
			}
			
		}
		
	}
	else
	{
		h1=1;
		h2=0;	
	if(l1==0 && h1==1 && h2==0 && l2==1 && l3==1 && l4==1 )//6
	{
		while(l1==0);
			if(flag_mode == 0)
		{
			S_num = 4;
			display_SZ(2,6,SZ[S_num]);
		}else if(flag_mode == 1)
		{
			S_buff[S_wei] = 4;
			display_SZ(2,S_wei,SZ[4]);
			S_wei++;
		}else if(flag_mode == 2)
		{
			Answer[Tit_Now-1] = 4;
			display_SZ(3,4,SZ[4]);
		}
		
		
	}else if(l1==1 && h1==1 && h2==0 && l2==0 && l3==1 && l4==1 )//7
	{
		while(l2==0);
		if(flag_mode == 1)
		{
			S_buff[S_wei] = 5;
			display_SZ(2,S_wei,SZ[5]);
			S_wei++;
		}else if(flag_mode == 2)
		{
			Answer[Tit_Now-1] = 5;
			display_SZ(3,4,SZ[5]);
		}
		
	}else if(l1==1 && h1==1 && h2==0 && l2==1 && l3==0 && l4==1)//8
	{
		while(l3==0);
		if(flag_mode == 1)
		{
			S_buff[S_wei] = 6;
			display_SZ(2,S_wei,SZ[6]);
			S_wei++;
		}else if(flag_mode == 2)
		{
			Answer[Tit_Now-1] = 6;
			display_SZ(3,4,SZ[6]);
		}
		
	}else if(l1==1 && h1==1 && h2==0 && l2==1 && l3==1 && l4==0)//9
	{
		while(l4==0);

		
	}else
	{
		
	  h1=1;
		h2=1;
    h3=0;
	
	if(l1==0 && h1==1 && h2==1 && h3==0 && l2==1 && l3==1 && l4==1)//11
	{
		while(l1==0);
		if(flag_mode == 1)
		{
			S_buff[S_wei] = 7;
			display_SZ(2,S_wei,SZ[7]);
			S_wei++;
		}else if(flag_mode == 2)
		{
			Answer[Tit_Now-1] = 7;
			display_SZ(3,4,SZ[7]);
		}
		
	}else if(l1==1 && h1==1 && h2==1 && h3==0 && l2==0 && l3==1 && l4==1)//12
	{
		while(l2==0);
		if(flag_mode == 1)
		{
			S_buff[S_wei] = 8;
			display_SZ(2,S_wei,SZ[8]);
			S_wei++;
		}else if(flag_mode == 2)
		{
			Answer[Tit_Now-1] = 8;
			display_SZ(3,4,SZ[8]);
		}
		
	}else if(l1==1 && h1==1 && h2==1 && h3==0 && l2==1 && l3==0 && l4==1)//13
	{
		while(l3==0);
		if(flag_mode == 1)
		{
			S_buff[S_wei] = 9;
			display_SZ(2,S_wei,SZ[9]);
			S_wei++;
		}else if(flag_mode == 2)
		{
			Answer[Tit_Now-1] = 9;
			display_SZ(3,4,SZ[9]);
		}
		
	}else if(l1==1 && h1==1 && h2==1 && h3==0 && l2==1 && l3==1 && l4==0 )//14
	{
		while(l4==0);
			 if(flag_mode == 2)
		{
			if(Tit_Now
聲明:本文內(nèi)容及配圖由入駐作者撰寫(xiě)或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問(wèn)題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • 單片機(jī)
    +關(guān)注

    關(guān)注

    6035

    文章

    44554

    瀏覽量

    634633
  • Proteus
    +關(guān)注

    關(guān)注

    79

    文章

    1692

    瀏覽量

    106515
  • 服務(wù)器
    +關(guān)注

    關(guān)注

    12

    文章

    9123

    瀏覽量

    85324
  • 仿真系統(tǒng)
    +關(guān)注

    關(guān)注

    1

    文章

    97

    瀏覽量

    20650
收藏 人收藏

    評(píng)論

    相關(guān)推薦

    51單片機(jī)雙機(jī)通信

    本帖最后由 諾言proteus 于 2013-5-7 10:39 編輯 誰(shuí)有51單片機(jī)雙機(jī)通信啊?要基于proteus仿真圖,和運(yùn)行程序.asm或者.c的。一經(jīng)錄用。重謝?。。?/div>
    發(fā)表于 12-30 07:40

    雙機(jī)通訊程序加仿真

    雙機(jī)通訊程序加仿真
    發(fā)表于 05-05 16:24

    Proteus的51程序設(shè)計(jì)和仿真

    Proteus的51程序設(shè)計(jì)和一個(gè)仿真仿真背景一、Proteus安裝二、51程序設(shè)計(jì)和仿真1.代碼2.protues操作過(guò)程總結(jié)
    發(fā)表于 01-10 06:49

    PROTEUS VSM在單片機(jī)系統(tǒng)仿真中的應(yīng)用

    PROTEUS VSM在單片機(jī)系統(tǒng)仿真中的應(yīng)用::介紹了單片機(jī)系統(tǒng)仿真工具PROTEUS VSM
    發(fā)表于 03-20 16:39 ?52次下載

    PROTEUS仿真開(kāi)發(fā)軟件應(yīng)用

    內(nèi)容提要PROTEUS簡(jiǎn)介PROTEUS ISIS的特點(diǎn)PROTEUS VSM仿真與分析微處理器系統(tǒng)仿真
    發(fā)表于 08-23 10:10 ?254次下載

    基于Proteus的嵌入式應(yīng)用系統(tǒng)仿真中的源碼調(diào)試

    基于Proteus的嵌入式應(yīng)用系統(tǒng)仿真中的源碼調(diào)試 0 引 言    Proteus是功能最強(qiáng)的嵌入式系統(tǒng)(
    發(fā)表于 12-22 17:49 ?2119次閱讀
    基于<b class='flag-5'>Proteus</b>的嵌入式應(yīng)用<b class='flag-5'>系統(tǒng)</b><b class='flag-5'>仿真</b>中的源碼調(diào)試

    (全套)基于PROTEUS電路及單片機(jī)系統(tǒng)設(shè)計(jì)與仿真

    PROTEUS簡(jiǎn)介 PROTEUS ISIS 原理圖輸入 電路仿真與分析 人性化測(cè)量方法 高級(jí)電路設(shè)計(jì)與仿真 微處理器系統(tǒng)
    發(fā)表于 09-10 10:08 ?125次下載

    Proteus之個(gè)單片機(jī)雙機(jī)通信

    Proteus之個(gè)單片機(jī)雙機(jī)通信,很好的Proteus了,快來(lái)下載不學(xué)習(xí)吧。
    發(fā)表于 04-18 15:34 ?0次下載

    51單片機(jī)雙機(jī)通信,Proteus

    51單片機(jī)雙機(jī)通信,Proteus仿真
    發(fā)表于 12-20 22:39 ?44次下載

    51單片機(jī)雙機(jī)通信,Proteus

    51單片機(jī)雙機(jī)通信,Proteus仿真
    發(fā)表于 12-20 22:39 ?37次下載

    單片機(jī)系統(tǒng)設(shè)計(jì)與仿真 基于PROTEUS

    單片機(jī)系統(tǒng)設(shè)計(jì)與仿真 基于PROTEUS
    發(fā)表于 11-29 15:42 ?15次下載

    雙機(jī)串行通信的詳細(xì)中文資料概述

    本文檔的主要內(nèi)容介紹的是雙機(jī)串行通信的詳細(xì)中文資料概述主要包括了2個(gè)部分:1 編制雙機(jī)串行通信方式1程序,2 Keil編譯調(diào)試和Proteus虛擬仿真
    發(fā)表于 06-20 08:00 ?24次下載
    <b class='flag-5'>雙機(jī)</b>串行通信的詳細(xì)中文資料概述

    基于Proteus的電機(jī)溫度巡檢系統(tǒng)的設(shè)計(jì)與仿真

    基于Proteus的電機(jī)溫度巡檢系統(tǒng)的設(shè)計(jì)與仿真說(shuō)明。
    發(fā)表于 05-20 11:09 ?20次下載

    關(guān)于Proteus仿真stm32系統(tǒng)時(shí)鐘的問(wèn)題

    關(guān)于Proteus仿真stm32系統(tǒng)時(shí)鐘的問(wèn)題
    發(fā)表于 11-24 20:06 ?25次下載
    關(guān)于<b class='flag-5'>Proteus</b><b class='flag-5'>仿真</b>stm32<b class='flag-5'>系統(tǒng)</b>時(shí)鐘的問(wèn)題

    基于Proteus的單片機(jī)系統(tǒng)設(shè)計(jì)與仿真

    基于Proteus的單片機(jī)系統(tǒng)設(shè)計(jì)與仿真的基礎(chǔ)介紹論文
    發(fā)表于 06-15 14:38 ?9次下載
    主站蜘蛛池模板: aaaaaa级特色特黄的毛片| 亚洲精品一二三区-久久| 国产一区91| 中文字幕一区二区三区在线观看 | 超碰caoporen国产| 亚洲 小说 欧美 激情 另类| 久久亚洲精品AV成人无| 草莓在线观看| 亚洲综合AV色婷婷五月蜜臀| 欧美猛男gaygayxxgv| 国产精品自产拍在线观看网站 | 久久re6热在线视频| 99久久综合精品免费| 午夜DV内射一区区| 久久午夜一区二区| 高清国语自产拍免费| 一个人在线观看免费中文www | 扒开她的黑森林让我添动态图 | 天堂岛www| 久久婷婷五月综合色丁香| 丰满的女朋友韩国版在线观看| 亚洲综合中文| 日本免费一区二区三区最新vr| 交换:年轻夫妇-HD中文字幕| bbwvideos欧美老妇| 亚洲国语在线视频手机在线| 欧美高清vivoesond在线播放| 国产日韩精品一区二区三区在线| 97人人看碰人免费公开视频| 无码一区二区在线欧洲| 李丽莎与土豪50分钟在线观看| 国产成人久久精品AV| 最近高清中文字幕无吗免费看| 色欲天天天综合网免费| 快播av网址| 国产乱辈通伦影片在线播放亚洲| 97成人免费视频| 亚洲国产精品高清在线| 麒麟色欧美影院在线播放| 精品无人区一区二区三区| 打卡中国各地奋斗第一线|