- 1、本文档共7页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
16路电压检测程序
#includereg52.h
#includeintrins.h
#define uint unsigned int
#define uchar unsigned char
#define ulong unsigned long
#define addo (5.0/65535.0)
sbit E=P2^0;
sbit RW=P2^1;
sbit RS=P2^2;
sbit SDO=P2^3;
sbit SCK=P2^4;
sbit CONV=P2^5;
sbit CS1=P2^6;
sbit CS2=P2^7;
uchar code num[]=
{
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,/*0,0*/
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,/*1,1*/
0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,/*2,2*/
0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,/*3,3*/
0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00,/*4,4*/
0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,/*5,5*/
0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00,/*6,6*/
0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,/*7,7*/
0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00,/*8,8*/
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00,/*9,9*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,/*.,A*/
};
uchar code Hz[]=
{
0x00,0x04,0x04,0xF4,0x94,0x94,0x9C,0x97,0x94,0x94,0x94,0xF4,0x04,0x04,0x00,0x00,
0x40,0x40,0x40,0x7F,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x7F,0x40,0x40,0x40,0x00,/*直,0*/
0x10,0x60,0x01,0x86,0x60,0x04,0x44,0x64,0x55,0x4E,0x44,0x64,0xC4,0x04,0x04,0x00,
0x04,0x04,0xFC,0x03,0x40,0x30,0x0F,0x00,0x00,0x7F,0x00,0x3F,0x40,0x40,0x70,0x00,/*流,1*/
0x40,0x20,0xF8,0x17,0x02,0xFE,0x02,0xF2,0x02,0xFE,0x00,0xF8,0x00,0xFF,0x00,0x00,
0x00,0x00,0x7F,0x40,0x20,0x13,0x0C,0x03,0x04,0x3B,0x10,0x27,0x40,0x3F,0x00,0x00,/*侧,2*/
0x00,0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,0x48,0x48,0x48,0x48,0xF8,0x00,0x00,0x00,
0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0x3F,0x44,0x44,0x44,0x44,0x4F,0x40,0x70,0x00,/*电,3*/
0x00,0x00,0xFE,0x02,0x42,0x42,0x42
您可能关注的文档
- 色彩写生报告.doc
- therebe句型精讲.doc
- 反应速率与平衡(一).doc
- CSgui制作.doc
- XX村关于开展基层党组织现状大调查的报告.doc
- 哈佛图书馆的二十条训言(必威体育精装版版).doc
- 药业ppt简介.ppt
- 高二第二次月考数学模拟试题.doc
- 神童魏永康是当地的名人:13岁考上重点大学.doc
- 3_4_有机合成.ppt
- 2025年齿轮箱项目建设方案.docx
- 2023-2024学年浙江省杭州市保俶塔中学九年级数学第一学期期末调研模拟试题含解析.doc
- 2025年齿轮钢项目可行性建设方案.docx
- 2023-2024学年浙江省杭州市保俶塔中学九年级数学第一学期期末质量跟踪监视试题含解析.doc
- 2025年齿轮钢项目建设总纲及方案.docx
- 2025年咨询工程师之宏观经济政策与发展规划通关题库(附带答案).pdf
- 2025年齿轮加工机床项目构思建设方案.docx
- 2025年员工三级安全培训考试题【A卷】 .pdf
- 2025年呼吸与消化 整理与复习试卷(含单元过关测试) .pdf
- 2025年吴忠市同心县社区工作者招聘考试试题 .pdf
文档评论(0)