Proton BASIC Compiler - Decoding Morse Code in Proton Basic

  • PicŪ Basic

  • Decoding Morse Code in Proton Basic

    by Mark Rodgers G0EBB
    The above circuit uses a PICŪ 18F452. The Diagram is shown with a GLCD but I have included software for an LCD also, the relevant point is the connection of the key/button to the PICŪ, it can easily be changed to any pin you like and the code should work on most PICŪ chips. Read the notes in the programs for more details.
    This project was undertaken to see if I could work out how to decode this language digitally instead of in my head, the software is written totally in Proton Basic and is not really a good example of slick coding but I have used it as an exercise in reducing a problem to its constituent parts and figuring out how to deal with them. The comments should help to figure out how I was thinking when I was writing each line.
    All Morse characters are catered for and some punctuation etc. The details of the characters and conventions of Morse are detailed in "morse.txt" which is part of this package.
    I have found if you send bad Morse it will display bad Morse! If you try it you will find that the PICŪ is often better than you!
    NOTE: the key contacts must be clean as it is easy to get bad characters because of dirty contacts.

    Included Files

    GLCD_morse_1.basThe program to work on a Graphic DisplayLCD_morse_1.bas The program to work on an Alphanumeric Displaymorse.txtInfo about Morse Code(taken from KENT MORSE KEYS) I hope some of you try it!
    73 de Mark Rodgers G0EBB.

    About the Proton Compiler

    Crownhill's Proton Plus Compiler is a part of the Proton Development Suite - A suite of British-developed applications enabling fast development of PICŪ micro's using the PICŪ BASIC Language.
    For more information on the Proton Development Suite, please visit