打印

参看一下俺这个**

[复制链接]
4205|7
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
badbird1234|  楼主 | 2009-4-29 12:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
沙发
lsqdesign| | 2009-4-29 12:57 | 只看该作者

试一下调低MCU电压

1/3 bias的屏用1/2推当然鬼影严重,可以试一下调低MCU电压,效果应该能有改善

使用特权

评论回复
板凳
badbird1234|  楼主 | 2009-4-29 13:26 | 只看该作者

谢谢楼上

我回去试试
不过我看别人用同样的方法驱的很好
我在想是不是我程序的问题
P1口的0,1,3,4,做COM口
P5口的0,1,2,3,5,6做SEG口
buffer1
buffer2
buffer3
buffer4分别为COM0,COM1,COM2,COM3口要显示的数据
程序如下希望赐教

void display(void)//display
{

    if(power){




                   P1M=0x04;
                       P1&=0x04;
                     
                     
                    
                    i++;

                     switch (i) {
   
                                              case 1: P5|=0X6F;
                                                     
                                                      P5&=~buffer1; 
                                                     
                                                    
                                                      P1M=0x0c;
                                                          
                                                             P1|=0x08;                          
                                                     break;


                                              case 2: P5|=0X6F;
                                                      P5&=~buffer2; 
                                                    
                                                    
                                                      P1M=0X06;  
                                                          P1|=0x02; 
                                                
                                                                          
                                                     break;
                                              case 3: P5|=0X6F;
                                                      P5&=~buffer3; 
                                                     
                                                    
                                                      P1M=0X05;
                                                       
                                                        P1|=0x01;                       
                                                     break;



                                              case 4: P5|=0X6F;
                                                      P5&=~buffer4; 
                                                    
                                                    
                                                      P1M=0X14;  
                                                      
                                                        P1|=0x10;
                                                     break;


                                              case 5: P5&=0X90;
                                                     P5|=buffer1;
                                                    
                                                    
                                                     P1M=0x0c; 
                                                    
                                                        P1|=0x13;                         
                                                     break; 
                                              case 6:P5&=0X90; 
                                                     P5|=buffer2;
                                                    
                                                        
                                                     P1M=0X06; 
                                                     
                                                        P1|=0x19;
                                                                              
                                                     break; 

                                              case 7:P5&=0X90;
                                                     P5|=buffer3;
                                                    
                                                    
                                                        P1M=0X05;
                                                    
                                                        P1|=0x1a;
                                                                               
                                                     break; 

                                              case 8: P5&=0X90;
                                                     P5|=buffer4;
                                                    
                                                    
                                                     P1M=0X14;
                                                
                                                    P1|=0x0b;
                                                     i=0; 
                                                                               
                                                     break;

                                                                                       
                                      }     
































                                                                                               

                     }

}































使用特权

评论回复
地板
hotyong| | 2009-4-29 16:44 | 只看该作者

程序问题

二楼说的完全不对,,,楼主明明是1/2BIAS的液晶屏,单片IO驱动也是BIAS,,没有任何问题,,
通过调节"占空比".,来调节对比度,,

使用特权

评论回复
5
computer00| | 2009-4-29 16:55 | 只看该作者

参看一下俺这个**

使用特权

评论回复
6
badbird1234|  楼主 | 2009-4-29 18:50 | 只看该作者

谢谢圈圈

惊醒梦中人呀
我想我是没有关断的问题
对比度没调好
谢谢了

使用特权

评论回复
7
ayb_ice| | 2009-4-29 20:55 | 只看该作者

做静态的好做

使用特权

评论回复
8
比尔熊| | 2009-4-29 23:54 | 只看该作者

注意用到单片机驱动最好用1/2BAIS的偏置电压的LCD

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

38

主题

254

帖子

0

粉丝