Shop OBEX P1 Docs P2 Docs Learn Events
Morse Code Identifier — Parallax Forums

Morse Code Identifier

AllenWAllenW Posts: 8
edited 2008-02-25 05:05 in BASIC Stamp
I am trying to make an amateur radio repeater controller using a BASIC Stamp. On the internet I found a repeater controller program written by Roger Cameron, N0YOX, that does many of the things I want and it includes a Morse code identifier. In an effort to really understand his program and adapt parts of it to what I want, I used code based on his approach to write a Morse code identifier program, but all I can get from it is a series of clicks. After spending a lot of time trying to understand what is wrong with the program I still don't see my mistake(s) so I would really appreciate any advice that would help me fix the problem.

AllenW

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-02-22 22:39
    AllenW,

    Before we would be able to help you determine what is wrong with your code you would need to attach it (not paste it) to a message so we can see what is happening.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • AllenWAllenW Posts: 8
    edited 2008-02-23 00:17
    Hi Chris,

    I thought I had attached the file but I guess it didn't work properly. I hope it is attached now.

    Thank you,

    AllenW
    1009B
    CW ID 1009B
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2008-02-23 06:35
    Hi Allen, try replacing BRANCH Character, [noparse][[/noparse]Space, Dit, Dah] with ON Character GOSUB Space,Dit,Dah and follow that line with a small pause PAUSE 100.

    Jeff T.
  • AllenWAllenW Posts: 8
    edited 2008-02-25 03:29
    Hi Jeff,

    Thank you very much for your help. After I tried your suggestion I spent some time figuring out why it worked and I now understand the distinction between BRANCH and ON...GOSUB. I rewrote some code to use BRANCH to check that I understood, and I got this alternative working ok, too. Without your suggestion I think I would still be struggling trying to figure out what was wrong.

    I don't think the PAUSE is necessary because there is a little break between characters where FREQOUT is zero.

    Thanks again.

    AllenW
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2008-02-25 05:05
    Hi Allen,·sitting down and figuring out·what was happening·is a million times more valuable than the one line that I wrote, well done.

    Jeff T.
Sign In or Register to comment.