共2条
1/1 1 跳转至页
lcd 询问lcd有关的问题,多谢
问
小弟最近在做毕设,其中要用到lcd显示。
我用的LCD芯片是SED1520的,现在正急于寻找一些初始化的程序(用汇编写的),希望诸位大虾高手给指一条明路。多谢多谢 答 1: 我有C写的,我看看 答 2: //LCM-12864汉字液晶显示驱动程序
sbit p_csa=P2^6;
sbit p_csb=P2^7;
sbit p_gnda=P2^5;
sbit p_gndb=P2^4;
sbit p_di=P2^3;
sbit p_rw=P2^2;
sbit p_e=P2^1;
/*忙判别*/
void lcd_busy(void) {
p_di=0;p_rw=1;P0=0xff;
while (1) {
p_e=1;
if (P0<0x80) break;
p_e=0;
}
p_e=0;
}
/*设置xy*/
void set_xy(unsigned char x,unsigned char y) {
if (x>=64) {p_csa=0;p_csb=1;} else {p_csb=0;p_csa=1;}
lcd_busy();
p_di=p_rw=0;P0=0x40|x;p_e=1;p_e=0;
lcd_busy();
p_di=p_rw=0;P0=0xb8|y;p_e=1;p_e=0;
P0=0xff;
}
void lw(unsigned char x,unsigned char y,unsigned char dd) {
set_xy(x,y);
lcd_busy();p_di=1;p_rw=0;P0=dd;p_e=1;p_e=0;
P0=0xff;
}
/*显示初始化*/
#pragma disable
void lcd_init(void) {
unsigned char x,y;
p_gnda=p_gndb=0;
/*开显示*/
p_e=p_di=p_rw=0;
p_csa=p_csb=0;
p_csa=1;P0=0x3f;p_e=1;p_e=0;p_csa=0;
p_csb=1;P0=0x3f;p_e=1;p_e=0;p_csb=0;
/*0行开始显示*/
p_csa=1;lcd_busy();p_di=p_rw=0;P0=0xc0;p_e=1;p_e=0;p_csa=0;
p_csb=1;lcd_busy();p_di=p_rw=0;P0=0xc0;p_e=1;p_e=0;p_csb=0;
for (y=0;y<8;y++) {
for (x=0;x<128;x++) lw(x,y,0);
}
}
unsigned char code asc[]={
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x38,0xfc,0xfc,0x38,0x0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0x0,0x7,0xf,0x8,0x8,0x0,
0x0,0x0,0x0,0xbc,0xbc,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xf,0x0,0x0,0x0,
0x0,0x4,0x4,0xbc,0xf8,0x40,0x40,0x0,0x0,0x8,0x8,0xf,0x7,0x0,0x0,0x0,
0x8,0xc,0x4,0xc,0x8,0xc,0x4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x80,0xc0,0x60,0x30,0x60,0xc0,0x80,0x0,0x7,0x7,0x4,0x4,0x4,0x7,0x7,0x0
};
unsigned char code hz[]={
/*解: 0*/
0x20,0x10,0xec,0x27,0xf4,0x2c,0xe4,0x40,
0x22,0x9e,0x2,0xd2,0x22,0x1f,0x2,0x0,
0x80,0x40,0x3f,0x9,0x3f,0x89,0xff,0x8,
0xa,0x9,0x9,0xff,0x9,0x9,0x8,0x0
};
//显示汉字,fb==1:反白显示
void dh(unsigned char x,unsigned char y,unsigned char n,unsigned char fb) {
unsigned char i,dd;
for (i=0;i<16;i++) {
dd=hz[i+n*32];
if (fb) if (n!=kongbai) dd=255-dd;
lw(x*8+i,y,dd);
dd=hz[i+n*32+16];
if (fb) if (n!=kongbai) dd=255-dd;
lw(x*8+i,y+1,dd);
}
}
//显示字符,fb==1:反白显示
void da(unsigned char x,unsigned char y,unsigned char n,unsigned char fb) {
unsigned char i,dd;
n-=32;
if (n>128) n=0;
if (fb) dd=255; else dd=0;
lw(x*8,y,dd);
lw(x*8,y+1,dd);
for (i=0;i<7;i++) {
dd=asc[i+n*16];
if (fb) dd=255-dd;
lw(x*8+i+1,y,dd);
dd=asc[i+n*16+8];
if (fb) dd=255-dd;
lw(x*8+i+1,y+1,dd);
}
}
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void) 答 3: 你留个E-MAIL:我发给你(我只有汇编的) 答 4: 引用: 答 5: 张工:
您请到www.lcdinline.com自己下载吧. 答 6: 有没四位或五位段码的3V液晶.模块或单液晶屏都行.
mail:wlq_9yahoo.com 答 7: 我有8段12位的lcd显示3v供电 答 8: 最近可好!!
我用的LCD芯片是SED1520的,现在正急于寻找一些初始化的程序(用汇编写的),希望诸位大虾高手给指一条明路。多谢多谢 答 1: 我有C写的,我看看 答 2: //LCM-12864汉字液晶显示驱动程序
sbit p_csa=P2^6;
sbit p_csb=P2^7;
sbit p_gnda=P2^5;
sbit p_gndb=P2^4;
sbit p_di=P2^3;
sbit p_rw=P2^2;
sbit p_e=P2^1;
/*忙判别*/
void lcd_busy(void) {
p_di=0;p_rw=1;P0=0xff;
while (1) {
p_e=1;
if (P0<0x80) break;
p_e=0;
}
p_e=0;
}
/*设置xy*/
void set_xy(unsigned char x,unsigned char y) {
if (x>=64) {p_csa=0;p_csb=1;} else {p_csb=0;p_csa=1;}
lcd_busy();
p_di=p_rw=0;P0=0x40|x;p_e=1;p_e=0;
lcd_busy();
p_di=p_rw=0;P0=0xb8|y;p_e=1;p_e=0;
P0=0xff;
}
void lw(unsigned char x,unsigned char y,unsigned char dd) {
set_xy(x,y);
lcd_busy();p_di=1;p_rw=0;P0=dd;p_e=1;p_e=0;
P0=0xff;
}
/*显示初始化*/
#pragma disable
void lcd_init(void) {
unsigned char x,y;
p_gnda=p_gndb=0;
/*开显示*/
p_e=p_di=p_rw=0;
p_csa=p_csb=0;
p_csa=1;P0=0x3f;p_e=1;p_e=0;p_csa=0;
p_csb=1;P0=0x3f;p_e=1;p_e=0;p_csb=0;
/*0行开始显示*/
p_csa=1;lcd_busy();p_di=p_rw=0;P0=0xc0;p_e=1;p_e=0;p_csa=0;
p_csb=1;lcd_busy();p_di=p_rw=0;P0=0xc0;p_e=1;p_e=0;p_csb=0;
for (y=0;y<8;y++) {
for (x=0;x<128;x++) lw(x,y,0);
}
}
unsigned char code asc[]={
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x38,0xfc,0xfc,0x38,0x0,0x0,0x0,0x0,0x0,0xd,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x0,
0x0,0x0,0x0,0xbc,0xbc,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xf,0x0,0x0,0x0,
0x0,0x4,0x4,0xbc,0xf8,0x40,0x40,0x0,0x0,0x8,0x8,0xf,0x7,0x0,0x0,0x0,
0x8,0xc,0x4,0xc,0x8,0xc,0x4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x80,0xc0,0x60,0x30,0x60,0xc0,0x80,0x0,0x7,0x7,0x4,0x4,0x4,0x7,0x7,0x0
};
unsigned char code hz[]={
/*解: 0*/
0x20,0x10,0xec,0x27,0xf4,0x2c,0xe4,0x40,
0x22,0x9e,0x2,0xd2,0x22,0x1f,0x2,0x0,
0x80,0x40,0x3f,0x9,0x3f,0x89,0xff,0x8,
0xa,0x9,0x9,0xff,0x9,0x9,0x8,0x0
};
//显示汉字,fb==1:反白显示
void dh(unsigned char x,unsigned char y,unsigned char n,unsigned char fb) {
unsigned char i,dd;
for (i=0;i<16;i++) {
dd=hz[i+n*32];
if (fb) if (n!=kongbai) dd=255-dd;
lw(x*8+i,y,dd);
dd=hz[i+n*32+16];
if (fb) if (n!=kongbai) dd=255-dd;
lw(x*8+i,y+1,dd);
}
}
//显示字符,fb==1:反白显示
void da(unsigned char x,unsigned char y,unsigned char n,unsigned char fb) {
unsigned char i,dd;
n-=32;
if (n>128) n=0;
if (fb) dd=255; else dd=0;
lw(x*8,y,dd);
lw(x*8,y+1,dd);
for (i=0;i<7;i++) {
dd=asc[i+n*16];
if (fb) dd=255-dd;
lw(x*8+i+1,y,dd);
dd=asc[i+n*16+8];
if (fb) dd=255-dd;
lw(x*8+i+1,y+1,dd);
}
}
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void) 答 3: 你留个E-MAIL:我发给你(我只有汇编的) 答 4: 引用: 答 5: 张工:
您请到www.lcdinline.com自己下载吧. 答 6: 有没四位或五位段码的3V液晶.模块或单液晶屏都行.
mail:wlq_9yahoo.com 答 7: 我有8段12位的lcd显示3v供电 答 8: 最近可好!!
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
【有奖活动】智能可穿戴设备AR/VR如何引领科技新潮流! | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
【有奖活动】震撼来袭!这场直播将直击工程师的心灵! |
打赏帖 | |
---|---|
如何实现基于NXPiMX.RT1021的BH1730采集被打赏50分 | |
【换取手持数字示波器】AHT10温度检测分享被打赏40分 | |
【换取手持数字示波器】ACM32F070开发板点亮LCD屏和触控按键,串口,ADC被打赏40分 | |
【换取手持数字示波器】ACM32F070LCD屏和触控按键功驱动蜂鸣器分享被打赏40分 | |
【换取手持数字示波器】国民技术PWM功能知识分享被打赏40分 | |
【换取手持数字示波器】放大器运放知识分享被打赏40分 | |
【分享评测,赢取加热台】+开关电源AC输入知识分享被打赏30分 | |
【换取手持数字示波器】N32G430点亮数码管与串口打印、ADC被打赏40分 | |
老胖子聊电路--分析一个反馈电路被打赏50分 | |
【换取手持数字示波器】+点亮WS2812RGB灯被打赏50分 |