Since TTY deals with soundwaves, i was thnking about using the on board Analog-Digital Converter.
without any external of frequency to voltage converter you'll not be able to do it. A/D converter return a valu that correspond to the voltage at a specific input.
im sure if i use the COUNT or PULSEIN command, i will have to take the sound coming from the headset, make it a digital signal with a simple op amp, or transistor based logic converter, then pass it to the designated input. Does this sound right?
depending of the signal amplitude, a simple capacitor with 2 resistor as voltage divider can do the job too. 10 cents solution 
OR if you want to feel very very safe, using a OP-AMP or Voltage comparator to make the signal as sqaure as a real TTL- CMOS can also be used... i'll prefer that one to avoid some probale odd interrupt causes.
How do I use interrupts? Liek i said, im really new to PicBASIC, but not to programming.
depending of your PIC look into your datasheet under INTCON register... If you want some code example using interrupt... there's a load of those in the forum. Do a search with interrupt will gives you a bit less result than SEROUT. BUT, i did one example for lamp-dimming. Using interrupt to synchronise on AC power line.
Click Here
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks