if (clk'event and clk='1')
then
if( reset3 = '0' and TIME_PULSE3='1')
then
countc <= 0;
testpin2<=TIME_PULSE3;
end if;
reset3<=TIME_PULSE3;
if(countc=N_for_30MS-1)then
countc<=0;
else countc<=countc+1;
if countc<(integer(N_for_30MS/2))
then
O30Ms_1<='0';
else
O30Ms_1<='1';
end if;
end if;
end if;
end process;