搜索
bottom↓
回复: 3

为什么第一帧扫描玩以后,以后的帧就不从头开始了

[复制链接]

出0入0汤圆

发表于 2010-8-5 16:18:38 | 显示全部楼层 |阅读模式
请问一下,为什么第一帧扫描玩以后,以后的帧就不从头开始了,谢谢?

阿莫论坛20周年了!感谢大家的支持与爱护!!

知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)

出0入0汤圆

 楼主| 发表于 2010-8-5 16:20:55 | 显示全部楼层
LIBRARY ieee;
USE ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity sram is
     port(CLK   :in  std_logic;
          RST   :in  std_logic;
          HS    :OUT  std_logic;
          VS    :OUT  std_logic;
          STVL  :buffer std_logic;
          CKV   :out std_logic;
          OEV   :out std_logic;
          VCOM  :buffer std_logic;
          OEH   :out std_logic;
          STHL  :out std_logic;
          CPH1  :buffer  std_logic;
        CPH2  :buffer  std_logic;
        CPH3 :buffer  std_logic;
        model:out std_logic
          );
          end entity;
architecture dd of sram is
          signal counter,column,senddata:std_logic_vector(11 downto 0) ;
                 begin   
                    
                   process(CLK)
                   begin
   if CLK'event and CLK='1' AND RST='1' then
      counter<=counter+1;
      if counter>=0 and counter<20 then
       OEV<='0';
       STHL<='0';
       OEH<='1';
       STVL<='0';
  elsif counter>=1500 then
       counter<="000000000000";
       end if;
   if rst='0' then
       OEV<='0';
       STHL<='0';
       OEH<='1';
       STVL<='0';
       VCOM<='0';
       counter<="000000000000";  
       end if;      
   if counter=50 then
    column<=column+1;
        end if;
           if column>234 then  
          column<=(others=>'0');
        end if;
  if  counter=235 THEN
           VCOM<=NOT VCOM;
         
            end if;



  if counter=133 and   (column>0 and column<=234) then
            VS<='1';
     elsif counter=133 and column=0 then
            VS<='0';
            end if;
if counter>=423 and counter<=1424 then
            HS<='1';
            else
           HS<='0';
            end if;           
if counter>=0 and counter<50 then
            OEV<='0';
            elsif counter>=50 and counter<185 then
            OEV<='1';
            elsif counter>=185 and counter<216 then
            OEV<='0';
            OEH<='0';
            elsif counter>=216 or counter<50 then
             OEV<='0';
             OEH<='1';
            end if;
             if counter>=423 and counter<429 then
                      STHL<='1';
              elsif counter>429 or counter<423 then
                      STHL<='0';
               end if;
              if(counter>=133 and counter<1480)and column=1 then
                STVL<='1';
                else
                   STVL<='0';
                 end if;
                 if counter>=144 and counter<249  then
                 CKV<='1';
                 elsif counter>=249 or counter<144 then
                  CKV<='0';
                  end if;
                  if (counter>=425 and counter<1425)then
                     CPH1<=NOT CPH1;
                   end if;
if(counter>=0 and counter<=1500)then
                       CPH2<='0';
                       CPH3<='0';
                       model<='1';
                       end if;
               
                end if;
                 end process;         
                 end dd;

出0入0汤圆

 楼主| 发表于 2010-8-5 16:23:53 | 显示全部楼层
刚上电,有显示,但过了一会之后,就没了。为什么?

出0入0汤圆

发表于 2010-8-14 14:18:12 | 显示全部楼层
朋友你也做模拟屏吗?请加我QQ
QQ:147479023
e妹儿 seedfpga@163.com


刷屏也重复不断的刷的
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-7-24 17:30

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表