home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
vrac
/
vester_e.zip
/
TX.BAS
< prev
next >
Wrap
BASIC Source File
|
1994-08-08
|
6KB
|
107 lines
10 CLEAR,32768!:KEY OFF:CLS
20 X$="system":KEY 10,X$
21 X$="files":KEY 9,X$
30 GOTO 1000
40 DEF SEG=&H4F00
50 BLOAD "tx64gc.asm",&H100
60 PRINT:PRINT:PRINT" SSTV TRANSMISSION"
70 PRINT:PRINT" Copyright 1993 Ben Vester"
80 PRINT:PRINT" This program is for transmitting a 64 shade Color SSTV or FAX-480 PIX."
90 PRINT" You can transmit a file copied to the RAMDISK as D:A.P, or load in a"
100 PRINT" file from any of your storage disks. The picture file must be configured"
110 PRINT" to match the K3BC format (see INFO.TXT). Hit G to start sending and H to"
120 PRINT" halt sending before PIX is finished being sent. LOAD this program and"
130 PRINT" LIST 1000-2000 to see the SYSTEM CONFIGURATION. Change this CONFIGURATION"
140 PRINT" to match your computer and SAVE the modified program for use.":PRINT
150 PRINT" Interface to couple the computer to the transmitter uses a Radio Shack"
160 PRINT" part 273-1380 transformer for isolation. The 8 ohm leads (red and white)"
170 PRINT" connect directly to the txmtr audio (Line) input. The high impedance side"
180 PRINT" (green and blue) connects to the computer serial port. Connect the blue"
190 PRINT" lead directly to Ground (pin 5 on a 9 pin connector) and the green lead"
200 PRINT" to the RTS pin (pin 7 on a 9 pin connector) through a 10 mfd. coupling"
210 PRINT" capacitor in series with a 1000 ohm (or greater) resistor. The capacitor"
220 PRINT" blocks DC current flow from the RTS lead and the resistor limits the"
230 PRINT" total RTS current to a safe value and is varied to set the audio level."
240 PRINT:PRINT" What mode (1)or(11)Robot 36 (2)or(22)Robot 72 (3)Scottie 1 (4)Scottie 2 "
250 INPUT"(5)AVT 90 (6)AVT 94 (7)Martin 1 (77)Martin 2 (8)Wraase 96 (9)FAX480 ";I
260 IF I=1 THEN LL=306:LT=LT1:LD=282:L=90:EA=24:SC=24:POKE &H1D8,240:POKE &H3A5,17:GOTO 410
270 IF I=2 THEN LL=614:LT=LT2:L=282:LD=589:EA=25:SC=24:POKE &H1D8,240:POKE &H3A5,48:GOTO 410
280 IF I=3 THEN LL=878:LT=LT3:L=288:EA=14:SC=14:POKE &H3A5,60:POKE &H523,96:POKE &H510,3:POKE &H373,233:POKE &H374,39:POKE &H375,1:POKE &H52B,227:GOTO 420
290 IF I=4 THEN LL=568:LT=LT4:L=184:EA=16:SC=15:POKE &H3A5,29:POKE &H373,233:POKE &H374,39:POKE &H375,1:POKE &H523,41:POKE &H510,2:POKE &H52B,227:GOTO 420
300 IF I=5 THEN LL=768:LT=LT5:SC=21:POKE &H30F,235:POKE &H1D8,240:POKE &H3F8,0:POKE &H400,160:POKE &H3A5,34:POKE &H529,63:GOTO 390
310 IF I=7 THEN LL=915:LT=LT7:L=302:EA=9:SC=8:POKE &H3A5,53:POKE &H373,233:POKE &H374,39:POKE &H375,1:POKE &H564,12:GOTO 420
320 IF I=6 THEN LL=960:LT=LT6:L=320:SC=21:POKE &H30F,235:POKE &H1D8,200:POKE &H3A5,18:POKE &H3F8,0:POKE &H529,63:GOTO 390
330 IF I=22 THEN LL=614:LT=LT2:L=282:LD=589:EA=8:SC=23:POKE &H1D8,240:POKE &H3A5,48:GOTO 410
340 IF I=11 THEN LL=306:LT=LT1:LD=282:L=90:EA=6:SC=24:POKE &H1D8,240:POKE &H3A5,17:GOTO 410
350 IF I=9 THEN LL=546:LT=LT9:LD=536:L=178:EA=10:SC=9:POKE &H1D8,224:POKE &H1D9,1:POKE &H172,232:POKE &H564,12:GOTO 410
360 IF I=8 THEN LL=745:LT=LT8:L=248:EA=1:SC=1:POKE &H3A5,57:POKE &H373,233:POKE &H374,39:POKE &H375,1:POKE &H564,12:POKE &H523,233:POKE &H510,2:POKE &H52B,227:GOTO 420
370 IF I=77 THEN LL=464:LT=LT77:L=152:EA=8:SC=8:POKE &H3A5,20:POKE &H373,233:POKE &H374,39:POKE &H375,1:POKE &H564,12:GOTO 420
380 GOTO 240
390 LB=INT(LL/256):LA=LL-256*LB:LD=INT((LL-5)/256):LC=LL-5-256*LD
400 POKE &H1E8,LA:POKE &H1E9,LB:GOTO 510
410 LB=INT(LD/256):LA=LD-256*LB:GOTO 430
420 LB=INT(3*L/256):LA=3*L-256*LB:RB=INT((LL+4)/256):RA=LL+4-256*RB:POKE &H216,RA:POKE &H217,RB
430 POKE &H1E8,LA:POKE &H1E9,LB
440 L3B=INT((L-3)/256):L3A=L-3-256*L3B:POKE &H4C4,L3A:POKE &H4C5,L3B
450 LLB=INT(LL/256):LLA=LL-256*LLB:POKE &H4D2,LLA:POKE &H4D3,LLB
460 LL4=INT((4*LL)/256):LL5=4*LL-256*LL4:POKE &H4E0,LL5:POKE &H4E1,LL4
470 LRB=INT ((LL-40)/256):LRA=LL-40-256*LRB:POKE &H504,LRA:POKE &H505,LRB
480 FOR K=&H58A TO &H5AC
490 READ Q:POKE K,Q
500 NEXT K
510 LTB=INT(LT/256):LTA=LT-256*LTB
520 POKE &H32A,LTA:POKE &H32B,LTB
530 IF I=9 THEN POKE &H454,LTA:POKE &H455,LTB
540 IF CO=2 THEN POKE &H2F7,2:POKE &H241,2
550 POKE &H295,SW 'SW is sync window
555 POKE &H3C6,71 'pixel delay from end of VIS to pix. Affects initial offset
556 'of pix txmit on all but AVT modes.
560 POKE &H4A0,91:POKE &H4EA,5:POKE &H55C,4
570 POKE &H317,EA:POKE &H31A,EA:POKE &H310,SC 'EA=discarded bytes-SC=synch cycles
580 PRINT:PRINT:INPUT"Transmit what PATH/FILE-Program adds mode suffix (default=D:A.P).";F$
590 IF F$="" THEN F$=DR$+":A.P":GOTO 720
600 IF I=1 THEN F$=F$+".36"
610 IF I=11 THEN F$=F$+".36a"
620 IF I=2 THEN F$=F$+".72"
630 IF I=22 THEN F$=F$+".72a"
640 IF I=3 THEN F$=F$+".s1"
650 IF I=4 THEN F$=F$+".s2"
660 IF I=5 THEN F$=F$+".90"
670 IF I=6 THEN F$=F$+".94"
680 IF I=7 THEN F$=F$+".m1"
690 IF I=8 THEN F$=F$+".96"
700 IF I=9 THEN F$=F$+".fax"
710 IF I=77 THEN F$=F$+".m2"
720 IF TI=2 THEN POKE &H1DE,1
730 PRINT:PRINT:PRINT:PRINT" After file LOADs hit G to transmit or Q to Quit."
740 POKE &H1A9,GT
750 K=&H100:CALL K(F$)
760 PRINT:PRINT:PRINT:PRINT:PRINT" PICTURE TRANSMITTED!"
770 KEY ON:END
780 DATA &h11,&h38,&hf0,&he0,&h00:REM Call sign array-5 bytes/line=40 pixels
790 DATA &h12,&h04,&h89,&h10,&h00:REM Array is 40 pixels wide and 7 pixels high
800 DATA &h14,&h04,&h89,&h00,&h00:REM These DATA write out K3BC. If you take
810 DATA &h18,&h18,&hf1,&h00,&h00:REM Each byte and write it out in binary form
820 DATA &h14,&h04,&h89,&h00,&h00:REM on a 40x7 cross-ruled paper,you can see
830 DATA &h12,&h04,&h89,&h10,&h00:REM the pattern. For example: &H11=00010001
840 DATA &h11,&h38,&hf0,&he0,&h00:REM &h73=01110011; and &hCE=11001110
1000 ' SYSTEM CONFIGURATION
1010 ' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1020 LT1=30270 'Line timing for different Modes-same as receive
1030 LT2=60540!
1040 LT3=38825!
1050 LT4=7294
1060 LT99=13500
1070 LT7=16795!
1080 LT77=16930
1090 LT5=42890!
1100 LT9=47959!
1110 LT6=4487
1120 LT8=15860
1130 GT=138 'Gross Timer-use same number as worked on receive program
1140 CO=1 'CO=1 connects COM1---CO=2 connects COM2
1150 DR$="d" 'Ramdisk drive designation-change letter between quotes
1160 TI=1 'Tone tick TI=1 is ON TI=2 is OFF
1170 SW=25 'Sync Window in microseconds--may need larger for slower PC's
1180 GOTO 40