• 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 www.picbasic.org
  • Recent Activity

    xldaedalus-432

    Mysterious PORTB problem

    Thread Starter: xldaedalus

    I'm using Proton+ to develop firmware for a product with switches. The MCU is an 18F26K22. Most of the switches reside on PORTB. I am NOT using a...

    xldaedalus Today, 03:21 Go to last post
    towlerg-21522

    PIC18F1330 PLL problem

    Thread Starter: rcurl

    I'm just starting out on a new project that uses a PIC18F1330. I haven't used this specific chip before, so I began by trying to blink an LED just...

    towlerg Today, 02:15 Go to last post
    towlerg-21522

    Lin bus and auto baud detection

    Thread Starter: Tim

    Lin bus looks to be a great system for an application i'm working on. One of the main things is the slave can be really simple without needing a...

    towlerg Yesterday, 15:13 Go to last post