PX Program No. 81
Though I designed this program for repeating CQ’s, it can be used for long statements like giving your QTH, name, WX, etc., things which are the same every QSO, and it could also be used to transmit a letter at a time, a word, or a line, or more. It transmits when you ENTER the message. If you are in the REPEAT mode, it will wait through the spaces at the end and then repeat. If you are QSK you will hear an answer, press the BREAK key and talk with them by key (telegraph key). If you put some other letter besides R into the REPEAT request, the message will send once and return for a new message. You can clear the previous message if in R mode, by doing the following in Calculator mode (no line number). LET A$ = “” ENTER. GOTO 90 ENTER. Comma is .M.I.M, period is .A.A.A, etc. Dot reduces spaces.
This program will not work in SLOW mode. FAST is the F key, shifted then ENTER. If you RUN, you will wipe out the string, which tells the computer which dots and dashes to send. Use GOTO 20 ENTER. You will see big black lines on the screen, length of time on the screen equal to the dots and dashes, or you can plug a small amplifier like the Radio Shack Computer amplifier (about $13), into the MIC jack on the computer and you will hear the code. Further, if the amplifier output is fed to a low resistance diode and filter, mine runs a small reed relay which runs the Omni A quite well. RF feed-back is a problem on all interfacing on higher frequencies, but can be overcome. I used a transistor with base hooked to collector for my diode to get low resistance diode. Electronic keyers usually put less than 5 volts on the key and less than 20 ma., so they are TTL compatible. No other power supply is required if yours works like mine. I think the relay system would key directly most transmitters.
The program is in three parts. Lines 10 etc. are used in each part. Don’t worry about overlaying those lines if you follow the instructions. The first part puts the machine language into 1 REM, where it stays. The second part puts the data in string. Third part is the BASIC program.
PART 1 (Put machine lanhuage into 1REM)
1 REM .................... (20 dots)
10 FOR N = 16514 TO 16533
20 INPUT A
30 POKE N,A
40 PRINT N, PEEK N
50 NEXT N
RUN ENTER
ENTER each of the following numbers. Where there is a space, you ENTER.
62 255 6 15 211 255 16 252 201 219 255 205 130 64 6 23 16 254 201 STOP ENTER
PART 2 (2 for dash, 1 for dot into A$(N) string array.)
10 DIM A$(37)
20 FOR N = 1 TO 37
30 INPUT A$(N)
40 SCROLL
50 PRINT N, A$(N)
60 NEXT N
RUN ENTER
ENTER each of the following numbers. Space means ENTER.
22222 12222 11222 11122 11112 11111 21111 22111 22211 22221 12000 21110
21210 21100 10000 11210 22100 11110 11000 12220 21200 12110 22000 21000
22200 12210 22120 12100 11100 20000 11200 11120 12200 21120 21220 22110
STOP ENTER
As you can see, 12000 is the letter A, dot dash. In the Timex, 28 is zero, 38 is A, so the string array is arranged so that if we subtract 27 from the number representing a letter, that letter will be just that many spaces from the start of A$(N). A will be 11th in the series. We will have a dash three times as long as a dot.
Now you have 1 REM with machine language and A$(N) with conversions. If you RUN, you will lose A$ entirely, so just GOTO 20 when we have finished. We will now overlay all lines but 1 REM with the BASIC program.
PART 3 (Main Basic Program)
10 REM DO NOT RUN. USE GOTO 20. FAST MODE ONLY.
20 PRINT "SPEED IN WPM?"
30 INPUT S
40 LET S = ((1/S)**1.45)*1000 (** is shift H. Speed adjust)
50 POKE 16529, (S/2)
60 PRINT """R"" FOR REPEAT" (Use shift Q for double quotes)
70 INPUT F$
80 IF F$ = "R" AND E$<>"" THEN GOTO 110
90 PRINT "MESSAGE?"
100 INPUT E$ (Your message)
110 LET D$ = E$ (We will work with D$)
120 FOR P = 1 TO S (Delay)
130 NEXT P
140 GOTO 170
150 POKE 16528, 201 (Skip some delay for punctuation)
160 LET Q = 1 (This is punctuation)
170 LET N = CODE D$ - 27 (Take first character, subt 27)
180 LET D$ = D$(2 TO ) (Drop first char.)
190 IF N = -27 THEN GOTO 300 (Get delay for space bet char)
200 IF N = 0 THEN GOTO 150 (27 is period, punct signal)
210 LET B$ = A$(N)
220 FOR M = 1 TO 5 (Note M, not N)
230 LET B = CODE B$-28 (Gives B location of dot/dash for ltr)
240 IF B<[illegible]0 THEN GOTO 280
250 POKE 16528,6 (Not punctuation, reinstate delay)
260 GOSUB 3*B*100+50 (Compute jump)
270 LET B$ = B$(2 TO ) (Drop first char)
280 NEXT M
290 IF Q = 1 THEN GOTO 310 (Punct finished, clear)
300 GOSUB 500
310 LET Q = 0
320 IF D$ = "" AND CODE F$<>55 THEN GOTO 90 (55 is R)
330 IF D$ = "" THEN GOTO 110 (Refill with message to repeat)
340 GOTO 170
350 POKE 16517, S/3
360 FOR N = 1 TO S/3
370 LET J = USR 16523
380 NEXT N
390 RETURN
500 FOR Z = 1 TO S
510 NEXT Z
520 RETURN
650 POKE 16517,S
660 FOR N = 1 TO S
670 LET J = USR 16523
680 NEXT N
690 RETURN