微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 硬件工程师文库 > 黑白CMOS图像传感器OV9120的原理及应用

黑白CMOS图像传感器OV9120的原理及应用

时间:04-26 来源:不详 点击:

s(reset_i,n1,clk)

begin

if reset_i=‘0’then scce_p<=‘1’;

else

if(n1=‘1’ or m1=‘1’)then

scce_p<=‘1’;

else scce p<=‘0’;

end if;

end if;

end process reset2;

clk1: process(n1,clk)

variable a: integer range 254 to 0;

begin

if(sio_c_start=‘0’ OR n1=‘1’) then

q<=‘1’;a:=0;

else

if(clk'event and clk=‘1’) then

if(sio_c start=‘1’ and n1=‘0’) then

if a<254 then; a:=a+1;

else a:=1;

end if;

if a<127 then q<=‘0’;

else q<=‘1’; end if;

end if;

end if;

end if;

end process clk1;

lock:process(sio_c_start,q)

variable n: integer range 8 to 0;

begin

if( sio_c_start=‘0’ then load<=‘1’;n:=0;

else

if (q 'event and q=‘0’) then

if n<8 then n?=n+1;

load<=‘0’;

else n:=0;load<=‘1’;

end if;

end if;

end if;

end process lock;

reg1: process(n1,q,load)

variable pp:std_logic_vector(7 downto 0);?

variable b:integer range 7 to 0;

variable c:integer range 13 to 0;

begin

if(n1=‘1’or reset_i=‘0’) then p<=‘1’;c:=0; b:=0;QB<=‘0’;

else

if(q'event and q=‘0’)then

if load=‘1’ then;

c:=c+1?

if c<13 then

if c=1 then

pp:=″11000010″;

elsif c=2 then

pp:=″00001100″;

elsif c=3 then

pp:=″00101001″;

elsif c=4 then

pp?=″11000010″;

elsif c=5 then

pp:=″00001101″;

elsif c=6 then

pp:=″10000000″;

elsif c=7 then

pp:=″11000010″;

elsif c=8 then

pp:=″00010001″;

elsif c=9 then

pp:=″10000000″;

elsif c=10 then

pp:=″11000010″;

elsif c=11 then

pp:=″00010011″;

elsif c=12 then

pp:=″00010111″?

end if;

b:=0;p<=pp(7);

elsif c=13 then

p<=‘0’; QB<=‘1’;

end if;

else

if b<7 then b:=b+1;

pp(7 downto 1):=pp(6 ownto 0);?

p<=pp(7);?

else p<=‘1’;

end if;

end if;

end if;

end if;

end process reg1;

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top