⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bbs_content.jsp

📁 用avr控制的ks0108型128×64显示程序
💻 JSP
📖 第 1 页 / 共 5 页
字号:
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>									   
						   
						   <img src=./images/pixel.gif width='2' height='1'>			
						      	
												   
						   <span class=f01>编辑</span>
						   <img src=./images/pixel.gif width='7' height='1'>
						   <span class=f01>删除</span>
						   <img src=./images/pixel.gif width='7' height='1'>
						   
						   <img src=./images/pixel.gif width='7' height='1'>				   				   
						   </td>
						</tr>
					</table>
				</td>	
			</tr>	
		</table>
		
		<table style='TABLE-LAYOUT: fixed; WORD-BREAK: break-all' width='100%' border='0' cellpadding='6' cellspacing='0' >
			<tr>
				<td width='19%' bgcolor=#D1D9E2 align='left' class='f03' rowspan=2 style='border-top:solid #ffffff .5pt;border-left:solid #bbbbbb .5pt;border-bottom:solid #ffffff .5pt;border-right:solid #ffffff .5pt' valign=top>
					【6楼】 <font color=#000000>xiaobendan  </font><br>
					
					积分:<font color=#000000>670</font><br>
					派别:<font color=#000000></font><br>
					等级:<font color=#000000>------</font><br>
					来自:<font color=#000000></font><br>
				</td>	
				<td width='81%' bgcolor=#D1D9E2 class='f03' valign='top' style='border-top:solid #ffffff .5pt;border-left:none;border-bottom:none;border-right:solid #bbbbbb .5pt'>		
			       <font color=#000000>还是没有解决啊,又做了很多实验了。
<br>开机复位,之后(紧接init_devices()函数之后)立即进行写入操作,显示很好。把显示前的设置Z地址和开显示的命令去掉任何一个都不显示。我在用镊子碰了RST脚后,立即就没有显示了。每次写入显示数据之前都有一个设置Z地址和开显示的命令还是无法自动恢复显示。将CPU手动复位后则可以显示。我在2MS的定时中断里加了以下程序:
<br>int&nbsp;lcd_count;
<br>
<br>//
<br>if(lcd_count&lt;1000)lcd_count++;else&nbsp;lcd_count&nbsp;=&nbsp;0;
<br>if(lcd_count>800){LCD_RESET;D_E&nbsp;=&nbsp;0;}else{if(lcd_count>200)D_E&nbsp;=&nbsp;1;LCD_START;}
<br>//
<br>以上程序当D_E&nbsp;=&nbsp;1时显示命令被执行。如此复位时间有400MS,复位后有400MS的等待时间,之后才开始写入设置Z地址和开显示的命令和显示数据,程序的结果是开机显示很好,在lcd_count>800之后就没有显示了。
<br>各位前辈帮帮忙啊!</font>
				</td>
			</tr>	
			<tr>
			   <td bgcolor=#D1D9E2 valign=bottom class='f03' style='border-top:none;border-left:none;border-bottom:solid #ffffff .5pt;border-right:solid #bbbbbb .5pt'>
			   	   
			   </td>
			</tr>
			<tr>
				<td width='19%' bgcolor=#D1D9E2 align='left' class='f03' style='border-top:none;border-left:solid #bbbbbb .5pt;border-bottom:solid #bbbbbb .5pt;border-right:solid #ffffff .5pt'>
		         <img src=./images/pixel.gif width='7' height='1'>2007-11-07,12:28:14
		        </td>
				<td width='81%' bgcolor=#D1D9E2 class='f03' valign='top' style='border-top:none;border-left:none;border-bottom:solid #bbbbbb .5pt;border-right:solid #bbbbbb .5pt''>
					<table width='100%'>
						<tr>
						   <td align='left'>
						   <img src=./images/pixel.gif width='7' height='1'>
						   <a href='user_information.jsp?user_name=xiaobendan'  target=_blank class='tt4' target=_blank>资料</a>
						   <img src=./images/pixel.gif width='7' height='1'>
						   <span class=f01>邮件</span>
						   <img src=./images/pixel.gif width='7' height='1'>
						    
						   </td>
						   
						   <td align='right'>
				   
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>									   
						   
						   <img src=./images/pixel.gif width='2' height='1'>			
						      	
												   
						   <span class=f01>编辑</span>
						   <img src=./images/pixel.gif width='7' height='1'>
						   <span class=f01>删除</span>
						   <img src=./images/pixel.gif width='7' height='1'>
						   
						   <img src=./images/pixel.gif width='7' height='1'>				   				   
						   </td>
						</tr>
					</table>
				</td>	
			</tr>	
		</table>
		
		<table style='TABLE-LAYOUT: fixed; WORD-BREAK: break-all' width='100%' border='0' cellpadding='6' cellspacing='0' >
			<tr>
				<td width='19%' bgcolor=#e8e8e8 align='left' class='f03' rowspan=2 style='border-top:none;border-left:solid #bbbbbb .5pt;border-bottom:solid #bbbbbb .5pt;border-right:solid #bbbbbb .5pt' valign=top>
					【7楼】 <font color=#000000>1a2b3c  </font><br>
					
					积分:<font color=#000000>256</font><br>
					派别:<font color=#000000></font><br>
					等级:<font color=#000000>------</font><br>
					来自:<font color=#000000></font><br>
				</td>	
				<td width='81%' bgcolor=#e8e8e8 class='f03' valign='top' style='border-top:none;border-left:none;border-bottom:none;border-right:solid #bbbbbb .5pt'>		
			       <font color=#000000>还是先把硬件本身抗干扰做好再说吧,怎么老是遇到这么多自己复位啊什么的呢
