HINTS & KINKS




A UNIVERSAL LOGGING COMPUTER INTERFACE

    Would you like automatic entry of frequency and mode data to your logging computer even from a rig that's
not computer controllable? I have modified the software for Neil Heckt's PIC-based frequency display1 to pro-
vide a serial data port. All you need to do is replace the PIC16C71 chip with my modified version2 and connect
it to your computer via a TTL-to-EIA-232 level converter.

    The data port is RB6, pin 12 on the PIC16C71 (see Figure 2, following page). This pin was formerly used
for the ZERO switch,Sl. With the new software, when Sl is closed the counter performs as before; that is, it will
count and display. When Sl is open, the counter halts and waits for a serial command. The command can be
any character; the software only looks for start and stop bits. On receipt of a command, the counter counts and
displays the result, then transmits it to the computer. If the computer sends a command repeatedly, as most
logging programs do in automatic mode, the display will be updated regularly. Otherwise, it will display the
frequency and mode at the time of the last command or Sl closure. I inserted a 220 ft resistor between Sl and
ground to protect the chip if Sl is closed while it is transmitting.



Table 1—Displayed Mode versus MODE Resistor Value and RA3 Voltage

Mode R(kn ±5%) V atRA3
blank OPEN 5.0
AM 65.0 4.3
FM 27.5 3.7
CW 15.0 3.0
USB 8.8 2.3
LSB 5,0 1.7
FSK 2.5 1.0
FAX 0.0 0.0



    The schematic in Figure 2 includes a circuit and PC board layout for a TTL-to-EIA-232 level converter.
I built the level converter on a small PC board that can be mounted on the back of Neil's board. The display
module is not essential and it may be omitted; the counter will still transmit data to the computer.

    Ideally, the counter should be connected to the local oscillator and MODE switch of your rig, but I have
used it with an antenna to pick up transmitted RF. I have also linked it to my transmission line via a toroidal
transformer. The disadvantages of this method are that you must press the logging key while you are
actually transmitting and no mode data is available.—
Dave McClafferty, VE1ADH, 28 Balsam Cir, Lower Sackville, NS B4C 1A9, Canada

1 N. Heckt "A PIC-Based Digital Frequency Display," OST, May 1997, pp 36-38.

2 I supply programmed chips for $25 US, contact me by e-mail: at060@chebucto.ns.ca by "snail mail "at
the address shown on the hint or by telephone at 902-864-0268. Please specify the data rate, 1200 to 9600.
1 will send the .HEX file via e-mail to anyone wanting to burn their own chip.

Hints and Kinks items have not been tested by QST or the ARRL unless otherwise stated. Although we can't
guarantee that a given hint will work for your situation, we make every effort to screen out harmful information.
Send technical questions directly to the hint's author.

QSTinvites you to share your hints with fellow hams. Send them to "Attn: Hints and Kinks" at ARRL Head-
quarters (see page 10), or via e-mail torschetgen@arrl.org. Please include your name, call sign, com-
plete mailing address, daytime telephone number and e-mail address on all correspondence. Whether
praising or criticizing an item, please send the author(s) a copy of your comments.


Bob Schetgen, KU7G - Senior Assistant Technical Editor



QST- July 2000, page 61
This page was re-printed with permission of QST magazine and has been re-formatted for better display as an HTML page.