完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
多功能电力仪表LCD模块选型: 多功能电力仪表(网络电力仪表或智能电力仪表)用的显示屏,已经由传统的LED显示向LCD显示飞速发展,罗姆液晶根据国家电网公司对电力产品最新试验标准,结合多年的液晶模块生产经验,开发出多款品种的多功能电力仪表液晶模块,为仪表生产厂家解决了液晶模块定制、开模的烦恼,在满足性能、参数的同时,也大大降低了产品生产成本,为技术开发提供了有力保证,下面我们将逐品种介绍如下:
|
|
相关推荐
|
|
#include
#define u8 unsigned char #define u16 unsigned int ***it a=P2^4; //154芯片使能 ***it b=P2^5; u8 code led[][32]={ {0x02,0x02,0xFA,0x4A,0x4A,0x4A,0x4A,0xFE,0x4A,0x4A,0x4A,0x4A,0xFE,0x0B,0x02,0x00, 0x80,0x80,0x87,0x42,0x46,0x2A,0x12,0x2F,0x22,0x42,0x42,0x42,0x87,0x80,0x80,0x00,},// 更 {0x00,0x00,0x20,0x10,0x98,0xA4,0x47,0x24,0xE4,0x14,0x0C,0x04,0x00,0x00,0x00,0x00, 0x00,0x81,0x91,0x89,0x44,0x44,0x4A,0x31,0x11,0x11,0x09,0x05,0x03,0x01,0x00,0x00,},// 多 {0x00,0x00,0xF8,0x49,0x4A,0x4C,0x48,0xF8,0x48,0x4C,0x4A,0x49,0xFC,0x08,0x00,0x00, 0x10,0x10,0x17,0x12,0x12,0x12,0x12,0xFF,0x12,0x12,0x12,0x12,0x13,0x18,0x10,0x00,},//单 {0x00,0x00,0xFE,0x20,0x20,0x20,0x20,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x20,0x00, 0x80,0x40,0x3F,0x01,0x01,0x01,0x01,0x01,0x01,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,},//片 {0x10,0x10,0xD0,0xFF,0x90,0x10,0x00,0xFC,0x04,0x04,0x04,0xFE,0x04,0x00,0x00,0x00, 0x04,0x03,0x00,0xFF,0x80,0x41,0x20,0x1F,0x00,0x00,0x00,0x3F,0x40,0x40,0x70,0x00,},//机 {0x24,0x24,0xA4,0xFE,0xA3,0x22,0x20,0x7E,0x42,0x42,0x42,0x42,0x42,0x7F,0x02,0x00, 0x08,0x06,0x01,0xFF,0x00,0x43,0x41,0x49,0x49,0x49,0x7F,0x49,0x4D,0x69,0x41,0x00,},//程 {0x00,0x00,0xFC,0x04,0x14,0x14,0x14,0x55,0x96,0x54,0x34,0x14,0x16,0x04,0x00,0x00, 0x40,0x30,0x0F,0x00,0x01,0x01,0x41,0x81,0x7F,0x01,0x01,0x05,0x03,0x01,0x00,0x00,},//序 {0x80,0x40,0x20,0xF8,0x07,0x10,0x10,0x10,0xF1,0x96,0x90,0x90,0xD0,0x98,0x10,0x00, 0x00,0x00,0x00,0xFF,0x00,0x80,0x40,0x30,0x0F,0x40,0x80,0x40,0x3F,0x00,0x00,0x00,},//仿 {0x00,0x04,0x04,0xF4,0x54,0x54,0x54,0x5F,0x54,0x54,0x54,0xFC,0x16,0x04,0x00,0x00, 0x10,0x10,0x90,0x5F,0x35,0x15,0x15,0x15,0x15,0x15,0x35,0x5F,0xD0,0x18,0x10,0x00,},//真 {0x20,0x22,0xEC,0x00,0x20,0x22,0xAA,0xAA,0xAA,0xBF,0xAA,0xAA,0xEB,0xA2,0x20,0x00, 0x00,0x00,0x7F,0x20,0x10,0x00,0xFF,0x0A,0x0A,0x0A,0x4A,0x8A,0x7F,0x00,0x00,0x00,},//请 {0x00,0x62,0x52,0x4A,0xC6,0x42,0x52,0x63,0xC2,0x00,0xF8,0x00,0x00,0xFF,0x00,0x00, 0x40,0x42,0x42,0x42,0x7F,0x22,0x23,0x22,0x20,0x00,0x0F,0x40,0x80,0x7F,0x00,0x00,},//到 {0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,0x48,0x48,0x48,0x48,0xFC,0x08,0x00,0x00,0x00, 0x00,0x07,0x02,0x02,0x02,0x02,0x3F,0x42,0x42,0x42,0x42,0x47,0x40,0x70,0x00,0x00,},//电 {0x80,0x80,0x82,0x82,0x82,0x82,0x82,0xE2,0xA2,0x92,0x8A,0x86,0x80,0xC0,0x80,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,},//子 {0x00,0x80,0xC0,0xBC,0x84,0x84,0x84,0xF4,0x82,0x82,0x83,0x82,0x80,0xC0,0x80,0x00, 0x00,0x40,0x20,0x10,0x0C,0x40,0x80,0x7F,0x00,0x00,0x04,0x08,0x30,0x60,0x00,0x00,},//乐 {0x00,0x00,0xFE,0x0A,0x2A,0x2A,0xAA,0x6A,0x2A,0x2A,0xAA,0x2A,0x2F,0x22,0x00,0x00, 0x40,0x30,0x4F,0x48,0x48,0x49,0x49,0x49,0x7F,0x49,0x49,0x49,0x4C,0x68,0x40,0x00,},//屋 }; void delay(u16 ms) { u8 s=0; while(--ms) { for(s=0;s<88;s++); } } u8 K=0; void LedScan(u8 x) { static u8 i = 0; for(i=0;i<16;i++) //上半屏显示 {a=0; b=1; P2 = (P2 & 0xf0) | i; P0=led[x]; delay(2); } for(i=0;i<16;i++) //下半屏显示 { a=1; b=0; P2 = (P2 & 0xf0) | i; P0=led[x][i+16]; delay(2); } } void main() { a=1; b=1; TMOD = 0x01; TH0 = 0x0D8; TL0 = 0x0F0; EA = 1; ET0 = 1; TR0 = 1; while(1) { LedScan(K); } } void Timer0Interrupt(void) interrupt 1 { static u16 dd=0; TH0 = 0x0D8; TL0 = 0x0F0; dd++; if(dd==50) { dd=0; K++; if(K==15)//显示的字数个数 {K=0;} } }#include #define u8 unsigned char #define u16 unsigned int ***it a=P2^4; //154芯片使能 ***it b=P2^5; u8 code led[][32]={ {0x02,0x02,0xFA,0x4A,0x4A,0x4A,0x4A,0xFE,0x4A,0x4A,0x4A,0x4A,0xFE,0x0B,0x02,0x00, 0x80,0x80,0x87,0x42,0x46,0x2A,0x12,0x2F,0x22,0x42,0x42,0x42,0x87,0x80,0x80,0x00,},// 更 {0x00,0x00,0x20,0x10,0x98,0xA4,0x47,0x24,0xE4,0x14,0x0C,0x04,0x00,0x00,0x00,0x00, 0x00,0x81,0x91,0x89,0x44,0x44,0x4A,0x31,0x11,0x11,0x09,0x05,0x03,0x01,0x00,0x00,},// 多 {0x00,0x00,0xF8,0x49,0x4A,0x4C,0x48,0xF8,0x48,0x4C,0x4A,0x49,0xFC,0x08,0x00,0x00, 0x10,0x10,0x17,0x12,0x12,0x12,0x12,0xFF,0x12,0x12,0x12,0x12,0x13,0x18,0x10,0x00,},//单 {0x00,0x00,0xFE,0x20,0x20,0x20,0x20,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x20,0x00, 0x80,0x40,0x3F,0x01,0x01,0x01,0x01,0x01,0x01,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,},//片 {0x10,0x10,0xD0,0xFF,0x90,0x10,0x00,0xFC,0x04,0x04,0x04,0xFE,0x04,0x00,0x00,0x00, 0x04,0x03,0x00,0xFF,0x80,0x41,0x20,0x1F,0x00,0x00,0x00,0x3F,0x40,0x40,0x70,0x00,},//机 {0x24,0x24,0xA4,0xFE,0xA3,0x22,0x20,0x7E,0x42,0x42,0x42,0x42,0x42,0x7F,0x02,0x00, 0x08,0x06,0x01,0xFF,0x00,0x43,0x41,0x49,0x49,0x49,0x7F,0x49,0x4D,0x69,0x41,0x00,},//程 {0x00,0x00,0xFC,0x04,0x14,0x14,0x14,0x55,0x96,0x54,0x34,0x14,0x16,0x04,0x00,0x00, 0x40,0x30,0x0F,0x00,0x01,0x01,0x41,0x81,0x7F,0x01,0x01,0x05,0x03,0x01,0x00,0x00,},//序 {0x80,0x40,0x20,0xF8,0x07,0x10,0x10,0x10,0xF1,0x96,0x90,0x90,0xD0,0x98,0x10,0x00, 0x00,0x00,0x00,0xFF,0x00,0x80,0x40,0x30,0x0F,0x40,0x80,0x40,0x3F,0x00,0x00,0x00,},//仿 {0x00,0x04,0x04,0xF4,0x54,0x54,0x54,0x5F,0x54,0x54,0x54,0xFC,0x16,0x04,0x00,0x00, 0x10,0x10,0x90,0x5F,0x35,0x15,0x15,0x15,0x15,0x15,0x35,0x5F,0xD0,0x18,0x10,0x00,},//真 {0x20,0x22,0xEC,0x00,0x20,0x22,0xAA,0xAA,0xAA,0xBF,0xAA,0xAA,0xEB,0xA2,0x20,0x00, 0x00,0x00,0x7F,0x20,0x10,0x00,0xFF,0x0A,0x0A,0x0A,0x4A,0x8A,0x7F,0x00,0x00,0x00,},//请 {0x00,0x62,0x52,0x4A,0xC6,0x42,0x52,0x63,0xC2,0x00,0xF8,0x00,0x00,0xFF,0x00,0x00, 0x40,0x42,0x42,0x42,0x7F,0x22,0x23,0x22,0x20,0x00,0x0F,0x40,0x80,0x7F,0x00,0x00,},//到 {0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,0x48,0x48,0x48,0x48,0xFC,0x08,0x00,0x00,0x00, 0x00,0x07,0x02,0x02,0x02,0x02,0x3F,0x42,0x42,0x42,0x42,0x47,0x40,0x70,0x00,0x00,},//电 {0x80,0x80,0x82,0x82,0x82,0x82,0x82,0xE2,0xA2,0x92,0x8A,0x86,0x80,0xC0,0x80,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,},//子 {0x00,0x80,0xC0,0xBC,0x84,0x84,0x84,0xF4,0x82,0x82,0x83,0x82,0x80,0xC0,0x80,0x00, 0x00,0x40,0x20,0x10,0x0C,0x40,0x80,0x7F,0x00,0x00,0x04,0x08,0x30,0x60,0x00,0x00,},//乐 {0x00,0x00,0xFE,0x0A,0x2A,0x2A,0xAA,0x6A,0x2A,0x2A,0xAA,0x2A,0x2F,0x22,0x00,0x00, 0x40,0x30,0x4F,0x48,0x48,0x49,0x49,0x49,0x7F,0x49,0x49,0x49,0x4C,0x68,0x40,0x00,},//屋 }; void delay(u16 ms) { u8 s=0; while(--ms) { for(s=0;s<88;s++); } } u8 K=0; void LedScan(u8 x) { static u8 i = 0; for(i=0;i<16;i++) //上半屏显示 {a=0; b=1; P2 = (P2 & 0xf0) | i; P0=led[x]; delay(2); } for(i=0;i<16;i++) //下半屏显示 { a=1; b=0; P2 = (P2 & 0xf0) | i; P0=led[x][i+16]; delay(2); } } void main() { a=1; b=1; TMOD = 0x01; TH0 = 0x0D8; TL0 = 0x0F0; EA = 1; ET0 = 1; TR0 = 1; while(1) { LedScan(K); } } void Timer0Interrupt(void) interrupt 1 { static u16 dd=0; TH0 = 0x0D8; TL0 = 0x0F0; dd++; if(dd==50) { dd=0; K++; if(K==15)//显示的字数个数 {K=0;} } }#include #define u8 unsigned char #define u16 unsigned int ***it a=P2^4; //154芯片使能 ***it b=P2^5; u8 code led[][32]={ {0x02,0x02,0xFA,0x4A,0x4A,0x4A,0x4A,0xFE,0x4A,0x4A,0x4A,0x4A,0xFE,0x0B,0x02,0x00, 0x80,0x80,0x87,0x42,0x46,0x2A,0x12,0x2F,0x22,0x42,0x42,0x42,0x87,0x80,0x80,0x00,},// 更 {0x00,0x00,0x20,0x10,0x98,0xA4,0x47,0x24,0xE4,0x14,0x0C,0x04,0x00,0x00,0x00,0x00, 0x00,0x81,0x91,0x89,0x44,0x44,0x4A,0x31,0x11,0x11,0x09,0x05,0x03,0x01,0x00,0x00,},// 多 {0x00,0x00,0xF8,0x49,0x4A,0x4C,0x48,0xF8,0x48,0x4C,0x4A,0x49,0xFC,0x08,0x00,0x00, 0x10,0x10,0x17,0x12,0x12,0x12,0x12,0xFF,0x12,0x12,0x12,0x12,0x13,0x18,0x10,0x00,},//单 {0x00,0x00,0xFE,0x20,0x20,0x20,0x20,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x20,0x00, 0x80,0x40,0x3F,0x01,0x01,0x01,0x01,0x01,0x01,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,},//片 {0x10,0x10,0xD0,0xFF,0x90,0x10,0x00,0xFC,0x04,0x04,0x04,0xFE,0x04,0x00,0x00,0x00, 0x04,0x03,0x00,0xFF,0x80,0x41,0x20,0x1F,0x00,0x00,0x00,0x3F,0x40,0x40,0x70,0x00,},//机 {0x24,0x24,0xA4,0xFE,0xA3,0x22,0x20,0x7E,0x42,0x42,0x42,0x42,0x42,0x7F,0x02,0x00, 0x08,0x06,0x01,0xFF,0x00,0x43,0x41,0x49,0x49,0x49,0x7F,0x49,0x4D,0x69,0x41,0x00,},//程 {0x00,0x00,0xFC,0x04,0x14,0x14,0x14,0x55,0x96,0x54,0x34,0x14,0x16,0x04,0x00,0x00, 0x40,0x30,0x0F,0x00,0x01,0x01,0x41,0x81,0x7F,0x01,0x01,0x05,0x03,0x01,0x00,0x00,},//序 {0x80,0x40,0x20,0xF8,0x07,0x10,0x10,0x10,0xF1,0x96,0x90,0x90,0xD0,0x98,0x10,0x00, 0x00,0x00,0x00,0xFF,0x00,0x80,0x40,0x30,0x0F,0x40,0x80,0x40,0x3F,0x00,0x00,0x00,},//仿 {0x00,0x04,0x04,0xF4,0x54,0x54,0x54,0x5F,0x54,0x54,0x54,0xFC,0x16,0x04,0x00,0x00, 0x10,0x10,0x90,0x5F,0x35,0x15,0x15,0x15,0x15,0x15,0x35,0x5F,0xD0,0x18,0x10,0x00,},//真 {0x20,0x22,0xEC,0x00,0x20,0x22,0xAA,0xAA,0xAA,0xBF,0xAA,0xAA,0xEB,0xA2,0x20,0x00, 0x00,0x00,0x7F,0x20,0x10,0x00,0xFF,0x0A,0x0A,0x0A,0x4A,0x8A,0x7F,0x00,0x00,0x00,},//请 {0x00,0x62,0x52,0x4A,0xC6,0x42,0x52,0x63,0xC2,0x00,0xF8,0x00,0x00,0xFF,0x00,0x00, 0x40,0x42,0x42,0x42,0x7F,0x22,0x23,0x22,0x20,0x00,0x0F,0x40,0x80,0x7F,0x00,0x00,},//到 {0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,0x48,0x48,0x48,0x48,0xFC,0x08,0x00,0x00,0x00, 0x00,0x07,0x02,0x02,0x02,0x02,0x3F,0x42,0x42,0x42,0x42,0x47,0x40,0x70,0x00,0x00,},//电 {0x80,0x80,0x82,0x82,0x82,0x82,0x82,0xE2,0xA2,0x92,0x8A,0x86,0x80,0xC0,0x80,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,},//子 {0x00,0x80,0xC0,0xBC,0x84,0x84,0x84,0xF4,0x82,0x82,0x83,0x82,0x80,0xC0,0x80,0x00, 0x00,0x40,0x20,0x10,0x0C,0x40,0x80,0x7F,0x00,0x00,0x04,0x08,0x30,0x60,0x00,0x00,},//乐 {0x00,0x00,0xFE,0x0A,0x2A,0x2A,0xAA,0x6A,0x2A,0x2A,0xAA,0x2A,0x2F,0x22,0x00,0x00, 0x40,0x30,0x4F,0x48,0x48,0x49,0x49,0x49,0x7F,0x49,0x49,0x49,0x4C,0x68,0x40,0x00,},//屋 }; void delay(u16 ms) { u8 s=0; while(--ms) { for(s=0;s<88;s++); } } u8 K=0; void LedScan(u8 x) { static u8 i = 0; for(i=0;i<16;i++) //上半屏显示 {a=0; b=1; P2 = (P2 & 0xf0) | i; P0=led[x]; delay(2); } for(i=0;i<16;i++) //下半屏显示 { a=1; b=0; P2 = (P2 & 0xf0) | i; P0=led[x][i+16]; delay(2); } } void main() { a=1; b=1; TMOD = 0x01; TH0 = 0x0D8; TL0 = 0x0F0; EA = 1; ET0 = 1; TR0 = 1; while(1) { LedScan(K); } } void Timer0Interrupt(void) interrupt 1 { static u16 dd=0; TH0 = 0x0D8; TL0 = 0x0F0; dd++; if(dd==50) { dd=0; K++; if(K==15)//显示的字数个数 {K=0;} } } |
|
|
|
|
|
7 浏览 0 评论
26 浏览 1 评论
基于瑞萨FPB-RA4E2智能床头灯项目——1编译环境搭建与点亮驱动ws2812全彩LED
13 浏览 0 评论
嵌入式学习-飞凌嵌入式ElfBoard ELF 1板卡-LCD显示图片编程示例之介绍mmap
644 浏览 0 评论
《DNESP32S3使用指南-IDF版_V1.6》第二章 常用的C语言知识点
1000 浏览 0 评论
【youyeetoo X1 windows 开发板体验】少儿AI智能STEAM积木平台
11770 浏览 31 评论
浏览过的版块 |
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-24 11:17 , Processed in 0.618482 second(s), Total 72, Slave 52 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号