📄 1632_h_v_c_e.c
字号:
//1632串口显示-垂直-水平-英文暂停
//1632串口显示-垂直-水平-中英文暂停
//"H"水平 "V"垂直
//Baud:1200 fosc=11.0592MHz
//红显-中英文暂停//编译//func_out_of_service_C_E_H();//func_out_of_service_C_E_V();//func_delay(20);//红//NR20040669-01
//红显-英文暂停//编译//func_out_of_service_H();//func_out_of_service_V();//func_delay(20);//红//NR20040669-02
//绿显-中英文暂停//编译//func_out_of_service_C_E_H();//func_out_of_service_C_E_V();//func_delay(50);//绿//NR20040669-03
//绿显-英文暂停//编译//func_out_of_service_H();//func_out_of_service_V();//func_delay(50);//绿//NR20040669-04
#include <reg52.h>
#include <intrins.h>
sfr WDTSFR =0xa6;//dog
unsigned char BufferDisp[64];//显示内存
unsigned char tens,singles,stautes,graycodes,tss,
// tensi,singlesi,stautesi,graycodei,tsi,
ten,single,//graycode_cur,graycode_cur1,ts,
FlagChanged;
unsigned char bdata staute;
unsigned char graycode_cur_old;
unsigned char rolls;//滚动位置位
unsigned char used_time,no_time;
unsigned char ten_old,single_old;
unsigned char gd_k;//滚动位
unsigned char cx_w,cx_w_i,cx_w_old,cx_w_z;//层选位
unsigned char arrow,arriver_arrow,roll_arrow,arrow_old;
unsigned char kk,km;//退出显示标志位
bit up_dn;
unsigned char shu;
sbit out=staute^4;//暂停位
sbit select=P1^0;//层选位
sbit tone2=P3^3;
sbit tone1=P3^2;//到站钟
sbit pec1=P3^4;//547能使位
sbit v_h=P3^5;//V_H选择位 "H"_V "L"_H
unsigned char code BufferLetter_H[][16]={
{0x0F,0xF8,0x1F,0xFC,0x20,0x02,0x20,0x02,0x20,0x02,0x20,0x02,0x1F,0xFC,0x0F,0xF8},
{0x00,0x00,0x20,0x00,0x20,0x08,0x3F,0xFC,0x3F,0xFE,0x20,0x00,0x20,0x00,0x00,0x00},
{0x30,0x0C,0x38,0x06,0x2C,0x02,0x26,0x02,0x23,0x02,0x21,0x82,0x20,0xFC,0x20,0x78},
{0x18,0x0C,0x30,0x06,0x20,0x82,0x20,0x82,0x20,0x82,0x20,0x82,0x1F,0x7C,0x0E,0x38},
{0x01,0x80,0x01,0xC0,0x01,0x20,0x01,0x10,0x01,0x08,0x3F,0xFC,0x3F,0xFE,0x01,0x00},
{0x18,0x7E,0x30,0x7E,0x20,0x42,0x20,0x42,0x20,0x42,0x20,0x42,0x3F,0xC2,0x1F,0x82},
{0x0F,0xF8,0x1F,0xFC,0x20,0x42,0x20,0x42,0x20,0x42,0x20,0x42,0x1F,0x86,0x0F,0x0C},
{0x00,0x0E,0x00,0x06,0x00,0x02,0x3F,0x82,0x3F,0xC2,0x00,0x62,0x00,0x3E,0x00,0x1E},
{0x0E,0x38,0x1F,0x7C,0x20,0x82,0x20,0x82,0x20,0x82,0x20,0x82,0x1F,0x7C,0x0E,0x38},
{0x18,0x78,0x30,0xFC,0x21,0x02,0x21,0x02,0x21,0x02,0x21,0x02,0x1F,0xFC,0x0F,0xF8},
/*{0x3F,0xF0,0x3F,0xF8,0x01,0x0C,0x01,0x06,0x01,0x06,0x01,0x0C,0x3F,0xF8,0x3F,0xF0},//A
{0x3F,0xFE,0x3F,0xFE,0x30,0xC6,0x30,0xC6,0x30,0xC6,0x30,0xC6,0x1F,0xFC,0x0F,0xB8},//B
{0x0F,0xF8,0x1F,0xFC,0x30,0x06,0x30,0x06,0x30,0x06,0x30,0x06,0x18,0x0C,0x08,0x08},//C
{0x3F,0xFE,0x3F,0xFE,0x30,0x06,0x30,0x06,0x30,0x06,0x30,0x06,0x1F,0xFC,0x0F,0xF8},//D
{0x3F,0xFE,0x3F,0xFE,0x30,0xC6,0x30,0xC6,0x30,0xC6,0x30,0xC6,0x30,0x06,0x30,0x06},//E
{0x3F,0xFE,0x3F,0xFE,0x00,0xC6,0x00,0xC6,0x00,0xC6,0x00,0xC6,0x00,0x06,0x00,0x06},//F
{0x0F,0xF8,0x1F,0xFC,0x30,0x06,0x30,0x06,0x30,0x06,0x32,0x06,0x1E,0x0C,0x0E,0x08},//G
{0x3F,0xFE,0x3F,0xFE,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x3F,0xFE,0x3F,0xFE},//H
{0x00,0x00,0x00,0x00,0x30,0x06,0x3F,0xFE,0x3F,0xFE,0x30,0x06,0x00,0x00,0x00,0x00},//I
{0x18,0x00,0x38,0x06,0x30,0x06,0x30,0x06,0x3F,0xFE,0x1F,0xFE,0x00,0x06,0x00,0x06},//J
{0x3F,0xFE,0x3F,0xFE,0x01,0xC0,0x03,0x60,0x06,0x30,0x0C,0x18,0x18,0x0C,0x30,0x06},//K
{0x3F,0xFE,0x3F,0xFE,0x30,0x00,0x30,0x00,0x30,0x00,0x30,0x00,0x30,0x00,0x30,0x00},//L
{0x3F,0xFE,0x3F,0xFC,0x00,0x08,0x01,0xF0,0x01,0xF0,0x00,0x08,0x3F,0xFC,0x3F,0xFE},//M
{0x3F,0xFE,0x3F,0xFE,0x00,0x60,0x00,0xC0,0x01,0x80,0x03,0x00,0x3F,0xFE,0x3F,0xFE},//N
{0x0F,0xF8,0x1F,0xFC,0x30,0x06,0x30,0x06,0x30,0x06,0x30,0x06,0x1F,0xFC,0x0F,0xF8},//O
{0x3F,0xFE,0x3F,0xFE,0x01,0x86,0x01,0x86,0x01,0x86,0x01,0x86,0x00,0xFC,0x00,0x78},//P
{0x0F,0xF8,0x1F,0xFC,0x30,0x06,0x30,0x06,0x34,0x06,0x38,0x06,0x1F,0xFC,0x2F,0xF8},//Q
{0x3F,0xFE,0x3F,0xFE,0x03,0x86,0x07,0x86,0x0D,0x86,0x19,0x86,0x31,0xFE,0x20,0xFC},//R
{0x08,0x18,0x18,0x3C,0x30,0x66,0x30,0xC6,0x31,0x86,0x33,0x06,0x1E,0x0C,0x0C,0x08},//S
{0x00,0x06,0x00,0x06,0x00,0x06,0x3F,0xFE,0x3F,0xFE,0x00,0x06,0x00,0x06,0x00,0x06},//T
{0x1F,0xFE,0x3F,0xFE,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x3F,0xFE,0x1F,0xFE},//U
{0x0F,0xFE,0x1F,0xFE,0x30,0x00,0x60,0x00,0x60,0x00,0x30,0x00,0x1F,0xFE,0x0F,0xFE},//V
{0x3F,0xFE,0x1F,0xFE,0x08,0x00,0x07,0x80,0x07,0x80,0x08,0x00,0x1F,0xFE,0x3F,0xFE},//W
{0x3C,0x1E,0x3E,0x3E,0x03,0x60,0x01,0xC0,0x01,0xC0,0x03,0x60,0x3E,0x3E,0x3C,0x1E},//X
{0x00,0x1E,0x00,0x3E,0x00,0x60,0x3F,0xC0,0x3F,0xC0,0x00,0x60,0x00,0x3E,0x00,0x1E},//Y
{0x3C,0x06,0x3E,0x06,0x33,0x06,0x31,0x86,0x30,0xC6,0x30,0x66,0x30,0x3E,0x30,0x1E},//Z
{0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0},//-
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},// one space
{0x0F,0xF8,0x1F,0xFC,0x20,0x02,0x20,0x02,0x20,0x02,0x20,0x02,0x1F,0xFC,0x0F,0xF8},//0
*/
};//数字H
unsigned char code BufferArrow_H[2][16]={
{0x00,0x00,0x04,0x00,0x0C,0x00,0x1F,0xFE,0x3F,0xFE,0x1F,0xFE,0x0C,0x00,0x04,0x00},//up
{0x00,0x00,0x00,0x10,0x00,0x18,0x3F,0xFC,0x3F,0xFE,0x3F,0xFC,0x00,0x18,0x00,0x10},//down
};//上下箭头H
unsigned char code BufferPreArrow_H[3][48]={
{
0x00,0x10,0x00,0x30,0x00,0x70,0x00,0xF0,0x01,0xF0,0x03,0xF0,0x07,0xF0,0x0F,0xF0,
0x07,0xF0,0x03,0xF0,0x01,0xF0,0x00,0xF0,0x00,0x70,0x00,0x30,0x00,0x10,0x00,0x00
},
{
0x08,0x00,0x0C,0x00,0x0E,0x00,0x0F,0x00,0x0F,0x80,0x0F,0xC0,0x0F,0xE0,0x0F,0xF0,
0x0F,0xE0,0x0F,0xC0,0x0F,0x80,0x0F,0x00,0x0E,0x00,0x0C,0x00,0x08,0x00,0x00,0x00
},
{
0x00,0x00,0x02,0x80,0x06,0xC0,0x0E,0xE0,0x1E,0xF0,0x3E,0xF8,0x7E,0xFC,0xFE,0xFE,
0x7E,0xFC,0x3E,0xF8,0x1E,0xF0,0x0E,0xE0,0x06,0xC0,0x02,0x80,0x00,0x00,0x00,0x00
},
};//到站H
unsigned char code BufferZT_H[]={
0x4C,0x7C,0x92,0x82,0x92,0x82,0x64,0x82,0x00,0x7C,0xFE,0x00,0x92,0x7E,0x92,0x80,
0x82,0x80,0x00,0x80,0xFE,0x7E,0x32,0x00,0x52,0x02,0x8C,0x02,0x00,0xFE,0x3E,0x02,
0x40,0x02,0x80,0x00,0x40,0x00,0x3E,0x00,0x00,0x7C,0xFE,0x82,0x00,0x82,0x7C,0x82,
0x82,0x7C,0x82,0x00,0x44,0xFE,0x00,0x12,0xFE,0x12,0x92,0x12,0x92,0x02,0x82,0x00,
};//英文暂停H
unsigned char code BufferZT_C_E_H[]={
/*-- 宽度x高度=16x72 --*/
0x00,0x80,0x00,0x92,0x00,0x9A,0x7E,0x96,0x4B,0xFB,0x4A,0x52,0x4B,0x52,0x4A,0x80,
0x4A,0x7E,0x4A,0x12,0x4A,0x12,0x7E,0x12,0x01,0xF2,0x00,0x12,0x00,0x10,0x00,0x00,
0x00,0x80,0x00,0x40,0x00,0x20,0xFF,0xF8,0x00,0x07,0x03,0x02,0x01,0x04,0x05,0x74,
0x45,0x54,0x85,0x55,0x7D,0x56,0x05,0x54,0x05,0x74,0x05,0x04,0x03,0x04,0x00,0x00,
0x00,0x00,0x4C,0x00,0x92,0x00,0x92,0x00,0x92,0x7C,0x64,0x82,0x00,0x82,0xFE,0x82,
0x92,0x7C,0x92,0x00,0x92,0x7E,0x82,0x80,0x00,0x80,0xFE,0x80,0x32,0x7E,0x52,0x00,
0x92,0x02,0x8C,0x02,0x00,0xFE,0x3E,0x02,0x40,0x02,0x80,0x00,0x40,0x00,0x3E,0x00,
0x00,0x00,0x82,0x00,0xFE,0x7C,0x82,0x82,0x00,0x82,0x7C,0x82,0x82,0x7C,0x82,0x00,
0x82,0xFE,0x44,0x12,0x00,0x12,0xFE,0x12,0x92,0x02,0x92,0x00,0x92,0x00,0x82,0x00,
/*--空--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};//中英文暂停H
unsigned char code BufferLetter_V[][16]={
{0x00,0x00,0x7C,0xFE,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xFE,0x7C,0x00,0x00,0x00},//0
{0x00,0x00,0x08,0x18,0x38,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00},//1
{0x00,0x00,0x7C,0xFE,0xC6,0x06,0x0C,0x18,0x30,0x60,0xC0,0xFE,0xFE,0x00,0x00,0x00},//2
{0x00,0x00,0x7C,0xFE,0xC6,0x06,0x1E,0x1C,0x06,0x06,0xC6,0xFE,0x7C,0x00,0x00,0x00},//3
{0x00,0x00,0x04,0x0C,0x1C,0x3C,0x6C,0xCC,0xFE,0xFE,0x0C,0x0C,0x0C,0x00,0x00,0x00},//4
{0x00,0x00,0xFE,0xFE,0xC0,0xC0,0xFC,0xFE,0x06,0x06,0xC6,0xFE,0x7C,0x00,0x00,0x00},//5
{0x00,0x00,0x7C,0xFE,0xC6,0xC0,0xFC,0xFE,0xC6,0xC6,0xC6,0xFE,0x7C,0x00,0x00,0x00},//6
{0x00,0x00,0xFE,0xFE,0x06,0x06,0x0C,0x18,0x30,0x30,0x30,0x30,0x30,0x00,0x00,0x00},//7
{0x00,0x00,0x7C,0xFE,0xC6,0xC6,0xFE,0x7C,0xC6,0xC6,0xC6,0xFE,0x7C,0x00,0x00,0x00},//8
{0x00,0x00,0x7C,0xFE,0xC6,0xC6,0xC6,0xFE,0x7E,0x06,0xC6,0xFE,0x7C,0x00,0x00,0x00},//9
/* {0x00,0x00,0x10,0x38,0x6C,0xC6,0xC6,0xC6,0xFE,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00},//a
{0x00,0x00,0xFC,0xFE,0xC6,0xC6,0xFC,0xFE,0xC6,0xC6,0xC6,0xFE,0xFC,0x00,0x00,0x00},//b
{0x00,0x00,0x38,0x7C,0xC6,0xC0,0xC0,0xC0,0xC0,0xC0,0xC6,0x7C,0x38,0x00,0x00,0x00},//c
{0x00,0x00,0xF8,0xFC,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xFC,0xF8,0x00,0x00,0x00},//d
{0x00,0x00,0xFE,0xC0,0xC0,0xC0,0xC0,0xFC,0xC0,0xC0,0xC0,0xC0,0xFE,0x00,0x00,0x00},//e
{0x00,0x00,0xFE,0xFE,0xC0,0xC0,0xF8,0xF8,0xC0,0xC0,0xC0,0xC0,0xC0,0x00,0x00,0x00},//f
{0x00,0x00,0x7C,0xFE,0xC6,0xC0,0xC0,0xC0,0xCE,0xC6,0xC6,0xFE,0x7C,0x00,0x00,0x00},//g
{0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xFE,0xC6,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00},//h
{0x00,0x00,0x3C,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00},//i
{0x00,0x00,0x1E,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x6C,0x6C,0x38,0x00,0x00,0x00},//j
{0x00,0x00,0xC2,0xC6,0xCC,0xD8,0xF0,0xE0,0xF0,0xD8,0xCC,0xC6,0xC2,0x00,0x00,0x00},//k
{0x00,0x00,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xFE,0x00,0x00,0x00},//l
{0x00,0x00,0x82,0xC6,0xEE,0xD6,0xD6,0xD6,0xD6,0xD6,0xC6,0xC6,0xC6,0x00,0x00,0x00},//m
{0x00,0x00,0xC6,0xC6,0xC6,0xE6,0xF6,0xF6,0xDE,0xCE,0xCE,0xC6,0xC6,0x00,0x00,0x00},//n
{0x00,0x00,0x38,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x38,0x00,0x00,0x00},//o
{0x00,0x00,0xF8,0xFC,0xC6,0xC6,0xC6,0xFC,0xF8,0xC0,0xC0,0xC0,0xC0,0x00,0x00,0x00},//p
{0x00,0x00,0x38,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0xD6,0xCE,0x7C,0x3A,0x00,0x00,0x00},//q
{0x00,0x00,0xF8,0xC4,0xC6,0xC6,0xC4,0xF8,0xE0,0xD0,0xC8,0xC4,0xC2,0x00,0x00,0x00},//r
{0x00,0x00,0x38,0x7C,0xC6,0xC6,0x60,0x38,0x0C,0xC6,0xC6,0x7C,0x38,0x00,0x00,0x00},//s
{0x00,0x00,0xFF,0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x00,0x00,0x00},//t
{0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xFE,0x7C,0x00,0x00,0x00},//u
{0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x44,0x28,0x10,0x00,0x00,0x00},//v
{0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xD6,0xD6,0xD6,0xD6,0x54,0x28,0x00,0x00,0x00},//w
{0x00,0x00,0xC3,0xC3,0xC3,0x66,0x3C,0x18,0x3C,0x66,0xC3,0xC3,0xC3,0x00,0x00,0x00},//x
{0x00,0x00,0xC3,0xC3,0xC3,0x66,0x3C,0x18,0x18,0x18,0x18,0x18,0x18,0x00,0x00,0x00},//y
{0x00,0x00,0xFE,0xFE,0x06,0x06,0x0C,0x18,0x30,0x60,0xC0,0xFE,0xFE,0x00,0x00,0x00},//z
{0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},//-
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},// one space
{0x00,0x00,0x7C,0xFE,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xFE,0x7C,0x00,0x00,0x00},//0
*/ };//数字V
unsigned char code BufferArrow_V[2][32]={
{
0x00,0x00,0x00,0x00,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,
0x3F,0xF8,0x1F,0xF0,0x0F,0xE0,0x07,0xC0,0x03,0x80,0x01,0x00,0x00,0x00,0x00,0x00
},//up
{
0x00,0x00,0x00,0x00,0x01,0x00,0x03,0x80,0x07,0xC0,0x0F,0xE0,0x1F,0xF0,0x3F,0xF8,
0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x00,0x00,0x00,0x00
},//down
};//上下箭头V
unsigned char code BufferPreArrow_V[3][64]={
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xC0,0x07,0xC0,0x07,0xC0,0x7F,0xFC,0x3F,0xF8,
0x1F,0xF0,0x0F,0xE0,0x07,0xC0,0x03,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
},
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x03,0x80,0x07,0xC0,0x0F,0xE0,0x1F,0xF0,
0x3F,0xF8,0x7F,0xFC,0x07,0xC0,0x07,0xC0,0x07,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
},
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x03,0x80,0x07,0xC0,0x0F,0xE0,
0x1F,0xF0,0x3F,0xF8,0x7F,0xFC,0x07,0xC0,0x07,0xC0,0x07,0xC0,0x07,0xC0,0x00,0x00,
0x00,0x00,0x07,0xC0,0x07,0xC0,0x07,0xC0,0x7F,0xFC,0x3F,0xF8,0x1F,0xF0,0x0F,0xE0,
0x07,0xC0,0x03,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}
};
unsigned char code BufferZT_V[]={
/*-- 宽度x高度=16x56 --*/
0x72,0x3F,0x8A,0x24,0x8A,0x24,0x8A,0x24,0x8A,0x24,0x8A,0x24,0x71,0xC4,0x00,0x00,
0x1C,0xF8,0x22,0x80,0x22,0x80,0x22,0xF0,0x22,0x80,0x22,0x80,0x1C,0x80,0x00,0x00,
0x03,0x80,0x04,0x40,0x04,0x00,0x03,0x80,0x00,0x40,0x04,0x40,0x03,0x80,0x00,0x00,
0x07,0xC0,0x04,0x00,0x04,0x00,0x07,0x80,0x04,0x00,0x04,0x00,0x07,0xC0,0x00,0x00,
0x07,0x80,0x04,0x40,0x04,0x40,0x07,0x80,0x06,0x00,0x05,0x00,0x04,0xC0,0x00,0x00,
0x04,0x40,0x04,0x40,0x04,0x40,0x04,0x40,0x04,0x40,0x02,0x80,0x01,0x00,0x00,0x00,
0xE7,0x3E,0x48,0xA0,0x48,0x20,0x48,0x3C,0x48,0x20,0x48,0xA0,0xE7,0x3E,0x00,0x00,
/*--空--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};//英文暂停V
unsigned char code BufferZT_C_E_V[]={
/*-- 宽度x高度=16x88 --*/
0x08,0x00,0x7E,0xFC,0x10,0x80,0x28,0x80,0x7E,0xFE,0x08,0x88,0x0E,0x88,0xF9,0x08,
0x0A,0x08,0x1F,0xF0,0x10,0x10,0x1F,0xF0,0x10,0x10,0x10,0x10,0x1F,0xF0,0x00,0x00,
0x08,0x40,0x0C,0x20,0x0B,0xFE,0x10,0x00,0x11,0xF8,0x31,0x08,0x51,0xF8,0x90,0x00,
0x17,0xFE,0x14,0x02,0x11,0xFC,0x10,0x20,0x10,0x20,0x10,0x20,0x10,0xA0,0x10,0x40,
0x00,0x00,0x72,0x3F,0x8A,0x24,0x8A,0x24,0x8A,0x24,0x8A,0x24,0x8A,0x24,0x71,0xC4,
0x00,0x00,0x1C,0xF8,0x22,0x80,0x22,0x80,0x22,0xF0,0x22,0x80,0x22,0x80,0x1C,0x80,
0x00,0x00,0x03,0x80,0x04,0x40,0x04,0x00,0x03,0x80,0x00,0x40,0x04,0x40,0x03,0x80,
0x00,0x00,0x07,0xC0,0x04,0x00,0x04,0x00,0x07,0x80,0x04,0x00,0x04,0x00,0x07,0xC0,
0x00,0x00,0x07,0x80,0x04,0x40,0x04,0x40,0x07,0x80,0x06,0x00,0x05,0x00,0x04,0xC0,
0x00,0x00,0x04,0x40,0x04,0x40,0x04,0x40,0x04,0x40,0x04,0x40,0x02,0x80,0x01,0x00,
0x00,0x00,0xE7,0x3E,0x48,0xA0,0x48,0x20,0x48,0x3C,0x48,0x20,0x48,0xA0,0xE7,0x3E,
/*--空--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};//中英文暂停V
void func_serious_init(void);//串口初始化
void func_whole_buffer_clear(void);//全清除
void func_delay(unsigned char x);//延时
void initT0(void);//初始化定时器0
void r_d_cx (void);//读层选
void func_display_H(void);//显示H
void func_write_arrow_H(unsigned char x);//写箭头H
void func_disp_roll_H(unsigned char x);//箭头滚动H
void func_long_disp_H(void);//长时间显示H
void func_whole_buffer_clear_x_H(void);//清除数字H
void func_noarrow_number_buffer_H(void);//没有箭头数字显示H
void func_arrow_number_buffer_H(void);//有箭头数字显示H
void func_out_of_service_H(void);//暂停H
void func_fill_letter_to_buffer_x_H(unsigned char let,unsigned char pos);//写数字的位置H
//void func_fill_letter_to_buffer_H(unsigned char let,unsigned char pos);//写数字中间H
void func_preselect_disp_H(void);//层选显示H
void func_out_of_service_C_E_H(void);//中英文暂停显示H
void func_display_V(void);//显示V
void func_out_of_service_V(void);//暂停V
void func_long_disp_V(void);//长时间显示V
void func_whole_buffer_clear_x_V(void);//清除数字V
void func_write_arrow_V(unsigned char x);//写箭头V
void func_disp_roll_V(unsigned char x);//箭头滚动V
//void func_fill_letter_to_buffer_V(unsigned char let,unsigned char pos);//有箭头双数字V
//void func_fill_letter_to_buffer_one_V(unsigned char let,unsigned char pos);//有箭头单数字V
void func_fill_letter_to_buffer_x_V(unsigned char let,unsigned char pos);//无箭头双数字V
void func_fill_letter_to_buffer_x_one_V(unsigned char let,unsigned char pos);//无箭头单数字V
void func_preselect_disp_V(void);//层选显示V
//void W_P_D_U_DU (unsigned char x);//V
void func_out_of_service_C_E_V(void);//暂停显示V
void main(void)
{
pec1=1;//547能使位
v_h=1;//H_V选择位
shu=0;up_dn=1;
// func_serious_init();//串口初始化
FlagChanged=1;//信号中断位
func_whole_buffer_clear();//全清除
initT0();
arrow_old=0xff;ten_old=0xff;single_old=0xff;
_nop_();_nop_();_nop_();
WDTSFR=0x1e;//开看门狗
_nop_();_nop_();_nop_();
WDTSFR=0xe1;//喂狗
if(v_h)
{
while(1)
{
top: arriver_arrow=staute&0x03;//预选箭头
roll_arrow=_cror_(staute&0x0c,2);
// graycode_cur_old=graycode_cur;
if (out) //暂停服务
{
gd_k=0;
func_out_of_service_H();//英文暂停显示H
// func_out_of_service_C_E_H();//中英文暂停显示H
func_whole_buffer_clear();
arrow_old=0xff;ten_old=0xff;single_old=0xff;
goto top;
}
if ((cx_w_z==0)&&(arriver_arrow))//到站
{
gd_k=0;
func_preselect_disp_H();
func_whole_buffer_clear();
arrow_old=0xff;ten_old=0xff;single_old=0xff;
goto top;
}
if (roll_arrow!=arrow_old)//箭头变化写箭头
{
if(roll_arrow>2)roll_arrow=0;
arrow_old=roll_arrow;
if(arrow_old>0)
{
func_write_arrow_H(arrow_old-1); //写箭头H
rolls=0;gd_k=1;//滚动
}
else
func_whole_buffer_clear();//全清除
ten_old=0xff;single_old=0xff;//箭头变化清数字重新刷
}
if(ten_old!=ten || single_old!=single)//数字变化写数字
{
ten_old=ten;single_old=single;
if(roll_arrow==0)//没有箭头
{
func_whole_buffer_clear();
if(ten_old)
{
func_fill_letter_to_buffer_x_H(ten_old,12);
func_fill_letter_to_buffer_x_H(single_old,36);
}else
{
func_fill_letter_to_buffer_x_H(single_old,24);
}
}
else//有箭头
{ func_whole_buffer_clear_x_H();
if(ten)
{
func_fill_letter_to_buffer_x_H(ten_old,22);
func_fill_letter_to_buffer_x_H(single_old,44);
}else
{
//func_whole_buffer_clear_x_H();
func_fill_letter_to_buffer_x_H(single_old,32);
}
}
}
if(ten_old!=ten || single_old!=single)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -