Morse encoding techniques

---------

From: Leon Heller (leon_heller@hotmail.com)
Date: Thu Jul 11 2002 - 19:10:25 CDT


I've just tried Glen's technique out on the AVR. Because there is only an
ASR instruction and no ASL, I had to reverse the bit order: 'B' is 00010001.

Here's my code:

send_cw:
               asr byte
               breq send3
               brcs send1
               rcall dit
               rjmp send2
send1:
               rcall dah
send2:
               rjmp send_cw
send3:
               ret

I haven't actually tried it on the hardware, but it simulates OK. Eight
words against 19 for my original code. Thanks, Glen.

73, Leon

--
Leon Heller, G1HSM
leon_heller@hotmail.com
http://www.geocities.com/leon_heller


Search QRP-L Archives

[ QRP-L Archive | ]
[ 1993 | 1994 | 1995 | 1996 | 1997 | 1998 | 1999 | 2000 | 2001 | 2002 ]

---------

This archive was generated by hypermail 2b29 on Wed Aug 14 2002 - 12:29:36 CDT

kd4ab@kd4ab.org