<br>我使用时从来都是把RST直接接到电源的&nbsp;,从来没出现问题,觉得关键还是把电路本身弄好最重要/</font>
				</td>
			</tr>	
			<tr>
			   <td bgcolor=#e8e8e8 valign=bottom class='f03' style='border-top:none;border-left:none;border-bottom:solid #bbbbbb .5pt;border-right:solid #bbbbbb .5pt'>
			   	   
			   </td>
			</tr>
			<tr>
				<td width='19%' bgcolor=#e8e8e8 align='left' class='f03' style='border-top:none;border-left:solid #bbbbbb .5pt;border-bottom:solid #bbbbbb .5pt;border-right:solid #bbbbbb .5pt'>
		         <img src=./images/pixel.gif width='7' height='1'>2007-11-07,12:47:02
		        </td>
				<td width='81%' bgcolor=#e8e8e8 class='f03' valign='top' style='border-top:none;border-left:none;border-bottom:solid #bbbbbb .5pt;border-right:solid #bbbbbb .5pt''>
					<table width='100%'>
						<tr>
						   <td align='left'>
						   <img src=./images/pixel.gif width='7' height='1'>
						   <a href='user_information.jsp?user_name=1a2b3c'  target=_blank class='tt4' target=_blank>资料</a>
						   <img src=./images/pixel.gif width='7' height='1'>
						   <a href='mailto:gangzi555@sina.com' class=tt4>邮件</a>
						   <img src=./images/pixel.gif width='7' height='1'>
						    
						   </td>
						   
						   <td align='right'>
				   
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>									   
						   
						   <img src=./images/pixel.gif width='2' height='1'>			
						      	
												   
						   <span class=f01>编辑</span>
						   <img src=./images/pixel.gif width='7' height='1'>
						   <span class=f01>删除</span>
						   <img src=./images/pixel.gif width='7' height='1'>
						   
						   <img src=./images/pixel.gif width='7' height='1'>				   				   
						   </td>
						</tr>
					</table>
				</td>	
			</tr>	
		</table>
		
		<table style='TABLE-LAYOUT: fixed; WORD-BREAK: break-all' width='100%' border='0' cellpadding='6' cellspacing='0' >
			<tr>
				<td width='19%' bgcolor=#D1D9E2 align='left' class='f03' rowspan=2 style='border-top:solid #ffffff .5pt;border-left:solid #bbbbbb .5pt;border-bottom:solid #ffffff .5pt;border-right:solid #ffffff .5pt' valign=top>
					【8楼】 <font color=#000000>cocalli  </font><br>
					
					积分:<font color=#000000>1164</font><br>
					派别:<font color=#000000></font><br>
					等级:<font color=#000000>------</font><br>
					来自:<font color=#000000></font><br>
				</td>	
				<td width='81%' bgcolor=#D1D9E2 class='f03' valign='top' style='border-top:solid #ffffff .5pt;border-left:none;border-bottom:none;border-right:solid #bbbbbb .5pt'>		
			       <font color=#000000>不是干扰的问题,是你时序的问题,
