A little DTMF help


Closed Thread
Results 1 to 40 of 49

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    It compiles fine with the MP (instead of MPASM). (228 words in a 16F876A .. snif)
    You must put some lines together.... they are wrapped.

    Maybe it is interesting to check the OEM-signal of the ISD-chip to wait for the end of a message, before sending the next...

    The "pause 20" around the ce=x can be shortened to "pauseus 10".

    Why are you using 20Mhz ? It is VERY fast for this slow devices !
    at 4MHz you can throw away some pauses....
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  2. #2
    Join Date
    Feb 2006
    Posts
    89


    Did you find this post helpful? Yes | No

    Default Curious

    I did that. I had a routine that was interupt based on the EOM pin during which the pic would do nothing until the EOM bit was pulsed low. I found that I really didn't need to do that. I didn;t gain anything from it. My problem isn't the decode, its the if then statements. The pic just won't do them. It won't go on in the program, it won't play the error message, it just wants to loop back to the beginning. Do you have another way of doing the password section? As to why I am using 20 mhz, I don't know, thats just what I was using. I will try a 4 mhz osc. Now I guess my question for that is it still as OSC_hs or just external?

    Travin

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Red face

    Your code looked good:

    if password[0]<>"1" Then goto error
    if password[1]<>"2" Then goto error
    ...
    if password[7]<>"8" Then goto error
    menu:

    error:



    You can extend the Output_DTMF-routine to wait for the EOM-bit in the beginning.
    And you can add some code in order to use this routine to play the other menu-messages, too.
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  4. #4
    Join Date
    Feb 2006
    Posts
    89


    Did you find this post helpful? Yes | No

    Default Well

    Well, I don't know what else to try. The code just doesn't work past the entry. The if then statements just don't work for some reason or maybe the pic is bad. I know for sure the decode process works as well as all of the addresses for the messages work as well. thanks for the help.

    Travin

  5. #5
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Wink

    OK,

    the if-then-part must work !

    Just insert this before:

    password[0]="1"
    password[1]="2"
    ...
    password[7]="8"

    and write, what happens !
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  6. #6
    Join Date
    Feb 2006
    Posts
    89


    Did you find this post helpful? Yes | No

    Default I found the problem

    I found the problem. The isd chip is not playing the error or menu message. I put a led in those routines. I know now that the program is getting through them I guess I am not interfacing with the isd chip correctly. Back to the manual. Thanks for the help bigwimpus. If anyone knows how to properly interface to a isd chip (25120) and wouldn't mind sharing there knowledge, this bald guy would appreciate it. thanks again.

    travin
    Last edited by Travin77; - 30th May 2006 at 04:49.

Similar Threads

  1. DTMF on a 12V car system
    By Jumper in forum Schematics
    Replies: 1
    Last Post: - 7th December 2008, 15:41
  2. DTMF output
    By din_kt in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th February 2008, 15:24
  3. DTMF Decoding?
    By muddy0409 in forum General
    Replies: 1
    Last Post: - 19th December 2007, 16:28
  4. Replies: 2
    Last Post: - 31st July 2006, 17:06
  5. Problems with DTMF Generatiom
    By Angus Anderson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th May 2006, 22:12

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts