Курсовая работа: Автоматический фазометр
Value := Port[Base];
contr:=contr+Value;
get_char := True;
end;
end;
begin
z:=1;
while(z=1) do
begin
clrscr;
contr:=0;
writeln('Progam measure of fase');
writeln;
writeln('Input count measures');
Readln(i);
writeln;
writeln('Input time of measurements');
Readln(l);
Base:=MemW[$40:2]; {COM2}
OpenCom(Base,24,3 + 0 + 0); {4800,8-bit,1 stop-bit,no control error}
send_char(Base , 0); {start}
if(get_char(BASE)=TRUE) then k:=Value; {meassage about working of device}
k:=k and 1;
if(k=0) then
begin
send_char(Base , i); {number of measurements}
send_char(Base , l); {time of measurement}
for k:=1 to i do
begin