<br>
<br>复位后和相应的指令操作是要延迟,查看你的程序把,不是LCD的问题</font>
				</td>
			</tr>	
			<tr>
			   <td bgcolor=#D1D9E2 valign=bottom class='f03' style='border-top:none;border-left:none;border-bottom:solid #ffffff .5pt;border-right:solid #bbbbbb .5pt'>
			   	  __________________________<br>人生无需惊天动地,快乐就好;
<br>友谊无需甜言蜜语,想着就好;
<br>金钱无需车载斗量,够用就好;
<br>朋友无需遍及天下,有你就好。
			   </td>
			</tr>
			<tr>
				<td width='19%' bgcolor=#D1D9E2 align='left' class='f03' style='border-top:none;border-left:solid #bbbbbb .5pt;border-bottom:solid #bbbbbb .5pt;border-right:solid #ffffff .5pt'>
		         <img src=./images/pixel.gif width='7' height='1'>2007-11-07,12:53:33
		        </td>
				<td width='81%' bgcolor=#D1D9E2 class='f03' valign='top' style='border-top:none;border-left:none;border-bottom:solid #bbbbbb .5pt;border-right:solid #bbbbbb .5pt''>
					<table width='100%'>
						<tr>
						   <td align='left'>
						   <img src=./images/pixel.gif width='7' height='1'>
						   <a href='user_information.jsp?user_name=cocalli'  target=_blank class='tt4' target=_blank>资料</a>
						   <img src=./images/pixel.gif width='7' height='1'>
						   <a href='mailto:cocalli@126.com' class=tt4>邮件</a>
						   <img src=./images/pixel.gif width='7' height='1'>
						    
						   </td>
						   
						   <td align='right'>
				   
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   
						   <img src=./images/pixel.gif width='2' height='1'>						   
						   						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>
						   
						   <img src=./images/pixel.gif width='2' height='1'>									   
						   
						   <img src=./images/pixel.gif width='2' height='1'>			
						      	
												   
						   <span class=f01>编辑</span>
						   <img src=./images/pixel.gif width='7' height='1'>
						   <span class=f01>删除</span>
						   <img src=./images/pixel.gif width='7' height='1'>
						   
						   <img src=./images/pixel.gif width='7' height='1'>				   				   
						   </td>
						</tr>
					</table>
				</td>	
			</tr>	
		</table>
		
		<table style='TABLE-LAYOUT: fixed; WORD-BREAK: break-all' width='100%' border='0' cellpadding='6' cellspacing='0' >
			<tr>
				<td width='19%' bgcolor=#e8e8e8 align='left' class='f03' rowspan=2 style='border-top:none;border-left:solid #bbbbbb .5pt;border-bottom:solid #bbbbbb .5pt;border-right:solid #bbbbbb .5pt' valign=top>
					【9楼】 <font color=#000000>xiaobendan  </font><br>
					
					积分:<font color=#000000>670</font><br>
					派别:<font color=#000000></font><br>
					等级:<font color=#000000>------</font><br>
					来自:<font color=#000000></font><br>
				</td>	
				<td width='81%' bgcolor=#e8e8e8 class='f03' valign='top' style='border-top:none;border-left:none;border-bottom:none;border-right:solid #bbbbbb .5pt'>		
			       <font color=#000000>7楼:硬件上来说的话我的板子没有问题,即使不显示了,程序还是正常运行所有操作虽然看不到显示但是根据输出连接的接触器都是正常的。从示波器上看来对LCD的写入操作没有停止。LCD模块是买来的,不是我自己做的,没有办法修改。
<br>8楼:就是因为干扰会造成不显示,具体是LCD模块复位了还是别的问题,我就不知道了,我用手拿着镊子碰LCD的RST脚就会不显示,其他的脚没有问题。我现在的操作时序是这样的就是我在6楼写的程序控制的,拉低LCD的RST脚后400MS(复位),之后再拉高,退出复位操作,高电平维持400MS后,才进行写入指令操作,如此还是不能显示,难道是我操作的太慢了的问题?</font>
				</td>
			</tr>	
			<tr>
			   <td bgcolor=#e8e8e8 valign=bottom class='f03' style='border-top:none;border-left:none;border-bottom:solid #bbbbbb .5pt;border-right:solid #bbbbbb .5pt'>
			   	   
			   </td>
			</tr>
			<tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -