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

📄 avalon_tft_lcd.htm

📁 Avalon_TFT_LCD是Nios系统液晶显示控制方案,供大家参考.
💻 HTM
📖 第 1 页 / 共 5 页
字号:
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如图</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">2</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">所示,</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">LCD Controller</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">主要由</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">Avalon </FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">总线接口、寄存器组、控制模块、</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">DMA</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">FIFO</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以及时序生成模块组成。每个寄存器独立编址,处理器可以通过总线读写存储器的方式来访问。处理器通过</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">Avalon</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">总线接读写寄存器,从而完成对</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">LCD</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">控制器工作状态的设定与控制。</SPAN><SPAN 
      lang=EN-US 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><o:p></o:p></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">控制器启动后,</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">DMA Master</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">通过</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">avalon</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">总线读取</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">SDRAM</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中的数据,然后存入</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">FIFO</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中,时序生成模块按照</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">TFT</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">时序要求从</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">FIFO</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中读取数据,然后送出去显示。整个数据读取过程不需要处理器干涉,实际上是一个</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">DMA</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">过程。</SPAN><SPAN 
      lang=EN-US 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><o:p></o:p></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">考虑到</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">DMA</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">读取的速度与</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">TFT</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">时序发生器输出的速度不一致(前者大于后者),所以在</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">DMA</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">与</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">TFT</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">时序发生器之间加入了</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">FIFO</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">用来缓冲数据。</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">DMA</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">有控制模块控制其工作。控制模块不断检测</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">FIFO</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">状态,当</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">FIFO</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">快满时,暂停</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">DMA</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,当</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">FIFO</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">快空时,重新启动</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">DMA</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,如此循环,可保证</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">FIFO</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">不溢出,保证显示画面连续稳定。</SPAN><SPAN 
      lang=EN-US 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><o:p></o:p></SPAN></P>
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">三、设计细节</SPAN><SPAN 
      lang=EN-US 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><o:p></o:p></SPAN></P>
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">1</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">Avalon Bus Slaver</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">从总线接口</SPAN><SPAN 
      lang=EN-US 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><o:p></o:p></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">Avalon</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">从总线接口负责处理器与</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">LCD</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">控制器的接口控制,</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">LCD</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">控制器在整个系统中作为从设备,通过该接口,接受</SPAN><SPAN 
      lang=EN-US style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
      face="Times New Roman">CPU</FONT></SPAN><SPAN 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的控制。根据设计需要,该接口所需要的各信号为:</SPAN><SPAN 
      lang=EN-US 
      style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><o:p></o:p></SPAN></P>
      <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" 
      align=left>
      <TABLE class=MsoTableGrid 
      style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" 
      cellSpacing=0 cellPadding=0 border=1>
        <TBODY>
        <TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes">
          <TD 
          style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" 
          vAlign=top width=568 colSpan=2>
            <P class=MsoNormal 
            style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><SPAN lang=EN-US 
            style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
            face="Times New Roman">input:<o:p></o:p></FONT></SPAN></P></TD></TR>
        <TR style="mso-yfti-irow: 1">
          <TD 
          style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 213.05pt; BORDER-TOP-COLOR: #d4d0c8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" 
          vAlign=top width=284>
            <P class=MsoNormal 
            style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><SPAN lang=EN-US 
            style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 
            face="Times New Roman"><SPAN 
            style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            </SPAN>chipselect<o:p></o:p></FONT></SPAN></P></TD>
          <TD 
          style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #d4d0c8; PADDING-BOTTOM: 0cm; WIDTH: 213.05pt; BORDER-TOP-COLOR: #d4d0c8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" 
          vAlign=top width=284>
            <P class=MsoNormal 
            style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><SPAN 
            style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">片选,高电平有效</SPAN><SPAN 
            lang=EN-US 
            style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><o:p></o:p></SPAN></P></TD></TR>
        <TR style="mso-yfti-irow: 2">
          <TD 
          style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 213.05pt; BORDER-TOP-COLOR: #d4d0c8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" 
          vAlign=top width=284>
            <P class=MsoNormal 
            style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><SPAN lang=EN-US 
            style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%"><FONT 

⌨️ 快捷键说明

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