Hello Foxx,
Fox>>I am new to PicBASIC, and im not too sure how to work this out right now, but i would liek to make a TTY Terminal. TTY is used by deaf people to place calls through a relay operator. TTY Terminals work by using the BAUDOT protocol. There is a set of tones that has to be decoded and turned into characters on an LCD display. Im sure i can figure out how to generate the tones, and place them on an LCD display, but how can i decode Multi-Frequency tones? Any ideas?<<
Ah ha!...My area of field <g>. I was making these in the 1990's with Philips 752's. Then went through a bad divorce. Then 3 years later, ended up becoming deaf myself!
A couple of things to remember.. TDD does not use Standard RITTY code. It also does not use standard 8/7 bit data exchange.
I can't remember the exact "tones" it uses. You can use a chip to decode each of the tones (which I did) or possibly use your PIC with PULSE in and timeout. Or maybe use a interupt and measure the time between the pulses.
If I remember correctly it is a 3 to 1 ration on tones.
I used a Lookup Table for decoding of the bits.
You will have a problem for decoding between the two tones. lets say we have the tones "descriminated".
Using two bytes, you can "shift" the 5 charactoristics into the bytes.
Dots var byte
Dash var byte
Loop:
Dots =0;
Dash=0;
.....
.....
if Tone=true
if(Tone=low)
Dots[0]=1
endif
if(Tone=High)
Dash[0]=1
endif
Dots<<1
Dash<<1
endif
With this, you have the exact layout of the mark and stop of the 5 bits...representing the letters/numbers. How you look it up in the table is
up to you...If you need help in this, maybe I can dig up some of my notes from 15 years ago, or give you some ideas to go on.
One other thought...Most TDD operators can do standard ASCII from your computer. I use my computer modem at work to TDD to certain people.
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks