该设计中所需字符比较简单,按照需要自行设计了字符“O~9”,“.”,“:”,“T”。由于字库较小,采用数组方式存放数据。如下程序所示。
{0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00}, //[1]
{0x00,0x00,0xf1,0x91,0x91,0x8f,0x00,0x00}, //[2]
{0x00,0x00,0x91,0x91,0x91,0xff,0x00,0x00}, //[3]
{0x00,0x00,0x1f,0x10,0x10,0xff,0x00,0x00}, //[4]
{0x00,0x00,0x9f,0x91,0x91,0xf1,0x00,0x00}, //[5]
{0x00,0x00,0xff,0x91,0x91,0xf1, 0x00, 0x00}, //[6]
{0x00,0x00,0x01,0x01,0x01,0xff,0x00,0x00}, //[7]
{0x00,0x00,0xff,0x91,0x91,0xff,0x00,0x00}, //[8]
{0x00,0x00,0x8f,0x89,0x89,0xff,0x00,0x00}. //[9]
{0x04,0x02,0x82,0xfe,0x82,0x02,0x04.0x00}, //T[10]
{0x00,0x60,0x60,0x00, 0x00,0x00,0x00,0x00}, //.[11]
{0x00,0x6c,0x6c,0x00,0x00,0x00.0x00.0x00}, //:[12]
};
3 系统设计
这里设计的温度测控系统采用Actel公司的SoPC解决方案,它基于嵌入式软核CortexM1核,在性能上CortexM1可满足当前大部分嵌入式产品的设计。该系统的主电路采用Actel公司提供的Fusion系列FPGA,实现温度控制,由于加热和制冷部分条件的限制,只采用模拟方式。电路可实现温度显示,设置上、下限温度,超出范围报警以及与PC机通信的功能。系统测量精度和控制精度均良好。